.photo-gallery {
    padding: 40px 0;
    background: var(--background-color);
    min-height: calc(100vh - var(--header-height));
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filter-group {
    position: relative;
    min-width: 250px;
}

.filter-button {
    background: var(--background-color-secondary);
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    width: 100%;
    font-weight: 500;
    justify-content: flex-start;
    text-align: left;
}

.filter-button i {
    color: var(--text-color);
    font-size: 16px;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.filter-dropdown.active {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.filter-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-color);
}

.filter-option:hover {
    background: var(--background-color-secondary);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.apply-filters {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.apply-filters:hover {
    background: var(--accent-color-hover);
}

.reset-filters {
    background: var(--background-color-secondary);
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.reset-filters:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Стили для светлой темы */
body.light .filter-button {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

body.light .filter-button i {
    color: rgba(0, 0, 0, 0.8);
}

body.light .filter-button:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light .filter-dropdown {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .filter-option {
    color: rgba(0, 0, 0, 0.8);
}

body.light .filter-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.album-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: scale(1.02);
}

.album-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-location {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    color: white;
    z-index: 2;
    font-weight: 500;
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.album-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.02em;
}

.album-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.album-card a {
    text-decoration: none;
    color: white;
    display: block;
    height: 100%;
}

.no-albums {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: var(--text-color-secondary);
}

@media (max-width: 1400px) {
    .albums-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        padding: 32px 0;
        width: 100%;
        overflow: hidden;
        position: relative;
        min-height: fit-content;
    }

    .container {
        padding: 0 16px;
        max-width: var(--container-width);
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .filters {
        flex-wrap: wrap;
        margin-bottom: 16px;
    }
    
    .filter-button {
        width: calc(50% - 8px);
        min-width: unset;
    }

    .albums-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        position: relative;
        height: auto;
        min-height: 100%;
    }

    .album-card {
        position: relative;
        height: 240px !important;
        border-radius: 12px;
        overflow: hidden;
        flex: none !important;
        width: 100% !important;
        box-sizing: border-box;
        cursor: pointer;
    }

    .album-cover {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .album-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .album-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0)
        );
        z-index: 2;
    }

    .album-title {
        font-size: 1.4rem;
        font-weight: 400;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .album-date {
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--color-gold);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .album-location {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Отключаем все hover эффекты и анимации */
    .album-card,
    .album-cover,
    .album-info,
    .album-title,
    .album-date {
        transition: none !important;
        transform: none !important;
    }

    .album-card:hover {
        transform: none !important;
    }

    .album-card:active {
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .albums-grid {
        gap: 12px;
    }
    
    .filter-button {
        width: 100%;
    }

    .album-card {
        height: 160px !important;
    }

    .album-title {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .album-card {
        height: 160px !important;
    }

    .album-title {
        font-size: 14px;
    }
}