/* ============================================================
   AL JAZEERA INTERACTIVE
   HTML-first / Bootstrap / Scrollama story stylesheet
   ============================================================ */

:root {
    --bg: #fff3e9;
    --text: #182a3f;
    --muted: #f1d3a9;
    --light-bg: #f5f5f2;
    --light-text: #444;
    --max-text: 720px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, serif;
    font-weight: 500;
}
img {
    max-width: 100%;
    height: auto;
}
a,
a:hover,
a:visited {
    color: #000000;
    text-decoration: underline;
}

/* ============================================================
   GENERIC SCROLL SEQUENCE
   ============================================================ */

.scroll-sequence {
    position: relative;
    width: 100%;
    height: var(--sequence-height, 300vh);
    margin: 0;
    padding: 0;
}

.sequence-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.sequence-images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sequence-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.55s ease;
    will-change: opacity;
}

.sequence-image.active {
    opacity: 1;
    visibility: visible;
}

/* Keep the final intro artwork available while the sequence holds on its
   last scroll state. */
#intro-scroll .sequence-image,
#intro-mobile-scroll .sequence-image {
    backface-visibility: hidden;
}


#intro-scroll .sequence-image {
    object-position: 50% 0%;
}
.scroll-steps {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.scroll-step {
    height: 100vh;
    pointer-events: none;
}

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

.intro-sticky {
    background: #fcfcfc00;
}

.intro-overlay,
.sequence-overlay,
.chapter-sequence-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.intro-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.intro-content {
    position: absolute;
    z-index: 4;
    top: 40%;
    left: 50%;
    width: min(1100px, 90vw);
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.intro-logo {
    margin-bottom: 30px;
}
.intro-logo img {
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    
}

.intro-content h1 {
    margin: 0 auto;
    max-width: 1050px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.intro-content h2 {
    margin: 30px auto 0;
    max-width: 900px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--muted);
}

.intro-byline {
    margin: 28px auto 0;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: rgb(255, 255, 255);
}

.intro-scroll-indicator {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-align: center;
}

.scroll-arrow {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0 auto 8px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
}

/* ============================================================
   STORY INTRO / TRANSITION
   ============================================================ */

.story-introduction,
.transition-text {
    width: 100%;
    padding: 5vh 20px;
    background: var(--bg);
}

.story-introduction-inner,
.transition-text-inner {
    width: min(var(--max-text), 90vw);
    margin: 0 auto;
}

.story-introduction p,
.transition-text p {
    margin: 0 0 28px;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text);
}

.story-introduction p:last-child,
.transition-text p:last-child {
    margin-bottom: 0;
}

.department-transition-sticky {
    background: #fff3e9;
}

/* ============================================================
   CONTAINED DEPARTMENT TRANSITION
   ============================================================ */

#department-transition {
    width: min(1300px, 92vw);
    max-width: 1200px;
    margin: 0 auto;
}

#department-transition .department-transition-sticky {
    width: 100%;
}

/* Text shown only on the first department-transition image. */
.department-transition-text {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 10%;
    width: min(750px, 70vw);
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.department-transition-text .transition-message {
    display: none;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 30px;
    box-sizing: border-box;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    font-weight: 400;
    color: #616161;
    background: rgba(255, 246, 226, 0.816);
    border-radius: 6px;
}


.department-transition-textlook .transition-messagelook {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 30px;
    box-sizing: border-box;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    font-weight: 400;
    color: #616161;
    border-radius: 6px;
    text-align: center;
}

.department-transition-text .transition-message.active {
    display: block;
}

.sequence-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

/* ============================================================
   INTRO RESPONSIVE VERSIONS
   ============================================================ */

.intro-mobile {
    display: none;
}

@media (max-width: 800px) {
    #intro-scroll {
        display: none;
    }

    #intro-mobile-scroll {
        display: block;
    }
}

@media (max-width: 800px) {
    .intro-mobile .sequence-images {
        width: 100%;
        height: 100%;
    }

    .intro-mobile .sequence-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .intro-mobile .intro-content {
        position: absolute;
        top: 43%;
        left: 50%;
        right: auto;
        width: 88%;
        max-width: 88vw;
        margin: 0;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .intro-mobile .intro-logo {
        width: 100%;
        margin: 0 auto 24px;
        text-align: center;
    }

    .intro-mobile .intro-logo img {
        display: block;
        width: auto;
        max-width: 150px;
        margin: 0 auto;
    }

    .intro-mobile .intro-byline {
        text-align: center;
    }

    .intro-mobile .intro-content h1 {
        font-size: clamp(2.4rem, 10vw, 4rem);
        line-height: 1.05;
    }

    .intro-mobile .intro-content h2 {
        font-size: clamp(1rem, 4vw, 1.4rem);
        line-height: 1.2;
    }
}

/* ============================================================
   CHAPTER SEQUENCES
   ============================================================ */

.chapter {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
}

/* ============================================================
   ANNOTATED CHAPTER SEPARATORS
   ============================================================ */

.chapter-sequence {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 0;
}

.chapter-sequence-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.chapter-sequence .sequence-sticky {
    background: transparent !important;
}

.chapter-image-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.chapter-image-stage-inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 1365px;
    height: 1109px;
    max-width: none;
    margin: 0;
    padding: 0;
    transform-origin: 0 0;
    will-change: transform;
    backface-visibility: hidden;
}

.chapter-image-stage-inner .sequence-images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: fill;
}

.chapter-image-stage-inner .sequence-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    object-position: 0 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    will-change: opacity;
}

.chapter-sequence .sequence-sticky,
.chapter-image-stage-inner,
.chapter-image-stage-inner .sequence-images {
    background: transparent !important;
}

.chapter-image-stage-inner .sequence-image {
    display: block;
}

.chapter-image-stage-inner .sequence-image.active {
    opacity: 1;
}

.sequence-images {
    line-height: 0;
    background: transparent !important;
}

.sequence-images img {
    display: block;
    border: none !important;
    box-shadow: none !important;
}

.chapter-image-stage-inner .annotation-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 5;
    overflow: visible;
    pointer-events: none;
}

.chapter-sequence-overlay {
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 35%,
        rgba(0, 0, 0, 0.1) 65%,
        rgba(0, 0, 0, 0) 100%
    );
}

.chapter-sequence-title {
    position: absolute;
    z-index: 6;
    top: 50%;
    left: 50%;
    width: min(900px, 90vw);
    margin: 0;
    padding: 20px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    pointer-events: none;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 30px rgba(0, 0, 0, 0.5);
}

.chapter-sequence-title h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
}
.chapter-sequence-title p {
    margin: 20px auto 0;
    font-family: Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.4;
    color: #fff;
}

/* ============================================================
   TEXT OVERLAY FOR FINAL TWO SEQUENCE IMAGES
   ============================================================ */

.sequence-last-text {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.last-text-item {
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: min(680px, 70vw);
    transform: translate(-50%, 10px);
    text-align: center;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 5px;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    /* transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease; */
}

.last-text-item.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.last-text-item h3 {
    margin: 0 0 8px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
}

.last-text-item p {
    margin: 0;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.5;
}

@media (max-width: 750px) {
    .last-text-item {
        left: 50%;
        right: auto;
        bottom: 10%;
        width: calc(100% - 32px);
        max-width: 560px;
        padding: 14px 16px;
        transform: translate(-50%, 10px);
    }

    .last-text-item h3 {
        font-size: 1rem;
    }

    .last-text-item p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* ============================================================
   NORMAL CHAPTER CONTENT
   ============================================================ */

.chapter-text {
    width: 100%;
    padding: 4vh 20px 4vh;
    background: var(--bg);
}

.chapter-text-inner {
    width: min(680px, 90vw);
    margin: 0 auto;
}

.chapter-text p {
    margin: 0 0 28px;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text);
}

.chapter-text p:last-child {
    margin-bottom: 0;
}

.chapter-video {
    display: block;
    width: 680px;
    max-width: 90vw;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    margin: 3vh auto;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: hidden;
}

/* Safari may not paint the first decoded frame until playback starts.
   Keep the element transparent rather than showing a black placeholder. */
.chapter-video:not([data-video-ready="true"]) {
    background: transparent;
}

.chapter-video[data-video-ready="true"] {
    min-height: 0;
}

.chapter-image {
    width: 100%;
    margin: 0;
    padding: 5vh 20px 8vh;
    background: var(--bg);
}

.chapter-image img {
    display: block;
    width: min(1200px, 90vw);
    height: auto;
    margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 5vh;
    padding: 2vh 20px;
    background: var(--bg);
    color: var(--text);
    text-align: center;
    font-size: 16px;
    line-height: 25px;
}

#footer p {
    max-width: var(--max-text);
    margin: 0 auto;
}

.special-thanks strong {
    font-weight: 700;
}

/* ============================================================
   SPECIAL THANKS
   ============================================================ */

.special-thanks {
    width: min(800px, 90vw);
    margin: 5vh auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(24, 42, 63, 0.18);
    text-align: center;
    color: rgba(24, 42, 63, 0.72);
}

.special-thanks h3 {
    margin: 0 0 14px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(24, 42, 63, 0.55);
}

.special-thanks p {
    margin: 0 0 12px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(24, 42, 63, 0.68);
}

.special-thanks p:last-child {
    margin-bottom: 0;
}

@media (max-width: 750px) {
    .special-thanks {
        width: 88vw;
        margin-top: 6vh;
        padding-top: 22px;
    }

    .special-thanks p {
        font-size: 0.76rem;
        line-height: 1.5;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 750px) {
    .intro-mobile .intro-content {
        left: 50%;
        right: auto;
        width: 88%;
        max-width: 88vw;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .intro-content {
        top: 43%;
    }

    .intro-content h1 {
        font-size: 2.4rem;
    }
    .intro-content h2 {
        font-size: 1.2rem;
    }

    .story-introduction,
    .transition-text {
        padding: 7vh 20px 8vh;
    }

    .story-introduction p,
    .transition-text p,
    .chapter-text p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .chapter-sequence-title {
        width: 92vw;
        padding: 15px;
    }

    .chapter-sequence-title h2 {
        font-size: 2.2rem;
        line-height: 1.12;
    }

    .chapter-sequence-title p {
        font-size: 1rem;
        margin-top: 14px;
    }

    .sequence-annotation {
        max-width: 42vw;
        font-size: 11px;
    }

    .chapter-video {
        width: 90vw;
        max-width: 90vw;
        margin: 3vh auto;
    }
    .chapter-image {
        padding: 4vh 20px 7vh;
    }
}

/* ============================================================
   ANNOTATION CONTEXT
   ============================================================ */

.annotation-context {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;

    padding: 7px 14px;
    border-radius: 4px;

    background: rgba(251, 251, 251, 0.88);
    color: #484848;

    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;

    pointer-events: none;
}

/* ============================================================
   D3 ANNOTATION LAYER
   ============================================================ */

.annotation-svg .annotation-line {
    stroke: rgb(47, 47, 47);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.annotation-svg .annotation-dot {
    fill: #f0441e00;
    stroke: #f0441e00;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.annotation-svg .annotation-x {
    stroke: #ff8d74;
    stroke-width: 10;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.annotation-svg .annotation-label-bg {
    fill: rgba(255, 246, 226, 0.816);
    stroke: rgba(102, 102, 102, 0.677);
}

/* Main label */
.annotation-svg .annotation-label {
    fill: #484848;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-anchor: middle;
}

.annotation-svg .annotation-description {
    fill: #333333;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-anchor: middle;
}

/* Hidden HTML annotation data */
.annotation-data {
    display: none !important;
}

.annotation-context::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border-radius: 50%;
    background: #ff805d;
    vertical-align: middle;
}

/* Annotation markers: use a visible dot instead of an X */
.annotation-svg .annotation-dot {
    fill: rgb(255, 110, 110) !important;
    stroke: rgb(27, 27, 27) !important;
    stroke-width: 1px !important;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 750px) {
    .annotation-context {
        top: 20px;
        max-width: 88vw;
        padding: 6px 10px;
        font-size: 10px;
        white-space: normal;
    }

    .annotation-svg .annotation-label {
        font-size: 11px;
    }

    .annotation-svg .annotation-description {
        font-size: 9px;
    }
}

/* ============================================================
   DESKTOP / MOBILE CHAPTER SEQUENCES
   Each chapter has an independent annotated sequence for desktop
   and mobile, allowing different artwork and annotation geometry.
   ============================================================ */

.chapter-mobile {
    display: none;
}

.chapter-desktop {
    display: block;
}

@media (max-width: 800px) {
    .chapter-desktop {
        display: none;
    }

    .chapter-mobile {
        display: block;
    }
}

/* =============================================================
CHAPTER HEADINGS ABOVE SCROLL SEQUENCES
============================================================ */

.chapter-heading {
    position: relative;
    z-index: 10;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 10vh 20px 7vh;
    text-align: center;
    background: var(--bg);
    color: #4c4c4c;
}

.chapter-heading .chapter-kicker {
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0.65;
}

.chapter-heading h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.08;
}

.chapter-heading > p:last-child {
    margin: 18px auto 0;
    max-width: 760px;
    font-family: Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.4;
    color: rgba(54, 54, 54, 0.78);
}

@media (max-width: 800px) {
    .chapter-heading {
        width: 100%;
        padding: 8vh 20px 5vh;
    }

    .chapter-heading .chapter-kicker {
        margin-bottom: 10px;
        font-size: 0.68rem;
    }

    .chapter-heading h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .chapter-heading > p:last-child {
        margin-top: 12px;
        font-size: 1.05rem;
    }
}

/* Slightly enlarge chapter artwork to hide source-image edge artifacts. */
.chapter-image-stage-inner .sequence-image {
    transform: scale(1.02);
    transform-origin: center center;
}

/* Slightly enlarge department-transition artwork to hide source-image edge artifacts. */
#department-transition .sequence-image {
    transform: scale(1.02);
    transform-origin: center center;
}

/* ============================================================
TEXT OVER THE IMAGES
============================================================ */
.image-with-text {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 40px;
}

.image-with-text img {
    display: block;
    width: 100%;
    height: auto;
}

.image-text {
    position: absolute;
    left: 50%;
    bottom: -4%;
    transform: translateX(-50%);

    width: min(680px, 85%);
    padding: 14px 20px;

    background: rgba(255, 255, 255, 0);
    border-radius: 5px;

    text-align: center;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    line-height: 1.4;
    color: var(--text);
    opacity: 0.7;

    box-sizing: border-box;
}

.image-text h3 {
    margin: 0 0 6px;
    font-weight: 700;
}

.image-text p {
    margin: 0;
}

/* ============================================================
   EQUIPMENT GALLERY
   ============================================================ */

.equipment-gallery {
    width: 100%;
    margin: 0;
    padding: 0vh 20px 0vh;
    background: var(--bg);
}

.equipment-intro {
    width: min(var(--max-text), 90vw);
    margin: 0 auto 3vh;
    text-align: center;
}

.equipment-intro-text {
    margin: 0 0 28px;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--text);
}

.equipment-main-title {
    margin: 0 0 28px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
}

.equipment-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin: 0 auto;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
}

.legend-unavailable {
    background: #ff7373 !important;
}

.legend-limited {
    background: #ffbe5f !important;
}

.legend-available {
    background: #6cb790 !important;
}

.equipment-block {
    width: 100%;
    margin: 0 auto 3vh;
}

.equipment-block:last-child {
    margin-bottom: 0;
}

.equipment-category {
    margin: 0 0 2rem;
    padding: 0;
    text-align: center;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #626262;
}

.equipment-block img {
    display: block;
    width: min(100%, 1000px);
    height: auto;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 750px) {
    .equipment-gallery {
        width: 100%;
        padding: 1vh 16px 1vh;
    }

    .equipment-intro {
        width: min(var(--max-text), 100%);
        margin-bottom: 3vh;
    }

    .equipment-intro-text {
        font-size: 1.2rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .equipment-main-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        margin-bottom: 24px;
    }

    .equipment-legend {
        gap: 12px 20px;
        font-size: 1rem;
    }

    .equipment-block {
        margin-bottom: 3vh;
    }

    .equipment-category {
        margin-bottom: 2rem;
        font-size: 1rem;
        line-height: 1.25;
    }

    .equipment-block img {
        width: 100%;
    }
}

/* OneTrust cookie banner */
#onetrust-banner-sdk {
    background-color: #474747 !important;
}

#onetrust-banner-sdk,
#onetrust-banner-sdk p,
#onetrust-banner-sdk h2,
#onetrust-banner-sdk h3 {
    color: #bbbbbb !important;
}

.image-caption {
    margin-top: 10px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #515151;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    margin-top:10px;
    padding:10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 5vh;
    padding: 5vh 20px 6vh;
    background: #96918a4b;
    color: var(--text);
    text-align: center;
    font-size: 16px;
    line-height: 25px;
    font-family: Montserrat, sans-serif;
}

#footer p {
    max-width: var(--max-text);
    margin: 0 auto 8px;
}

#footer p:last-child {
    margin-bottom: 0;
}

#footer a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.publish-date {
    margin-top: 35px !important;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    opacity: 0.7;
}

.byline-staff {
    width: min(700px, 90vw);
    margin: 0 auto 18px;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.byline-grid {
    width: min(700px, 90vw);
    margin: 0 auto 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 50px;
}

.byline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.byline-item a {
    color: var(--text);
    text-decoration: none;
}

.byline-item span {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .byline-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 25px;
    }

    .byline-item span {
        font-size: 11px;
    }
}

/* Softly fade only the department-transition images into the page background. */

/* Department transition: use a clean white background */
#department-transition,
#department-transition .department-transition-sticky {
    background: #fff3e9; !important;
}

/* Remove the dark overlay from this sequence only */
#department-transition > .department-transition-sticky > .sequence-overlay {
    background: none !important;
}

/* Keep the image container transparent so the white background shows through */
#department-transition .sequence-images {
    background: transparent !important;
}

#department-transition .sequence-images .sequence-image {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 5%,
        rgba(0, 0, 0, 0.5) 10%,
        rgba(0, 0, 0, 0.85) 22%,
        #000 30%,
        #000 70%,
        rgba(0, 0, 0, 0.85) 78%,
        rgba(0, 0, 0, 0.5) 90%,
        rgba(0, 0, 0, 0.1) 95%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 5%,
        rgba(0, 0, 0, 0.5) 10%,
        rgba(0, 0, 0, 0.85) 22%,
        #000 30%,
        #000 70%,
        rgba(0, 0, 0, 0.85) 78%,
        rgba(0, 0, 0, 0.5) 90%,
        rgba(0, 0, 0, 0.1) 95%,
        transparent 100%
    );
}
