/* ==========================================================
   SPACE PAGE BASE
   ========================================================== */

.lsh-space-page {
    background: var(--lsh-bg);
}

/* ==========================================================
   HERO
   ========================================================== */

.lsh-space-page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.lsh-space-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.60) 50%, rgba(0,0,0,.35) 100%);
    z-index: 1;
}

.lsh-space-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 80px 0;
}

.lsh-space-page-hero h1 {
    font-size: 64px;
    line-height: 1.05;
    color: #f2dfb6;
    font-weight: var(--lsh-hero-title-weight);
    margin: 0 0 20px;
}

.lsh-space-page-hero p {
    font-size: 20px;
    color: #efe5d2;
    margin-bottom: 30px;
}

/* ==========================================================
   INTRO TEXT
   ========================================================== */

.lsh-space-page-intro-wrap {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lsh-space-page-intro {
    font-size: 20px;
    color: var(--lsh-gold-soft);
    margin-bottom: 20px;
}

.lsh-space-page-text {
    color: var(--lsh-text-soft);
    line-height: 1.9;
    font-size: 16px;
}

/* ==========================================================
   GALLERY SLIDER
   ========================================================== */

.lsh-space-gallery-slider-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.lsh-space-gallery-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.lsh-space-gallery-track {
    display: flex;
    gap: 20px;
    padding: 10px 40px 20px;
}

.lsh-space-gallery-slide {
    flex: 0 0 auto;
    width: 520px;
    scroll-snap-align: start;
}

.lsh-space-gallery-item {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--lsh-border);
    background: #111;
}

.lsh-space-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* arrows */

.lsh-space-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.lsh-space-gallery-arrow-prev {
    left: 10px;
}

.lsh-space-gallery-arrow-next {
    right: 10px;
}

/* hide scrollbar */

.lsh-space-gallery-slider::-webkit-scrollbar {
    display: none;
}

/* ==========================================================
   GRID (fallback mode)
   ========================================================== */

.lsh-space-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.lsh-space-gallery-grid img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 18px;
}

/* ==========================================================
   LIGHTBOX
   ========================================================== */

.lsh-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.lsh-lightbox.active {
    display: block;
}

.lsh-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.lsh-lightbox-inner {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lsh-lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
}

.lsh-lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {

    .lsh-space-page-hero h1 {
        font-size: 40px;
    }

    .lsh-space-page-hero p {
        font-size: 16px;
    }

    .lsh-space-gallery-slide {
        width: 85%;
    }

    .lsh-space-gallery-track {
        padding: 10px 20px 20px;
    }

    .lsh-space-gallery-arrow {
        display: none;
    }

    .lsh-space-gallery-grid {
        grid-template-columns: 1fr;
    }
}