/* Gallery details; typography, navigation, and buttons come from site.css. */
.tour-hero {
    padding-block: 4rem 2.5rem;
}
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
}
.tour-hero h1 {
    max-width: 900px;
}
.hero-copy {
    margin-top: 1.5rem;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.15rem;
}
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.3rem;
    padding-block: 1rem;
    border-block: 1px solid var(--line);
    font-size: 0.9375rem;
}
.jump-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.product-section {
    padding-block: 4rem 0;
}
.product-heading {
    margin-bottom: 3rem;
}
.product-heading > p {
    margin-top: 1rem;
    max-width: 700px;
    color: var(--muted);
}
.tour-story {
    padding-block: 2rem 3rem;
    border-top: 1px solid var(--line);
}
.story-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.story-heading > div:first-child {
    max-width: 780px;
}
.story-heading h3 {
    margin-block: 0.6rem 0.85rem;
    font-size: 1.6rem;
}
.story-heading p {
    color: var(--muted);
}
.story-number {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.story-controls {
    display: flex;
    gap: 0.6rem;
}
.story-control {
    border: 1px solid var(--muted);
    color: var(--ink);
    background: var(--surface);
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
}
.story-control:hover {
    background: var(--studio-wash);
}
.shot-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.25rem;
    scroll-snap-type: x proximity;
    scroll-padding: 0.5rem;
}
.tour-shot {
    flex: 0 0 280px;
    min-width: 0;
    scroll-snap-align: start;
}
.tour-shot-link {
    display: block;
    padding: 1rem;
    background: #e9eeeb;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.tour-shot img {
    width: 100%;
    height: 386px;
    object-fit: contain;
}
.tour-shot figcaption {
    margin-top: 0.85rem;
    line-height: 1.5;
}
.shot-position {
    color: var(--muted);
    font-size: 0.75rem;
}
.tour-shot figcaption p {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
}
.tour-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-block: 1rem 4rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.tour-cta p {
    max-width: 650px;
    margin-top: 1rem;
    color: var(--muted);
}
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}
body.lightbox-open {
    overflow: hidden;
}
.tour-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #102023f5;
    color: #fff;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}
.lightbox-topbar {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.lightbox-caption {
    flex: 1;
    font-size: 1rem;
}
.lightbox-counter {
    font-size: 0.875rem;
    color: #dce5e5;
    white-space: nowrap;
}
.lightbox-close,
.lightbox-nav {
    border: 1px solid #b1c6c8;
    color: white;
    background: #223c40;
    min-width: 48px;
    min-height: 48px;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 1.6rem;
}
.lightbox-nav {
    align-self: center;
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline-color: #fff;
}
.lightbox-figure {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}
.lightbox-figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 640px) {
    .tour-hero {
        padding-block: 2.75rem 2rem;
    }
    .story-heading {
        display: block;
    }
    .story-controls {
        margin-top: 1.1rem;
    }
    .tour-shot {
        flex-basis: min(270px, 80vw);
    }
    .tour-shot img {
        height: 360px;
    }
    .tour-cta {
        flex-direction: column;
        align-items: start;
        padding: 1.5rem;
    }
    .cta-actions {
        width: 100%;
    }
    .tour-lightbox {
        padding: 0.75rem;
        gap: 0.6rem;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }
    .lightbox-topbar {
        flex-wrap: wrap;
    }
    .lightbox-caption {
        flex-basis: calc(100% - 60px);
        font-size: 0.875rem;
    }
    .lightbox-close {
        order: 0;
    }
    .lightbox-counter {
        order: 1;
    }
    .lightbox-nav {
        min-width: 44px;
    }
}
@media print {
    .jump-nav,
    .story-controls,
    .tour-lightbox {
        display: none;
    }
    .shot-rail {
        flex-wrap: wrap;
        overflow: visible;
    }
    .tour-shot {
        flex-basis: 180px;
        break-inside: avoid;
    }
    .tour-shot img {
        height: 240px;
    }
}
