.gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .album-card {
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .album-card:hover {
        transform: translateY(-3px);
    }

    .album-stack {
        position: relative;
        height: 250px;
    }

    .album-stack::before,
    .album-stack::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(149,99,92,0.12);
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }

    .album-stack::before {
        transform: rotate(-4deg);
    }

    .album-stack::after {
        transform: rotate(4deg);
    }

    .album-card:hover .album-stack::before {
        transform: rotate(-7deg) translate(-8px, 6px);
    }

    .album-card:hover .album-stack::after {
        transform: rotate(7deg) translate(8px, 6px);
    }

    .album-cover {
        position: relative;
        z-index: 3;
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.14);
        background: #f1f1f1;
    }

    .album-title {
        margin-top: 14px;
        font-weight: 800;
        text-align: center;
        font-size: 1.05rem;
    }

    .album-count {
        text-align: center;
        color: #777;
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .gallery-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        inset: 0;
        background: rgba(0,0,0,0.88);
        align-items: center;
        justify-content: center;
    }

    .gallery-modal.active {
        display: flex;
    }

    .modal-image {
        max-width: 90vw;
        max-height: 75vh;
        object-fit: contain;
        border-radius: 12px;
        background: white;
    }

    .modal-close,
    .modal-prev,
    .modal-next {
        position: absolute;
        border: none;
        background: rgba(255,255,255,0.15);
        color: white;
        font-size: 2rem;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
    }

    .modal-close:hover,
    .modal-prev:hover,
    .modal-next:hover {
        background: rgba(255,255,255,0.3);
    }

    .modal-close {
        top: 30px;
        right: 40px;
    }

    .modal-prev {
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .modal-next {
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .modal-caption {
        position: absolute;
        bottom: 28px;
        color: white;
        font-size: 1rem;
        text-align: center;
        max-width: 80vw;
    }

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

    @media (max-width: 576px) {
        .gallery-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .modal-close,
        .modal-prev,
        .modal-next {
            width: 44px;
            height: 44px;
            font-size: 2rem;
            line-height: 1;
            background: rgba(255,255,255,0.22);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: Arial, Helvetica, sans-serif;
            font-weight: 300;
        }

        .modal-close {
            top: 24px;
            right: 24px;
            font-size: 2.2rem;
        }

        .modal-prev {
            left: 20px;
        }

        .modal-next {
            right: 20px;
        }
    }

    .year-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 35px;
    }

    .year-btn {
        display: inline-block;
        padding: 10px 22px;
        border: 2px solid var(--primary-color);
        border-radius: 999px;
        background: white;
        color: var(--primary-color) !important;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.25s ease;
    }

    .year-btn:hover {
        background: var(--primary-color);
        color: white !important;
    }

    .year-btn.active {
        background: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color);
    }
