/* base.css (theme) is loaded before this file by includes/header.php */

/* ==========================================================================
   GrowthNEXT - Gallery page
   ========================================================================== */

.gallery-grid { columns: 3 280px; column-gap: 1.25rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1.25rem; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--color-bg-soft); }
.gallery-item img { width: 100%; transition: transform .5s ease; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2rem 1rem .8rem;
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    background: linear-gradient(transparent, rgba(10, 52, 36, .85));
    pointer-events: none;
}

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 52, 36, .92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #fff; margin-top: .75rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; }
.lightbox button:hover { background: var(--color-accent); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
