/**
 * POI image gallery.
 *
 * Shared by index.php (both renderers) and trip.php.
 * Loaded outside the renderer conditional: public_map.css only exists
 * on the MapLibre branch.
 */

/* ── Popup carousel ───────────────────────────────────────────────────────── */
.popup-gallery {
    position: relative;
}

.popup-gallery .popup-image {
    cursor: pointer;
    display: block;
}

.popup-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    width: 26px;
    height: 34px;
    line-height: 1;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.popup-gallery-nav.prev { left: 0; border-radius: 0 4px 4px 0; }
.popup-gallery-nav.next { right: 0; border-radius: 4px 0 0 4px; }
.popup-gallery-nav:hover { background: rgba(0, 0, 0, .75); }

.popup-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px 0 2px;
}

.popup-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
}

.popup-gallery-dot.is-active {
    background: rgba(0, 0, 0, .75);
}

/* ── Lightbox navigation ──────────────────────────────────────────────────── */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: 0;
    font-size: 28px;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 2;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(0, 0, 0, .75); }

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, .5);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: .85rem;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    max-width: 800px;
    margin: 0 auto;
}
