/* listing-gallery.css — prefix: lga-
   3-col: small-left | tall-center | small-right */

.lga-gallery {
    display: grid;
    grid-template-columns: 17.5rem 1fr 17.5rem;
    gap: 1.125rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.lga-col--side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.125rem;
}

.lga-col--center {
    position: relative;
    display: block;
}

.lga-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.875rem;
    display: block;
    border: 1px solid rgba(40,40,40,0.08);
}

.lga-img--center {
    height: 100%;
    min-height: 26.25rem;
    border-radius: 0.875rem;
}

.lga-show-all-btn {
    position: absolute !important;
    left: 50% !important;
    bottom: 1.125rem !important;
    transform: translateX(-50%) !important;
    border-radius: 0.5rem;
    background: var(--antologa-white);
    color: var(--antologa-dark) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    backdrop-filter: blur(4px) !important;
    white-space: nowrap !important;
}

.lga-show-all-btn:hover {
    background: var(--antologa-white) !important;
}

/* ── Figure / Caption ── */

.lga-figure {
    position: relative;
    overflow: hidden;
    border-radius: 0.875rem;
    height: 100%;
}

.lga-figure .lga-img {
    border-radius: 0;
}

.lga-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    padding: 0.4em 0.75em;
    margin: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lga-figure:hover .lga-caption { opacity: 1; }

/* ── Lightbox ── */

.lga-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lga-lightbox__inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lga-lightbox__photo-wrap {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lga-lightbox__img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lga-caption--modal {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: var(--antologa-gray);
    margin: 0.6em 0 0;
    text-align: center;
}

.lga-lightbox__counter {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin: 0.5em 0 0;
}

.lga-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25em;
}

.lga-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.lga-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.lga-lightbox__nav:disabled { opacity: 0.25; cursor: default; }
.lga-lightbox__nav--prev { left: 1.5rem; }
.lga-lightbox__nav--next { right: 1.5rem; }

@media (max-width: 61.25rem) {
    .lga-gallery {
        grid-template-columns: 1fr;
    }

    .lga-col--side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .lga-show-all-btn {
        position: relative !important;
    }
}
