/* Общие стили */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f4f4f4;
}

/* Стили для стартовой страницы (index.html) */
.intro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Анимация "шторки" для gallery.html */
.split-left, .split-right {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100vh;
    background-color: #000;
    z-index: 1000;
    transition: transform 1.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.split-left {
    left: 0;
}

.split-right {
    right: 0;
}

/* Классы для анимации */
.split-left.animate {
    transform: translateX(-100%);
}

.split-right.animate {
    transform: translateX(100%);
}

/* Стили для основной страницы (gallery.html) */
.main-content {
    padding: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

#sort-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #333;
    background-color: #fff;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-description {
    padding: 15px;
    background-color: #fff;
}

.gallery-item-description p {
    margin: 0;
}

/* Анимация появления контента */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}