/* listing-gallery.css — prefix: lga-
   Swipeable single-photo carousel with lightbox. */

.lga-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.lga-carousel {
    width: 100%;
    height: 26.25rem;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--antologa-dark) 8%, transparent);
}

.lga-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Pagination dots (below the image, not overlaid) ── */
.lga-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.lga-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--antologa-light-gray);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lga-dot:hover {
    background: var(--antologa-gray);
}

.lga-dot--on {
    background: var(--antologa-primary);
    transform: scale(1.25);
}

/* Sits below the carousel as a block outline button so it never gets
   clipped by the photo edge on narrow screens. */
.lga-show-all-btn {
    display: flex !important;
    margin: 0.875rem auto 0 !important;
    border-radius: 0.5rem !important;
    border: 1.5px solid var(--antologa-primary) !important;
    background: transparent !important;
    color: var(--antologa-primary) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    white-space: nowrap !important;
}

.lga-show-all-btn:hover {
    background: color-mix(in srgb, var(--antologa-primary) 7%, transparent) !important;
}

/* ── Figure / Caption ── */

.lga-figure {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.lga-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.45);
    color: var(--antologa-pure-white);
    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: var(--antologa-pure-white);
    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: var(--antologa-pure-white);
    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-carousel {
        height: 18rem;
    }
}
