/* =============================================================================
   BonTrip — Provider public page: gallery lightbox
   Overlay fullscreen cu prev/next/close + keyboard nav.
   ============================================================================= */

/* Reset stiluri de button pt gallery items (in HTML sunt <button> pt a11y) */
.org-gallery-grid button.org-gallery-item {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    display: block;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.org-gallery-grid button.org-gallery-item:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* --- Lightbox overlay --- */
.org-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 20, 0.94);
    padding: 40px 60px;
    animation: orgLightboxFade .15s ease-out;
}
.org-lightbox.is-open { display: flex; }
.org-lightbox[hidden] { display: none !important; }

@keyframes orgLightboxFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.org-lightbox-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.org-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #0a0f14;
    display: block;
    animation: orgLightboxZoom .2s ease-out;
}

@keyframes orgLightboxZoom {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.org-lightbox-caption {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    max-width: 640px;
    line-height: 1.4;
    min-height: 20px;
}

.org-lightbox-caption:empty { display: none; }

/* --- Close button --- */
.org-lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .1s ease;
    font-family: inherit;
    padding: 0;
    padding-bottom: 4px;
}
.org-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* --- Prev / Next --- */
.org-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .1s ease;
    font-family: inherit;
    padding: 0;
    padding-bottom: 4px;
}
.org-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}
.org-lightbox-prev { left: 20px; }
.org-lightbox-next { right: 20px; }

.org-lightbox-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.org-lightbox-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Counter (3/12) --- */
.org-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
}

/* --- Mobile tweaks --- */
@media (max-width: 720px) {
    .org-lightbox { padding: 16px 12px; }
    .org-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .org-lightbox-nav {
        width: 44px; height: 44px; font-size: 32px;
    }
    .org-lightbox-prev { left: 8px; }
    .org-lightbox-next { right: 8px; }
    .org-lightbox-image { max-height: calc(100vh - 120px); }
    .org-lightbox-counter { bottom: 12px; }
}

/* Body no-scroll cand e deschis lightbox */
body.org-lightbox-lock {
    overflow: hidden;
}
