/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    background: var(--clr-surface-alt);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    transition: gap var(--transition);
}

.back-link:hover { gap: .7rem; }

.page-title {
    font-family: 'Savoye LET', cursive;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: normal;
    line-height: 1.1;
    color: var(--clr-text);
    margin-bottom: 1.25rem;
}

.page-title em {
    color: var(--clr-accent);
    font-style: normal;
}

.page-desc {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    max-width: 700px;
    line-height: 1.8;
}

.page-contact {
    margin-top: 1rem;
    font-size: .95rem;
    color: var(--clr-text-muted);
}

.page-contact a {
    color: var(--clr-accent);
    font-weight: 600;
}

.page-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-section {
    padding: 3rem 0 5rem;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--clr-surface-alt);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    background: rgba(0,0,0,.08);
}

.gallery-empty {
    text-align: center;
    color: var(--clr-text-muted);
    font-style: italic;
    padding: 4rem 0;
    font-size: 1.1rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
    transition: transform .3s ease;
}

.lightbox.open .lightbox-img {
    animation: lightboxIn .3s ease;
}

@keyframes lightboxIn {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 2.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: none;
    color: rgba(255,255,255,.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: .75rem;
    }

    .lightbox-prev { left: .5rem; }
    .lightbox-next { right: .5rem; }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .page-hero {
        padding: calc(var(--nav-height) + 2rem) 0 2rem;
    }

    .page-title { font-size: 2.5rem; }
}
