body {
    /* Layout & Reset */
    margin: 0;
    display: block;
    min-height: 100vh;
    
    /* Typography: Professional Clarity */
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.625;
    color: #1e293b;
    
    /* Layered Backgrounds: Strategic Visual Depth */
    /* Using absolute URLs for production deployment */
    background-color: #0f172a;
    background-image: 
        url('https://lasertagginginc.com/images/rocket.png'), 
        url('https://lasertagginginc.com/images/background.jpg');
    background-position: top 20px left 20px, center center;
    background-size: 300px auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;

    /* Motion: 1s Crossfade / Fade-in */
    animation: fadeIn 1s ease-in-out forwards;
}

/* Elite Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Typewriter Cursor */
#typewriter-cursor {
    font-weight: 300;
    transition: opacity 0.1s;
}
#typewriter-text {
    border-right: none;
    min-height: 1.2em;
    display: inline;
}

/* ============================================
   SITE CONTENT CONTAINER
   Constrains content to 1200px so body background
   (rocket + background.jpg) is visible on desktop sides
   ============================================ */
.site-content {
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.233);
    position: relative;
    z-index: 1;
}

main.site-content {
    background-color: #ffffff;
    overflow: hidden;
}

header.site-content {
    background-color: #ffffff;
    z-index: 50;
    overflow: visible;
}

/* On mobile, content fills full width — no side gaps */
@media (max-width: 1279px) {
    .site-content {
        max-width: 100%;
        box-shadow: none;
    }
}
blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 20px 20px 0px 0px;
}
/* ============================================
   MOBILE ROCKET VISIBILITY
   Show the iconic rocket on mobile devices
   in a compelling way that amazes visitors
   ============================================ */
@media (max-width: 1279px) {
    /* Mobile rocket - visible decorative element with glow effect */
    body::before {
        content: '';
        position: fixed;
        bottom: 100px;
        right: -20px;
        width: 160px;
        height: 200px;
        background-image: url('https://lasertagginginc.com/images/rocket.png');
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 9998;
        pointer-events: none;
        opacity: 0.85;
        filter: drop-shadow(0 0 20px rgba(234, 88, 12, 0.4)) 
                drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
        animation: rocketFloat 3s ease-in-out infinite;
        transform-origin: center center;
    }
    
    /* Smooth floating animation for mobile rocket */
    @keyframes rocketFloat {
        0%, 100% { 
            transform: translateY(0) rotate(-5deg) scale(1); 
            filter: drop-shadow(0 0 20px rgba(234, 88, 12, 0.4)) 
                    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
        }
        50% { 
            transform: translateY(-12px) rotate(-8deg) scale(1.02); 
            filter: drop-shadow(0 0 30px rgba(234, 88, 12, 0.6)) 
                    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
        }
    }
    
    /* Ensure site-content stays above general backgrounds */
    .site-content {
        position: relative;
        z-index: 1;
    }
}

/* Extra small screens - adjust rocket position */
@media (max-width: 480px) {
    body::before {
        width: 120px;
        height: 150px;
        bottom: 90px;
        right: -15px;
        opacity: 0.75;
    }
}

/* Strategic Utility Classes */
body.custom-background {
    background-color: #000000;
}

/* ============================================
   ELITE TYPOGRAPHY HIERARCHY
   Consistent, professional text sizing
   ============================================ */

/* Global font-size reset — Tailwind handles sizing */
body {
    font-size: 1rem;
}

/* Section headings — prevent oversized display text */
h1 { line-height: 1.1; }
h2 { line-height: 1.15; }
h3 { line-height: 1.25; }

/* ============================================
   BS5-LIGHTBOX — Minimal Bootstrap Modal/Carousel CSS
   Only the classes bs5-lightbox needs. No full
   Bootstrap CSS — avoids colour/layout conflicts.
   ============================================ */

/* --- Modal base --- */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}
.modal.show { display: block; }
.modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99998;
    background: #000;
}
.modal-backdrop.show { opacity: 0.92; }
.modal-backdrop.fade { opacity: 0; transition: opacity .15s linear; }
.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 1140px;
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: center;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    outline: 0;
}
.modal-body { position: relative; flex: 1 1 auto; }
.modal.fade .modal-dialog { transition: opacity .2s ease-out; opacity: 0; }
.modal.show .modal-dialog { opacity: 1; }

/* --- Close button (X) --- */
.btn-close {
    box-sizing: content-box;
    width: 1em; height: 1em;
    padding: .25em;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    cursor: pointer;
    opacity: .5;
}
.btn-close:hover { opacity: .75; }

/* --- Carousel base --- */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-item {
    position: relative;
    display: none;
    width: 100%;
    backface-visibility: hidden;
}
.carousel-item.active { display: block; }

/* Carousel slide transition states (required by Bootstrap Carousel JS) */
.carousel-item-next,
.carousel-item-prev {
    display: block;
    position: absolute;
    top: 0;
}
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end { transform: translateX(100%); }
.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start { transform: translateX(-100%); }
.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end { transform: translateX(0); }

/* Carousel fade transition — disabled to prevent transitionend double-fire */
.carousel-fade .carousel-item { opacity: 0; transform: none; }
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end { z-index: 1; opacity: 1; }
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end { opacity: 0; z-index: 0; }
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #000000;
    text-align: center;
    border: 0;
    cursor: pointer;
    opacity: .5;
    transition: opacity .15s ease;
}
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: .9; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem; height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ratio { position: relative; width: 100%; }
.ratio::before { display: block; padding-top: var(--bs-aspect-ratio); content: ""; }
.ratio > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.ratio-16x9 { --bs-aspect-ratio: 56.25%; }
.img-fluid { max-width: 100%; height: auto; }

/* --- Bootstrap utilities required by bs5-lightbox --- */
/* Display / Position */
.d-block { display: block !important; }
.position-absolute { position: absolute !important; }

/* Offsets */
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.start-50 { left: 50% !important; }
.top-50 { top: 50% !important; }

/* Transforms */
.translate-middle { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }

/* Sizing */
.h-75 { height: 75% !important; }
.h-auto { height: auto !important; }
.w-auto { width: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.m-auto { margin: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }

/* Text */
.text-white { color: #fff !important; }
.text-center { text-align: center !important; }
.small { font-size: .875em !important; }

/* Appearance */
.border-0 { border: 0 !important; }
.bg-transparent { background-color: transparent !important; }

/* Modal size variants (bs5-lightbox data-size attribute) */
.modal-dialog-centered { align-items: center; min-height: calc(100% - 1rem); }
.modal-xl { max-width: 1140px; }
.modal-lg { max-width: 800px; }
.modal-fullscreen { width: 100vw; max-width: none; height: 100%; margin: 0; }
.modal-fullscreen .modal-content { height: 100%; border: 0; border-radius: 0; }

/* Carousel slide class (bs5-lightbox adds .slide alongside .carousel) */
.carousel.slide .carousel-item {
    transition: none;
}
.carousel.pointer-event { touch-action: pan-y; }
.carousel-control { text-decoration: none; }

/* Loading spinner (shown while lightbox image loads) */
.spinner-border {
    display: inline-block;
    width: 2rem; height: 2rem;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}
@keyframes spinner-border { to { transform: rotate(360deg); } }

/* ============================================
   BS5-LIGHTBOX — Custom Overrides
   ============================================ */

/* Trigger elements — zoom-in cursor & subtle hover */
a[data-toggle="lightbox"] {
    cursor: zoom-in;
    display: block;
    text-decoration: none;
}
a[data-toggle="lightbox"] img {
    transition: transform 0.4s ease, filter 0.4s ease;
}
a[data-toggle="lightbox"]:hover img {
    transform: scale(1.03);
    filter: brightness(1.08);
}

/* --- Lightbox modal overrides --- */
.modal.lightbox {
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Full-viewport dialog — images fill the screen */
.modal.lightbox .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    padding: 0;
}
.modal.lightbox .modal-content {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
}
.modal.lightbox .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Kill the fixed 16:9 ratio — let images breathe at natural aspect */
.modal.lightbox .ratio {
    background-color: transparent !important;
}
.modal.lightbox .ratio::before {
    display: none !important;
}
.modal.lightbox .ratio > * {
    position: relative !important;
}

/* Images — large, crisp, viewport-filling */
.modal.lightbox .modal-body img {
    max-height: 94vh;
    max-width: 94vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Close button — dark pill, always visible on any image ── */
.modal.lightbox .btn-close {
    position: fixed !important;
    top: 16px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 99999;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    opacity: 1 !important;
    filter: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.lightbox .btn-close:hover {
    background: rgba(0, 0, 0, 0.85) !important;
    transform: scale(1.1);
}
/* Force SVG icon inside close button to be bright white & visible */
.modal.lightbox .btn-close svg {
    width: 18px;
    height: 18px;
    fill: #fff !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* ── Carousel controls — frosted glass pill arrows ── */
.modal.lightbox .carousel-control-prev,
.modal.lightbox .carousel-control-next {
    position: fixed !important;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    opacity: 1;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}
.modal.lightbox .carousel-control-prev { left: 16px; right: auto; bottom: auto; }
.modal.lightbox .carousel-control-next { right: 16px; left: auto; bottom: auto; }
.modal.lightbox .carousel-control-prev:hover,
.modal.lightbox .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.08);
}
.modal.lightbox .carousel-control-prev-icon,
.modal.lightbox .carousel-control-next-icon {
    width: 22px;
    height: 22px;
    background-size: 100% 100%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Caption text */
.modal.lightbox .lightbox-caption {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 12px 16px 4px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* CTA buttons below caption */
.modal.lightbox .lightbox-cta {
    padding: 8px 16px 12px;
    text-align: center;
    pointer-events: auto;
}
.modal.lightbox .lightbox-cta a:hover {
    filter: brightness(1.15);
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    .modal.lightbox {
        padding: 0 !important;
        margin: 0 !important;
    }
    .modal.lightbox .modal-dialog {
        margin: 0;
        max-width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .modal.lightbox .modal-body img {
        max-height: 92vh;
        max-height: 92dvh;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
    .modal.lightbox .btn-close {
        top: 12px !important;
        right: 12px !important;
        width: 40px;
        height: 40px;
    }
    .modal.lightbox .carousel-control-prev,
    .modal.lightbox .carousel-control-next {
        width: 44px;
        height: 44px;
    }
    .modal.lightbox .carousel-control-prev { left: 6px; }
    .modal.lightbox .carousel-control-next { right: 6px; }
    .modal.lightbox .carousel-control-prev-icon,
    .modal.lightbox .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* --- Extra small screens (≤480px) --- */
@media (max-width: 480px) {
    .modal.lightbox .modal-body img {
        max-height: 90vh;
        max-height: 90dvh;
        max-width: 100vw;
    }
    .modal.lightbox .carousel-control-prev,
    .modal.lightbox .carousel-control-next {
        width: 38px;
        height: 38px;
        border: none;
    }
    .modal.lightbox .carousel-control-prev { left: 4px; }
    .modal.lightbox .carousel-control-next { right: 4px; }
}

/* Lightbox modal — mobile sticky bar handled via JS in footer.php */

/* Print Styles — Invitation */
@media print {
    body, .site-content { background: white !important; box-shadow: none !important; }
    header.site-content, footer, nav, .mobile-sticky-bar,
    section:not(:has(#invitation-preview)),
    button:not([onclick*="print"]) { display: none !important; }
    #invitation-preview {
        margin: 0 auto; width: 5in; min-height: auto !important;
        page-break-inside: avoid; border: 3px solid #ea580c !important;
    }
    [contenteditable] { border-bottom: 1px dashed #ccc; }
}
