/* ══════════════════════════════════════
   Gallery Landing Page
   ══════════════════════════════════════ */

.gallery-landing-page {
    background: var(--color-bg);
}

/* Gallery sets grid section */

.gallery-sets-section {
    padding: 4rem 6%;
}

.gallery-sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Individual gallery card */

.gallery-set-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    background: #1a1a1a;
}

.gallery-set-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-set-card:hover .gallery-set-card-image {
    transform: scale(1.05);
}

.gallery-set-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.25rem;
    transition: background 0.3s ease;
}

.gallery-set-card:hover .gallery-set-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.15) 60%);
}

.gallery-set-card-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════
   Gallery Set Page
   ══════════════════════════════════════ */

.gallery-set-page {
    min-height: 100vh;
    background: var(--color-bg);
    padding-top: var(--header-height, 80px);
}

.gallery-set-header {
    padding: 3.5rem 6% 2rem;
    text-align: center;
}

.gallery-set-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
}

/* Masonry photo grid */

.photo-grid {
    column-count: 3;
    column-gap: 0.5rem;
    padding: 0 6% 6rem;
}

.photo-grid-item {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

.photo-lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

.photo-lightbox-trigger img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transition: opacity 0.2s ease;
}

.photo-lightbox-trigger:hover img {
    opacity: 0.88;
}

/* ══════════════════════════════════════
   Lightbox
   ══════════════════════════════════════ */

.photo-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.92);
}

.photo-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox::backdrop {
    background: transparent;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover {
    color: #fff;
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 768px) {
    .gallery-sets-section {
        padding: 2.5rem 1rem;
    }

    .gallery-sets-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        column-count: 2;
        padding: 0 1rem 4rem;
    }

    .gallery-set-header {
        padding: 2.5rem 1rem 1.5rem;
    }

    .gallery-set-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        column-count: 1;
    }
}
