/* ========================================
   LIGHTBOX — add to bottom of booking-page.css
   ======================================== */

#galleryLightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0,0,0,0.93);
    cursor: zoom-out;
}
#galleryLightbox.open { display: block; }

/* Center the image using absolute positioning */
#galleryLightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 96px);   /* leave room for arrows on each side */
    max-height: calc(100% - 96px);  /* leave room for close btn + counter */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    cursor: default;
    animation: lbPop 0.22s ease;
}

@keyframes lbPop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Close */
#galleryLightbox .lb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    line-height: 1;
}
#galleryLightbox .lb-close:hover { background: rgba(255,255,255,0.32); }

/* Arrows */
#galleryLightbox .lb-prev,
#galleryLightbox .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
#galleryLightbox .lb-prev { left: 10px; }
#galleryLightbox .lb-next { right: 10px; }
#galleryLightbox .lb-prev:hover,
#galleryLightbox .lb-next:hover { background: rgba(255,255,255,0.32); }

/* Counter */
#galleryLightbox .lb-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.lb-title {
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-align: center;
    opacity: 0.85;
    margin: 0.5rem 0 0;
    min-height: 1.4em; /* prevents layout jump when title is empty */
}