/* ── GALLERY PAGE ── */
.gallery-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
}

.gallery-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.gallery-sub {
    color: var(--muted);
    font-size: 1rem;
    font-style: italic;
}

#gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    column-count: 4;
    column-gap: 14px;
}

#gallery-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    border-radius: 12px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: block;
}

#gallery-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.25);
}

@media (max-width: 1000px) {
    #gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 700px) {
    #gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 450px) {
    #gallery-grid {
        column-count: 1;
    }
}

/* ── LIGHTBOX ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

#lightbox.open {
    display: flex;
}

#lightbox img {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
}

#lightbox-title {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
}

#lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox button:hover {
    background: rgba(168, 85, 247, 0.3);
}

#lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

#lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}