/* =========================================================
   GLOBAL BASE STYLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #DCD7DB;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: clamp(14px, 0.85vw, 18px);
    font-display: justify;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p,
strong,
li,
a,
.caption,
.flip-card-back p {
    font-family: 'Open Sans', sans-serif;
}

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */

.main-container {
    max-width: 1100px;
    margin: 3vw auto;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 1.5vh;
    box-shadow: 0 2px 4px #00000080;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* =========================================================
   HEADINGS AND LINKS
   ========================================================= */

.url {
    text-decoration: none;
    font-size: clamp(14px, 1vw, 18px);
    color: #333;
}

.url a {
    text-decoration: none;
    color: #29B6EE;
}

.main-heading {
    border-bottom: 2px solid #d8d5d5;
    padding-bottom: 0.5vh;
}

.main-heading h2 {
    font-size: clamp(20px, 1.2vw, 26px);
    color: #3b3a3a;
    margin-bottom: 1vh;
}

/* =========================================================
   SECTION STYLING
   ========================================================= */

.section {
    border-bottom: 2px solid #d8d5d5;
    padding-bottom: 2vh;
    margin-bottom: 2vh;
}

.section h2 {
    font-size: clamp(18px, 1.1vw, 24px);
    color: #3b3a3a;
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    line-height: 10px;
}

.section .heading-icon {
    height: clamp(20px, 1vw, 30px);
    width: auto;
    margin-top: 0;
    margin-left: 0.5vw;
}

.section .content {
    margin-left: 2vw;
}

.section .content ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.section .content li::before {
    content: "- ";
}

.section .content p {
    margin: 0 2vw 0 0;
    text-align: justify;
}


/* =========================================================
   IMAGE AND CARD GRID
   ========================================================= */

/* Header image: remove inline-image whitespace and default margins so
    it sits flush with surrounding content. */
.img-head {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: cover;
}

/* Center last video if it's alone */
.img-container .video-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;   /* span full row */
    justify-self: center;  /* center horizontally */
    max-width: 50%;        /* optional: control width */
}

.img-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8vw;
    margin-top: 0.5vh;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    padding: 1vw;
} */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* 🔥 KEY FIX */
    gap: 2vw;
    padding: 1vw;
}

.box-container {
    background-color: #efeff2;
    border: 1px solid #333;
    border-radius: 2vw;
    /* box-shadow: 0 2px 4px #00000040; */
    width: 48%;
    /* margin: 2vw 0; */
    padding-bottom: 2vh;

}

/* =========================================================
   DAILY FACTS CARD (modern, responsive, JS-ready)
   ========================================================= */
.dailyfacts-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dailyfacts-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #eef0f4;
    padding-bottom: 0.6rem;
    margin-bottom: 0.75rem;
}

.dailyfacts-title {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 22px);
    color: #3b3a3a;
    letter-spacing: 0.01em;
}

.dailyfacts-date {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
}

.dailyfacts-body {
    margin-top: 0.25rem;
}

.dailyfacts-fact-text {
    margin: 0;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: #1f2937;
    line-height: 1.55;
}

.dailyfacts-footer {
    margin-top: 0.85rem;
    display: flex;
    justify-content: flex-start;
}

.dailyfacts-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #14539A;
    background: rgba(20,83,154,0.08);
    border: 1px solid rgba(20,83,154,0.18);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.dailyfacts-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20,83,154,0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dailyfacts-card:focus-within {
    outline: 3px solid rgba(41,182,238,0.35);
    outline-offset: 2px;
} 


.box-container .titles {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 1vw 1vw 0.5vw;
    gap: 0.5rem;
}

.box-container .label {
    text-align: right;
    padding-right: 1vw;
}


.box-container .titles h2 {
    font-size: clamp(16px, 1.5vw, 22px);
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.2;
    padding-right: 1vw;
    /* remove default h2 margin inside title bar */
}

.box-container .label h2 {
    font-size: clamp(20px, 2vw, 26px);
}

.box-container .mcq-options {
    list-style-type: none;
    padding: 0;
}



/* =========================================================
   FLIP CARD
   ========================================================= */

.flip-card {
    width: clamp(100px, 13vw, 200px);
    height: auto;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    /* margin-top: 1vh; */
    border: 1px solid #ccc;
    padding: 1vh;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    /* Ensure the inner container respects the card size */
    transition: transform 0.6s ease;
    /* Preserve flipping animation */
    transform-style: preserve-3d;
    /* Maintain 3D transform for flipping */
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
    /* Ensure flip works */
}

.flip-card-front,
.flip-card-back {
    width: clamp(100px, 13vw, 200px);
    height: auto;
    aspect-ratio: 4 / 3;
    backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-inner {
    position: relative;
    /* width: 12vw; */
    /* height: auto;
    aspect-ratio: 4 / 3; */
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    backface-visibility: hidden;
    border-radius: 0;
    /* Remove rounding for sharp corners */
    overflow: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background-color: #14539A;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
    padding: 1vw;
    box-sizing: border-box;
}

/* =========================================================
   ZOOMABLE images-temp
   ========================================================= */


/* Each zoom-group is a palette slot — fills its grid cell */
.zoom-group {
    width: 100%;
    height: clamp(110px, 13vw, 200px);
    border: 1.5px solid #999;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    box-sizing: border-box;
    background: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    padding: 4px;
}

.zoom {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
}

.zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    cursor: zoom-in;
    transition: transform 0.3s;
    border-radius: 3px;
}

.zoom img:hover {
    transform: scale(1.05);
}

.zoom-group .zoom:not(:first-child) {
    display: none;
}


.zoom.visible img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* video-box palette — same size and style as image palettes */
.video-box {
    width: 100% !important;
    height: clamp(110px, 13vw, 200px) !important;
    aspect-ratio: unset !important;
    border: 1px solid #bbb;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    padding: 0;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* =========================================================
   MODAL & VIDEO STYLING
   ========================================================= */

.modal {
    display: none;
    /* hidden until opened */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

/* Image + caption container */
.image-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ← centers caption horizontally */
    max-width: 85vw;
    max-height: 100%; /* Keep whole container bounded inside the zoom-wrapper */
}

/* Image */
.image-figure img {
    max-width: 80vw;
    max-height: 65vh; /* Reduced from 80vh to prevent top overflow and ensure visually centered spacing */
    object-fit: contain;
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 0.5rem;
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
    flex-shrink: 1; /* Allows image to shrink if viewport/caption requires it */
    min-height: 0;
}

/* Caption – bottom center */
.modal-caption {
    margin-top: 0.8rem;
    /* space from image */
    color: #fff;
    font-size: 1rem;
    font-weight: 450;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

/* =========================================================
   MODAL THUMBNAIL STRIP (image modal only)
   ========================================================= */
.thb-strip-separator, .thumb-strip { }

.thumb-strip {
    width: 100%;
    /* reduce gap so the main image isn't pushed too high */
    margin-top: 0.35rem;
    display: flex;
    justify-content: center;
}


.thumb-strip-inner {
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #29B6EE rgba(255,255,255,0.2);
}


.thumb-strip-inner::-webkit-scrollbar {
    height: 6px;
}

.thumb-strip-inner::-webkit-scrollbar-thumb {
    background: rgba(41,182,238,0.85);
    border-radius: 10px;
}

.thumb-btn {
    flex: 0 0 auto;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.thumb-btn img {
    display: block;
    height: 70px;
    width: auto;
    max-width: 120px;
    object-fit: cover;
    border-radius: 6px;
    /* ensure border doesn't create extra gaps */
    margin: 0;
    padding: 0;
}


.thumb-btn.is-active {
    border-color: #29B6EE;
}

@media (max-width: 480px) {
    .thumb-strip {
        margin-top: 0.25rem;
    }

    .thumb-strip-inner {
        gap: 6px;
        padding: 0.1rem 0.2rem;
    }

    .thumb-btn img {
        height: 60px;
        max-width: 100px;
    }
}


.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity .2s;
}

.nav-arrow:hover {
    opacity: 1;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


.close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.zoom-wrapper {
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
}


.video-box {
    width: clamp(100px, 13vw, 200px);
    aspect-ratio: 4 / 3;
    padding: 1vh;
    border: 1px solid #ccc;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
}

#popupVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Tabs Styling */
.tabs {
    display: flex;
    /* Use flexbox to align items horizontally */
    justify-content: start;
    /* Align items to the start (left) */
    gap: 10px;
    /* Space between tabs */
    padding: 10px;
    /* Padding around the tabs container */
    list-style-type: none;
    /* Remove default bullets from list */
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
}

.tab {
    padding: 10px 10px;
    /*Padding inside each tab*/
    background-color: #e0e0e0;
    /*Background color for each tab*/
    border-radius: 5px;
    /* Rounded corners for each tab */
    cursor: pointer;
    /* Change cursor to pointer on hover */
    text-align: center;
    /* Center align text inside each tab */
    white-space: nowrap;
    /*Prevent text from wrapping*/
    list-style: none;
    /* Remove default list style */
    font-size: small;
}

.tab.active {
    background-color: #FDFACF;
    color: #6D3F36;
    /* Active tab text color */
}

.buttons {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Ensures wrapping on smaller screens */
    width: 100%;
    max-width: 1200px;
}

.tabs {
    flex: 1;
    margin-right: 10px;
}

.tab-content-wrapper {
    flex: 3;
}

.list-group-item.active {
    background-color: #FDFACF;
    color: #6D3F36;
    /* border-color: #3e7ad4; */
}

.list-group-item {
    display: block;
    padding: 12px 20px;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    color: black;
}

.a {
    color: #3e7ad4;
}

.list-item-number {
    color: black;
}

.list-item-link {
    color: #3e7ad4;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
    /* Optional: smooth transition for underline */
}

.list-item-link:hover {
    text-decoration: underline;
}


.tab-content {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
}

.tab-pane {
    display: none;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    hyphens: auto;
}


.tab-pane.active {
    display: block;
}

.tab-pane strong {
    color: #6D3F36;
}

.tab-pane p {
    text-align: justify;
    line-height: 1.6;
}

.tab-pane ul,
.tab-pane ol {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 5px;
}

.tab-pane img {
    max-width: 100%;
    /* height: auto; */
    margin-right: 20px;
}

.tab-pane table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tab-pane table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.tab-pane table .wp-caption-text {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

li::marker {
    color: black;
}

li a {
    color: #0A58CA;
    text-decoration: none;
}

li a:hover {
    text-decoration: underline;
}

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

/* ── Tablet: 481px – 767px ─────────────────────────────── */
@media (min-width: 481px) and (max-width: 767px) {
    .main-container {
        margin: 2vw auto;
        padding: 0.5rem;
    }

    .buttons {
        padding: 10px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .tabs {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .tab-content-wrapper {
        flex: 1;
    }

    .h3,
    h3 {
        font-size: calc(1.1rem + .5vw);
    }

    /* Card layout: full-width boxes on tablet */
    .cards {
        gap: 3vw;
        flex-direction: column;
    }

    .cards .box-container,
    .box-container {
        width: 100%;
        border-radius: 8px;
    }

    /* Image row items sized for tablet */
    .flip-card,
    .flip-card-front,
    .flip-card-back {
        width: clamp(110px, 20vw, 150px);
    }


    .img-container {
        gap: 1.5vw;
    }

    /* Modal image sizing */
    .image-figure,
    .image-figure img {
        max-width: 90vw;
    }

    .image-figure img {
        max-height: 55vh; /* Reduced from 75vh to ensure proper centering and breathing room */
    }
}

/* ── Mobile: ≤ 480px ────────────────────────────────────── */
@media (max-width: 480px) {
    .main-container {
        margin: 1vw auto;
        padding: 0.4rem;
    }

    .section .content {
        margin-left: 0.5vw;
    }

    .section .content p {
        margin: 0 0.5vw 0 0;
    }

    .buttons {
        padding: 8px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .tabs {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .tab-content-wrapper {
        flex: 1;
    }

    .h3,
    h3 {
        font-size: calc(1rem + .5vw);
    }

    /* Card layout: full-width on mobile */
    .cards {
        gap: 4vw;
        flex-direction: column;
    }

    .cards .box-container,
    .box-container {
        width: 100%;
        border-radius: 6px;
    }

    .box-container .titles {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.4rem;
        padding: 2vw;
    }

    .box-container .titles h2 {
        font-size: clamp(13px, 3.5vw, 18px);
    }

    /* Image row items: 3-per-row compact tiles on mobile */
    .img-container {
        gap: 2vw;
    }

    .flip-card,
    .flip-card-front,
    .flip-card-back {
        width: clamp(90px, 28vw, 140px);
    }


    .zoom-group,
    .video-box {
        height: clamp(80px, 28vw, 130px);
    }

    /* Modal: full-width on mobile */
    .image-figure,
    .image-figure img {
        max-width: 95vw;
    }

    .image-figure img {
        max-height: 50vh; /* Reduced from 70vh to ensure it doesn't push the caption/thumbs offscreen */
    }

    /* Wider modal caption */
    .modal-caption {
        font-size: 0.85rem;
    }

    /* Larger close/nav buttons for touch */
    .close {
        font-size: 32px;
        top: 10px;
        right: 16px;
    }

    .nav-arrow {
        font-size: 36px;
    }

    /* List-group tabs: scrollable horizontal strip on mobile */
    .list-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .list-group-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Video popup iframe */
    #popupVideo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* ── Mid-tablet: 768px – 991px ─────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
    .buttons {
        padding: 20px;
    }

    .tabs {
        margin-right: 9px;
    }

    .tab-content-wrapper {
        flex: 2;
    }

    .h3,
    h3 {
        font-size: calc(1.2rem + .55vw);
    }

    /* Keep boxes as 2-per-row but ensure no overflow */
    .box-container {
        width: 47%;
    }

    /* Slightly larger image tiles for tablets */
    .flip-card,
    .flip-card-front,
    .flip-card-back {
        width: clamp(80px, 11vw, 140px);
    }

    .zoom-group,
    .video-box {
        height: clamp(80px, 11vw, 140px);
    }
}

/* =========================================================
   VIDEO THUMBNAIL CARD
   ========================================================= */

/* Override: video-box is now a clickable thumbnail card
   (size is now set near .zoom-group to keep all palettes uniform) */

.video-box:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.video-box:focus-visible {
    outline: 3px solid #29B6EE;
    outline-offset: 2px;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.video-box:hover .video-thumb-img {
    opacity: 0.75;
}

/* YouTube-style play button overlay */
.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-btn svg {
    width: clamp(28px, 4vw, 52px);
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.video-box:hover .video-play-btn svg {
    transform: scale(1.12);
}

/* =========================================================
   VIDEO MODAL OVERLAY
   ========================================================= */

@keyframes videoModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes videoModalSlideUp {
    from {
        transform: translateY(40px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.video-modal {
    display: none;
    /* toggled to flex by JS */
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: videoModalFadeIn 0.25s ease forwards;
}

/* JS sets display:flex to open; the animation runs once */
.video-modal.is-open {
    display: flex;
}

.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 860px;
    animation: videoModalSlideUp 0.28s ease forwards;
}

/* 16:9 responsive wrapper */
.video-modal-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
    background: #000;
}

.video-modal-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-title {
    margin: 0.75rem 0 0;
    color: #f0f0f0;
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Close button — exactly matches the image modal .close style */
.video-modal-close {
    position: absolute;
    top: 15px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10002;
}

/* ── Responsive: tablet ────────────────────────────────── */
@media (min-width: 481px) and (max-width: 767px) {
    .video-modal-inner {
        max-width: 96vw;
    }
}

/* ── Responsive: mobile ────────────────────────────────── */
@media (max-width: 480px) {
    .video-modal {
        padding: 0.5rem;
        align-items: flex-end;
        /* sheet slides up from bottom */
    }

    .video-modal-inner {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .video-modal-close {
        top: 10px;
        right: 16px;
        font-size: 32px;
    }
}