/* =============================================================================
   BASE
   Global foundations for TBE Core.
============================================================================= */

/* Add global typography/layout defaults here if needed later. */

html,
body {
    overflow-x: hidden;
}

/* =============================================================================
   HORIZONTAL OVERFLOW FIX
   Prevents full-width sections from creating sideways scroll on mobile.
============================================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

/* =============================================================================
   GLOBAL BOX SIZING
   Keeps section and container sizing predictable across the site.
============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Shared experience and venue gallery lightbox */
.tbe-gallery-link {
    display: block;
    min-width: 0;
    cursor: zoom-in;
}

.tbe-gallery-link:focus-visible {
    outline: 3px solid #008277;
    outline-offset: 4px;
}

dialog.tbe-lightbox {
    box-sizing: border-box;
    width: 96vw;
    max-width: 1500px;
    height: 94vh;
    height: 94dvh;
    max-height: 94dvh;
    margin: auto;
    padding: 64px 64px 48px;
    border: 0;
    border-radius: 18px;
    background: #101820;
    color: #fff;
}

.tbe-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.tbe-lightbox__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: pan-y pinch-zoom;
}

.tbe-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #101820;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.tbe-lightbox button:hover {
    background: #008277;
}

.tbe-lightbox button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.tbe-lightbox__close {
    top: 10px;
    right: 10px;
}

.tbe-lightbox__previous {
    top: calc(50% - 22px);
    left: 10px;
}

.tbe-lightbox__next {
    top: calc(50% - 22px);
    right: 10px;
}

.tbe-lightbox button[hidden] {
    display: none;
}

.tbe-lightbox__status {
    position: absolute;
    bottom: 12px;
    left: 64px;
    right: 64px;
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #fff;
}

@media (max-width: 600px) {
    dialog.tbe-lightbox {
        padding: 64px 12px 76px;
    }

    .tbe-lightbox__previous,
    .tbe-lightbox__next {
        top: auto;
        bottom: 14px;
    }
}