/*
 * Lightbox mozaiki zdjęć (js/lightbox.js): ciemne tło na cały ekran, zdjęcia w jednym pasie przesuwanym palcem
 * albo strzałkami, na końcu karta z rezerwacją. Ładowany przez x-site.mosaic.
 */
.ob-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(14, 17, 23, 0.97);
    color: #fff;
    opacity: 0;
    transition: opacity 240ms var(--ob-ease-out);
}

.ob-lightbox::backdrop {
    background: transparent;
}

.ob-lightbox.is-open {
    opacity: 1;
}

.ob-lightbox__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.ob-lightbox__track {
    display: flex;
    height: 100%;
    transition: transform 320ms var(--ob-ease-out);
}

.ob-lightbox.is-dragging .ob-lightbox__track,
.ob-lightbox.is-instant .ob-lightbox__track {
    transition: none;
}

.ob-lightbox__slide {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 72px 96px;
}

.ob-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.ob-lightbox__close,
.ob-lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, transform 120ms var(--ob-ease-out), opacity 0.2s ease;
}

.ob-lightbox__close svg,
.ob-lightbox__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-lightbox__close {
    top: 16px;
    right: 16px;
}

.ob-lightbox__nav {
    top: 50%;
    margin-top: -24px;
}

.ob-lightbox__nav--prev {
    left: 24px;
}

.ob-lightbox__nav--next {
    right: 24px;
}

.ob-lightbox__nav[aria-disabled="true"] {
    opacity: 0;
    cursor: default;
}

.ob-lightbox__close:active,
.ob-lightbox__nav:active {
    transform: scale(0.94);
}

.ob-lightbox__close:focus-visible,
.ob-lightbox__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .ob-lightbox__viewport {
        cursor: grab;
    }

    .ob-lightbox.is-dragging .ob-lightbox__viewport {
        cursor: grabbing;
    }

    .ob-lightbox__close:hover,
    .ob-lightbox__nav:hover {
        background: rgba(255, 255, 255, 0.24);
    }
}

.ob-lightbox__count {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    margin: 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

/* Ostatni slajd: zaproszenie do rezerwacji, zajmuje to samo miejsce co duże zdjęcie */
.ob-lightbox__cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 820px;
    padding: var(--ob-space-6) var(--ob-space-5);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: var(--ob-ink);
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}

.ob-lightbox__cta-eyebrow {
    margin: 0 0 var(--ob-space-1);
    font-size: 14px;
    font-weight: 600;
    color: var(--ob-pink-dark);
}

.ob-lightbox__cta-title {
    max-width: 560px;
    margin: 0 0 var(--ob-space-2);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ob-lightbox__cta-text {
    margin: 0 0 var(--ob-space-4);
    color: #5c5c62;
}

.ob-lightbox__cta .ob-btn-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-lightbox__cta-phone {
    display: block;
    margin-top: var(--ob-space-2);
    font-size: 14px;
    color: #5c5c62;
}

.ob-lightbox__cta-dots i {
    position: absolute;
    border-radius: 50%;
    animation: ob-lightbox-float 6s ease-in-out infinite alternate;
}

.ob-lightbox__cta-dots i:nth-child(1) { top: 22px; left: 28px; width: 18px; height: 18px; background: #f8e058; }
.ob-lightbox__cta-dots i:nth-child(2) { bottom: 64px; left: 20px; width: 8px; height: 8px; background: #67c6bd; animation-delay: -2s; }
.ob-lightbox__cta-dots i:nth-child(3) { top: 30px; right: 40px; width: 12px; height: 12px; background: #ed2482; animation-delay: -4s; }
.ob-lightbox__cta-dots i:nth-child(4) { right: 26px; bottom: 34px; width: 22px; height: 22px; background: #67c6bd; animation-delay: -1s; }
.ob-lightbox__cta-dots i:nth-child(5) { bottom: 26px; left: 44px; width: 10px; height: 10px; background: #1f3d5c; animation-delay: -3s; }

@keyframes ob-lightbox-float {
    to {
        transform: translate(6px, -8px);
    }
}

@media (max-width: 767px) {
    .ob-lightbox__slide {
        padding: 64px 16px;
    }

    .ob-lightbox__nav {
        display: none;
    }

    .ob-lightbox__cta {
        padding: var(--ob-space-5) var(--ob-space-3);
    }

    .ob-lightbox__cta-title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ob-lightbox__track {
        transition: none;
    }

    .ob-lightbox__cta-dots i {
        animation: none;
    }
}
