/**
 * Developed by: George Rexy Vincent Z. Bacani
 * College: College of Information Technology
 * Role: System Developer / Front-End Developer
 * Development Year: 2026–2027
 * Institution: Don Mariano Marcos Memorial State University
 * Version: v1.0
 * Email: rexygeorge11@gmail.com
 * Copyright: © 2026–2027. All rights reserved.
 */

:root {
    --ink: #0b241a;
    --green: #0f6a46;
    --green-dark: #094f35;
    --muted: #66756d;
    --line: #dce5df;
    --soft: #f5f8f6;
    --paper: #fff;
    --shadow: 0 18px 46px rgba(9,49,32,.08);
}

* {
    box-sizing: border-box;
}

body.article-page {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Inter,Arial,sans-serif;
}

.article-shell {
    width: min(1180px,calc(100% - 48px));
    margin: 0 auto;
}

.story-hero {
    padding: 34px 0 42px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg,#fff 0%,#fbfdfc 100%);
}

.article-back {
    display: inline-flex;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 20px;
}

.article-back:hover {
    text-decoration: underline;
}

.story-hero__grid {
    display: grid;
    grid-template-columns: minmax(0,1.04fr) minmax(360px,.96fr);
    gap: 52px;
    align-items: center;
}

.story-hero__grid--no-media {
    grid-template-columns: minmax(0,820px);
}

.story-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 11px;
}

.story-kicker img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid var(--line);
    background: #fff;
}

.story-kicker span {
    font-weight: 850;
    color: var(--green);
    letter-spacing: .05em;
}

.story-kicker b {
    font-weight: 600;
    color: var(--muted);
}

.story-hero h1 {
    font-family: Manrope,Inter,sans-serif;
    font-size: clamp(42px,4.6vw,66px);
    line-height: 1.01;
    letter-spacing: -.052em;
    margin: 0 0 18px;
    max-width: 760px;
}

.story-deck {
    font-size: 16px;
    line-height: 1.65;
    color: #526159;
    margin: 0 0 18px;
    max-width: 720px;
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 11px;
    color: #718078;
    font-weight: 600;
}

.story-meta span:first-child {
    color: var(--green);
    font-weight: 800;
}

.story-cover {
    position: relative;
    height: 430px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    background: #eef3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    box-shadow: var(--shadow);
}

.story-cover__blur,.story-gallery-tile__blur {
    position: absolute;
    inset: -18px;
    background-size: cover;
    background-position: center;
    filter: blur(24px);
    opacity: .18;
    transform: scale(1.08);
}

.story-cover img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.story-main {
    padding: 46px 0 72px;
}

.story-content-column {
    max-width: 860px;
    margin: 0 auto;
}

.story-facts-bar {
    display: grid;
    grid-template-columns: 1.4fr .6fr .9fr;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfc;
    margin-bottom: 34px;
    overflow: hidden;
}

.story-facts-bar>div {
    padding: 14px 18px;
}

.story-facts-bar>div+div {
    border-left: 1px solid var(--line);
}

.story-facts-bar span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 8px;
    color: #8a958f;
    font-weight: 800;
    margin-bottom: 4px;
}

.story-facts-bar strong {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.article-prose {
    font-size: 17px;
    line-height: 1.9;
    color: #28372f;
    white-space: normal;
}

.article-prose br+br {
    line-height: 2.6;
}

.story-gallery-section {
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.article-section-head>span,.article-section-head>div>span {
    display: block;
    font-size: 9px;
    letter-spacing: .16em;
    font-weight: 850;
    color: var(--green);
    margin-bottom: 9px;
}

.article-section-head h2 {
    font-family: Manrope,Inter,sans-serif;
    font-size: 30px;
    letter-spacing: -.035em;
    margin: 0;
}

.article-section-head p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.article-section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.story-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-rows: 142px;
    gap: 10px;
}

.story-gallery-tile {
    position: relative;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: #edf2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.story-gallery-tile--lead {
    grid-column: span 2;
    grid-row: span 2;
}

.story-gallery-tile img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.story-gallery-more {
    position: absolute;
    z-index: 3;
    inset: 0;
    background: rgba(6,43,29,.64);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
}

.story-view-all {
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
    padding: 0;
    cursor: pointer;
}

.article-related {
    padding: 48px 0 62px;
    background: #f4f7f5;
    border-top: 1px solid var(--line);
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-top: 20px;
}

.article-related-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: .18s ease;
}

.article-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(9,49,32,.08);
}

.article-related-card__media {
    height: 160px;
    background: #eef4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-related-card__media .brand-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
}

.article-related-card__body {
    padding: 15px 16px 18px;
}

.article-related-card__body>span {
    font-size: 8px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: .04em;
}

.article-related-card h3 {
    font-family: Manrope,Inter,sans-serif;
    font-size: 16px;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 8px 0 15px;
}

.article-related-card b {
    font-size: 10px;
    color: var(--green);
}

.article-footer {
    background: #073a29;
    color: #fff;
    padding: 20px 0;
}

.article-footer .article-shell {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
}

.article-footer span {
    opacity: .7;
}

.story-lightbox[hidden] {
    display: none;
}

.story-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1,18,11,.94);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px;
}

.story-lightbox figure {
    margin: 0;
    max-width: min(1120px,88vw);
    max-height: 88vh;
    text-align: center;
}

.story-lightbox img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.story-lightbox figcaption {
    color: #fff;
    font-size: 11px;
    margin-top: 10px;
    opacity: .78;
}

.story-lightbox__close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 38px;
    cursor: pointer;
}

.story-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.story-lightbox__nav--prev {
    left: 24px;
}

.story-lightbox__nav--next {
    right: 24px;
}

.article-not-found {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 70px 0;
}

.article-not-found span {
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--green);
    font-weight: 850;
}

.article-not-found h1 {
    font-family: Manrope,Inter,sans-serif;
    font-size: 48px;
    margin: 12px 0;
}

.article-not-found p {
    color: var(--muted);
    margin-bottom: 24px;
}

.article-not-found a {
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width:980px) {
    .story-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .story-cover {
        height: 420px;
    }
    .story-content-column {
        max-width: 760px;
    }
    .story-gallery-mosaic {
        grid-template-columns: repeat(3,1fr);
    }
    .story-gallery-tile--lead {
        grid-column: span 2;
    }
    .article-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:700px) {
    .article-shell {
        width: min(100% - 28px,1180px);
    }
    .story-hero {
        padding: 26px 0 32px;
    }
    .story-hero h1 {
        font-size: 40px;
    }
    .story-cover {
        height: 340px;
        border-radius: 15px;
    }
    .story-main {
        padding: 32px 0 52px;
    }
    .story-facts-bar {
        grid-template-columns: 1fr;
    }
    .story-facts-bar>div+div {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .article-prose {
        font-size: 15.5px;
        line-height: 1.82;
    }
    .article-section-head--split {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .story-gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 120px;
    }
    .story-gallery-tile--lead {
        grid-column: span 2;
        grid-row: span 2;
    }
    .article-related-grid {
        grid-template-columns: 1fr;
    }
    .article-footer .article-shell {
        flex-direction: column;
    }
    .story-lightbox {
        padding: 44px 18px;
    }
    .story-lightbox__nav {
        width: 38px;
        height: 58px;
        font-size: 32px;
    }
    .story-lightbox__nav--prev {
        left: 8px;
    }
    .story-lightbox__nav--next {
        right: 8px;
    }
}

/* ===== Final editorial article redesign ===== */

.story-hero {
    padding: 30px 0 34px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.story-hero__grid,.story-hero__grid--no-media {
    display: block;
    max-width: 980px;
    margin: 0 auto;
}

.story-hero__copy {
    max-width: 900px;
    margin: 0 auto;
}

.article-back {
    margin-bottom: 24px;
}

.story-kicker {
    margin-bottom: 14px;
}

.story-hero h1 {
    font-size: clamp(40px,4.2vw,62px);
    line-height: 1.04;
    max-width: 900px;
    margin: 0 0 16px;
}

.story-deck {
    max-width: 820px;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.story-meta {
    font-size: 10.5px;
}

.story-cover {
    width: min(900px,100%);
    height: clamp(360px,48vw,560px);
    margin: 30px auto 0;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(9,49,32,.07);
    background: #f0f4f2;
}

.story-cover__blur {
    filter: blur(30px);
    opacity: .13;
}

.story-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.story-main {
    padding: 34px 0 64px;
}

.story-content-column {
    max-width: 820px;
    margin: 0 auto;
}

.story-facts-bar {
    grid-template-columns: 1.25fr .55fr .8fr;
    margin-bottom: 28px;
    border-radius: 12px;
}

.story-facts-bar>div {
    padding: 12px 16px;
}

.article-prose {
    font-size: 16.5px;
    line-height: 1.88;
    color: #24352d;
}

.article-prose br+br {
    line-height: 2.2;
}

.story-gallery-section {
    margin-top: 44px;
    padding-top: 28px;
}

.article-section-head--split {
    margin-bottom: 16px;
    align-items: center;
}

.article-section-head h2 {
    font-size: 28px;
}

.story-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-auto-rows: auto;
    gap: 12px;
}

.story-gallery-tile,.story-gallery-tile--lead {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4/3;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f1f4f2;
}

.story-gallery-tile__blur {
    filter: blur(18px);
    opacity: .16;
}

.story-gallery-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.story-gallery-more {
    font-size: 16px;
    background: rgba(6,43,29,.58);
}

.story-view-all {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 9px 12px;
    border: 1px solid #cddbd3;
    border-radius: 9px;
    background: #fff;
}

.story-view-all:hover {
    background: #f4f8f5;
}

.article-related {
    padding: 42px 0 56px;
}

.article-related-card__media {
    height: 150px;
}

.article-related-card h3 {
    font-size: 15px;
}

@media (max-width:980px) {
    .story-cover {
        height: clamp(340px,62vw,500px);
    }
    .story-gallery-mosaic {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width:700px) {
    .story-hero {
        padding: 24px 0 28px;
    }
    .story-hero h1 {
        font-size: 38px;
    }
    .story-cover {
        height: 380px;
        margin-top: 24px;
    }
    .story-main {
        padding: 28px 0 48px;
    }
    .story-gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .story-facts-bar {
        grid-template-columns: 1fr 1fr;
    }
    .story-facts-bar>div:nth-child(1) {
        grid-column: 1/-1;
    }
    .story-facts-bar>div+div {
        border-top: 1px solid var(--line);
    }
    .story-facts-bar>div:nth-child(2) {
        border-left: 0;
    }
    .story-facts-bar>div:nth-child(3) {
        border-left: 1px solid var(--line);
    }
}

/* ===== Refined spacious editorial layout ===== */

.article-shell {
    width: min(1320px,calc(100% - 64px));
}

.story-hero {
    padding: 34px 0 40px;
    background: #fff;
}

.story-hero__grid,.story-hero__grid--no-media {
    max-width: 1120px;
}

.story-hero__copy {
    max-width: 1040px;
}

.article-back {
    margin-bottom: 30px;
    font-size: 12px;
}

.story-kicker {
    margin-bottom: 16px;
    gap: 10px;
}

.story-kicker img {
    width: 36px;
    height: 36px;
}

.story-kicker span {
    font-size: 11px;
}

.story-kicker b {
    font-size: 11px;
}

.story-hero h1 {
    font-size: clamp(44px,4.25vw,68px);
    line-height: 1.02;
    max-width: 1040px;
    margin-bottom: 18px;
}

.story-deck {
    font-size: 17px;
    line-height: 1.68;
    max-width: 900px;
    margin-bottom: 16px;
}

.story-meta {
    font-size: 11px;
    gap: 10px;
}

.story-cover {
    width: min(1040px,100%);
    height: clamp(440px,52vw,660px);
    margin-top: 34px;
    border-radius: 20px;
    background: #eef2f0;
    box-shadow: 0 18px 44px rgba(9,49,32,.08);
}

.story-cover__blur {
    opacity: .11;
    filter: blur(34px);
}

.story-main {
    padding: 46px 0 76px;
}

.story-content-column {
    max-width: 960px;
}

.article-prose {
    font-size: 18px;
    line-height: 1.9;
    color: #22332b;
}

.article-prose br+br {
    line-height: 2.15;
}

.story-gallery-section {
    margin-top: 54px;
    padding-top: 34px;
}

.article-section-head--split {
    margin-bottom: 20px;
}

.article-section-head h2 {
    font-size: 32px;
}

.article-section-head p {
    font-size: 12px;
}

.story-gallery-mosaic {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.story-gallery-tile,.story-gallery-tile--lead {
    aspect-ratio: 4/3;
    border-radius: 14px;
    background: #f2f5f3;
}

.story-gallery-tile img {
    max-width: 100%;
    max-height: 100%;
}

.story-view-all {
    margin-top: 18px;
    padding: 10px 14px;
    font-size: 11.5px;
    border-radius: 10px;
}

.article-related {
    padding: 54px 0 68px;
    background: #f5f8f6;
}

.article-related .article-shell {
    max-width: 1320px;
}

.article-related-grid {
    gap: 20px;
    margin-top: 24px;
}

.article-related-card {
    border-radius: 16px;
}

.article-related-card__media {
    height: 210px;
    background: #edf3ef;
}

.article-related-card__body {
    padding: 18px 18px 20px;
}

.article-related-card h3 {
    font-size: 18px;
    line-height: 1.22;
    margin: 9px 0 18px;
}

.article-related-card__body>span {
    font-size: 8.5px;
}

.article-related-card b {
    font-size: 10.5px;
}

.article-footer {
    padding: 22px 0;
}

@media (max-width:1100px) {
    .article-shell {
        width: min(100% - 40px,1320px);
    }
    .story-cover {
        height: clamp(400px,58vw,580px);
    }
    .story-content-column {
        max-width: 880px;
    }
    .article-related-card__media {
        height: 185px;
    }
}

@media (max-width:800px) {
    .article-shell {
        width: min(100% - 28px,1320px);
    }
    .story-hero h1 {
        font-size: 42px;
    }
    .story-deck {
        font-size: 16px;
    }
    .story-cover {
        height: 430px;
        margin-top: 26px;
    }
    .story-main {
        padding: 34px 0 56px;
    }
    .story-content-column {
        max-width: 100%;
    }
    .article-prose {
        font-size: 16.5px;
        line-height: 1.84;
    }
    .story-gallery-mosaic {
        grid-template-columns: 1fr 1fr;
    }
    .article-related-grid {
        grid-template-columns: 1fr;
    }
    .article-related-card__media {
        height: 240px;
    }
}

@media (max-width:520px) {
    .story-hero h1 {
        font-size: 34px;
    }
    .story-cover {
        height: 360px;
    }
    .story-gallery-mosaic {
        grid-template-columns: 1fr;
    }
    .article-related-card__media {
        height: 210px;
    }
}

/* Final article gallery refinement */

.story-gallery-mosaic {
    display: block;
    columns: 3 280px;
    column-gap: 16px;
}

.story-gallery-tile,
.story-gallery-tile--lead {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: auto;
    margin: 0 0 16px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    break-inside: avoid;
    cursor: zoom-in;
}

.story-gallery-tile__blur {
    display: none;
}

.story-gallery-tile img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: initial;
}

.story-gallery-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(6,43,29,.58);
    color: #fff;
    font-size: 18px;
    font-weight: 850;
}

.story-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
}

.story-view-all:hover {
    background: #f5f8f6;
}

.article-related {
    display: none !important;
}

@media (max-width:860px) {
    .story-gallery-mosaic {
        columns: 2 220px;
    }
}

@media (max-width:560px) {
    .story-gallery-mosaic {
        columns: 1;
    }
    .article-section-head--split {
        align-items: flex-start;
    }
}

/* Compact organized article gallery */

.story-gallery-section {
    margin-top: 46px;
    padding-top: 28px;
}

.article-section-head--split {
    margin-bottom: 16px;
    align-items: end;
}

.story-gallery-mosaic {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    columns: initial !important;
}

.story-gallery-tile,
.story-gallery-tile--lead {
    position: relative;
    display: flex;
    width: 100%;
    height: 170px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #e9eeeb;
    break-inside: auto;
    align-items: center;
    justify-content: center;
}

.story-gallery-tile__blur {
    display: block !important;
    position: absolute;
    inset: -14px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(.9);
    opacity: .28;
    transform: scale(1.08);
}

.story-gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

.story-gallery-tile img {
    position: relative;
    z-index: 2;
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.story-gallery-more {
    z-index: 4;
    font-size: 16px;
    background: rgba(6,43,29,.64);
}

.story-view-all {
    margin-top: 14px;
    padding: 9px 13px;
    border-radius: 9px;
}

@media (max-width:980px) {
    .story-gallery-mosaic {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .story-gallery-tile,.story-gallery-tile--lead {
        height: 165px;
    }
}

@media (max-width:700px) {
    .story-gallery-mosaic {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }
    .story-gallery-tile,.story-gallery-tile--lead {
        height: 150px;
    }
}

@media (max-width:430px) {
    .story-gallery-mosaic {
        grid-template-columns: 1fr;
    }
    .story-gallery-tile,.story-gallery-tile--lead {
        height: 190px;
    }
}

.story-video-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.story-video-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid #e0e8e3;
    border-radius: 18px;
    background: #fff;
}

.story-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #102319;
}

.story-video-card figcaption {
    padding: 10px 12px;
    color: #607269;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width:760px) {
    .story-video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Article media hierarchy ===== */
.story-feature-video {
    width: min(900px,100%);
    margin: 30px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #102319;
    box-shadow: 0 14px 34px rgba(9,49,32,.07);
}

.story-feature-video video {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #102319;
}

.story-feature-video figcaption {
    padding: 10px 14px;
    background: #fff;
    color: #607269;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.story-media-section .story-media-video-grid {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

@media (max-width:700px) {
    .story-feature-video {
        margin-top: 24px;
        border-radius: 14px;
    }

    .story-feature-video video {
        max-height: 420px;
    }
}

/* ===== Article gallery cleanup: spacious grid, no repeated section headings ===== */
.story-hero {
    border-bottom: 0 !important;
}

.story-main {
    padding-top: 34px;
}

.story-gallery-section {
    margin-top: 42px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

.story-gallery-section--breakout {
    width: min(1180px, calc(100vw - 64px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.story-media-count {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.story-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.story-gallery-grid .story-gallery-tile,
.story-gallery-grid .story-gallery-tile--lead {
    width: 100%;
    height: 230px;
    margin: 0;
    border: 1px solid #dce6e0;
    border-radius: 14px;
    background: #eef3f0;
    box-shadow: none;
}

.story-gallery-grid .story-gallery-tile[hidden] {
    display: none !important;
}

.story-gallery-grid .story-gallery-tile__blur {
    display: block !important;
    position: absolute;
    inset: -16px;
    opacity: .18;
    filter: blur(22px) saturate(.9);
    transform: scale(1.08);
}

.story-gallery-grid .story-gallery-tile img {
    position: relative;
    z-index: 2;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.story-view-all {
    margin-top: 16px !important;
    padding: 10px 14px !important;
    border: 1px solid #cfdcd4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--green) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.story-view-all:hover {
    background: #f4f8f5 !important;
}

.story-media-section .story-media-video-grid {
    margin-top: 26px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

.article-bottom-nav {
    margin-top: 46px;
    padding-top: 0;
}

.article-bottom-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.article-bottom-nav a:hover {
    text-decoration: underline;
}

.article-related,
.story-related {
    display: none !important;
}

@media (max-width: 1050px) {
    .story-gallery-section--breakout {
        width: min(100vw - 40px, 1040px);
    }

    .story-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .story-gallery-grid .story-gallery-tile,
    .story-gallery-grid .story-gallery-tile--lead {
        height: 220px;
    }
}

@media (max-width: 760px) {
    .story-gallery-section--breakout {
        width: calc(100vw - 28px);
    }

    .story-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .story-gallery-grid .story-gallery-tile,
    .story-gallery-grid .story-gallery-tile--lead {
        height: 190px;
        border-radius: 12px;
    }

    .article-bottom-nav {
        margin-top: 36px;
    }
}

@media (max-width: 460px) {
    .story-gallery-grid {
        grid-template-columns: 1fr;
    }

    .story-gallery-grid .story-gallery-tile,
    .story-gallery-grid .story-gallery-tile--lead {
        height: 250px;
    }
}


/* ===== Final compact thumbnail gallery: no blurred strip backgrounds ===== */
.story-gallery-section {
    margin-top: 34px !important;
    padding-top: 0 !important;
    border: 0 !important;
}

/* Let the gallery extend beyond the reading column so four photos remain
comfortably visible on desktop without widening the article prose. */
.story-gallery-section--breakout {
    width: min(1180px, calc(100vw - 64px)) !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}

.story-media-count {
    margin: 0 0 12px !important;
    color: #61746a !important;
    font-size: 11px !important;
    font-weight: 750 !important;
}

.story-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}

.story-gallery-grid .story-gallery-tile,
.story-gallery-grid .story-gallery-tile--lead {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: var(--story-gallery-ratio, 1 / 1) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dce6e0 !important;
    border-radius: 12px !important;
    background: #f3f6f4 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.story-gallery-grid .story-gallery-tile[hidden] {
    display: none !important;
}

.story-gallery-grid .story-gallery-tile__blur {
    display: none !important;
}

.story-gallery-grid .story-gallery-tile img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    transition: transform .2s ease !important;
}

.story-gallery-grid .story-gallery-tile:hover img {
    transform: scale(1.025) !important;
}

.story-view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 14px 0 0 !important;
    padding: 9px 12px !important;
    border: 1px solid #cfddd5 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--green) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.article-bottom-nav {
    width: min(960px, calc(100vw - 48px));
    margin: 30px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.article-related,
.story-related {
    display: none !important;
}

@media (max-width: 980px) {
    .story-gallery-section--breakout {
        width: min(760px, calc(100vw - 36px)) !important;
    }

    .article-bottom-nav {
        width: min(720px, calc(100vw - 36px)) !important;
    }

    .story-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .story-gallery-section--breakout,
    .article-bottom-nav {
        width: calc(100vw - 28px) !important;
    }

    .story-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .story-gallery-grid .story-gallery-tile,
    .story-gallery-grid .story-gallery-tile--lead {
        border-radius: 10px !important;
    }
}

@media (max-width: 520px) {
    .story-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ===== Final article media layout: clean four-column editorial grid ===== */
.story-photo-stream {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.story-photo-stream--breakout {
    width: min(1180px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.story-photo-item {
    display: block;
    width: 100%;
    aspect-ratio: var(--story-gallery-ratio, 1 / 1);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f6f7f6;
    box-shadow: none;
    cursor: zoom-in;
}

.story-photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f6f7f6;
}

.story-photo-item--preview {
    cursor: default;
}

.story-video-stream {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.story-video-stream .story-video-card {
    width: 100%;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.story-video-stream .story-video-card video {
    display: block;
    width: 100%;
    max-height: 520px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #101412;
}

.story-photo-stream + .story-video-stream {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .story-photo-stream {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .story-video-stream {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .story-photo-stream--breakout {
        width: calc(100vw - 28px);
    }

    .story-photo-stream {
        margin-top: 24px;
        gap: 10px;
    }

    .story-photo-item {
        border-radius: 5px;
    }
}

@media (max-width: 520px) {
    .story-photo-stream {
        grid-template-columns: 1fr;
    }
}

/* ===== News & Updates video presentation refinement =====
Video-only changes: preserve the native video shape, show a useful poster
frame before playback, and remove technical filename captions. */
.story-feature-video {
    width: min(820px, 100%) !important;
    margin: 24px auto 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.story-feature-video.is-video-portrait {
    width: min(400px, 100%) !important;
}

.story-video-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: var(--video-aspect, 16 / 9);
    overflow: hidden;
    border: 1px solid #dce6e0;
    border-radius: 16px;
    background: #0c1511;
    box-shadow: 0 12px 30px rgba(8, 42, 27, .08);
}

.story-feature-video video,
.story-video-card video,
.story-video-stream .story-video-card video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: #0c1511 !important;
}

.story-video-card {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.story-video-card .story-video-stage {
    border-radius: 14px;
}

.generated-video-poster {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0c1511;
    pointer-events: none;
    transition: opacity .16s ease;
}

.generated-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    padding: 0 0 0 3px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    background: rgba(5, 24, 15, .78);
    color: #fff;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0,0,0,.22);
}

.generated-video-play:hover,
.generated-video-play:focus-visible {
    background: rgba(8, 54, 33, .94);
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 3px;
}

.story-video-stage.video-has-started .generated-video-poster,
.story-video-stage.video-has-started .generated-video-play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 700px) {
    .story-feature-video {
        width: 100% !important;
        margin-top: 18px !important;
    }

    .story-video-stage,
    .story-video-card .story-video-stage {
        border-radius: 12px;
    }

    .generated-video-play {
        width: 50px;
        height: 50px;
        font-size: 17px;
    }
}

/* ===== Article width balance refinement =====
Keep the reading column comfortable while giving the four-column photo
gallery enough desktop width to feel like a featured editorial gallery. */
@media (min-width: 1101px) {
    .story-content-column {
        max-width: 1040px;
    }

    .story-gallery-section--breakout,
    .story-photo-stream--breakout {
        width: min(1360px, calc(100vw - 80px)) !important;
    }
}

@media (min-width: 981px) and (max-width: 1100px) {
    .story-content-column {
        max-width: 960px;
    }

    .story-gallery-section--breakout,
    .story-photo-stream--breakout {
        width: calc(100vw - 48px) !important;
    }
}


/* ===== Article and media edge alignment =====
Keep the title, article prose, photo grid and videos on one shared set of
edges. A single video in a mixed-media story spans the full media row. */
.story-video-grid--single {
    grid-template-columns: 1fr !important;
    width: 100%;
}

.story-video-grid--single .story-video-card {
    width: 100%;
    max-width: none;
}

.story-main .story-content-column {
    width: 100%;
    max-width: none;
}

.story-main .story-gallery-section--breakout,
.story-main .story-photo-stream--breakout {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    transform: none !important;
}

@media (min-width: 1101px) {
    .article-page .article-shell {
        width: min(1360px, calc(100% - 80px));
    }

    .article-page .story-hero__grid,
    .article-page .story-hero__grid--no-media,
    .article-page .story-hero__copy {
        width: 100%;
        max-width: none;
    }

    .article-page .story-hero h1 {
        max-width: 100%;
    }
}

/* ===== Mixed article media composition refinement =====
Keep four photos per desktop row, but center any incomplete final row.
A single video in a mixed photo/video article is intentionally smaller than
the full article width so it supports the gallery instead of overpowering it. */
.story-main .story-gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 12px !important;
}

.story-main .story-gallery-grid .story-gallery-tile,
.story-main .story-gallery-grid .story-gallery-tile--lead {
    flex: 0 0 calc((100% - 36px) / 4) !important;
    width: calc((100% - 36px) / 4) !important;
    max-width: calc((100% - 36px) / 4) !important;
}

.story-main .story-media-section .story-video-grid--single {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 24px !important;
}

.story-main .story-media-section .story-video-grid--single .story-video-card {
    flex: 0 1 66.666% !important;
    width: 66.666% !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

.story-main .story-media-section .story-video-grid--single .story-video-stage {
    border-radius: 12px !important;
    box-shadow: none !important;
}

@media (max-width: 980px) {
    .story-main .story-gallery-grid .story-gallery-tile,
    .story-main .story-gallery-grid .story-gallery-tile--lead {
        flex-basis: calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
        max-width: calc((100% - 12px) / 2) !important;
    }

    .story-main .story-media-section .story-video-grid--single .story-video-card {
        flex-basis: min(820px, 100%) !important;
        width: min(820px, 100%) !important;
        max-width: 100% !important;
    }
}

@media (max-width: 520px) {
    .story-main .story-gallery-grid {
        gap: 10px !important;
    }

    .story-main .story-gallery-grid .story-gallery-tile,
    .story-main .story-gallery-grid .story-gallery-tile--lead {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .story-main .story-media-section .story-video-grid--single {
        margin-top: 18px !important;
    }
}

/* ===== Article media order + tighter reading rhythm =====
Videos sit before the article copy; photos remain after the copy.
Keep paragraph spacing compact without changing the article typography. */
.article-page .story-video-section--top {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
}

.article-page .story-video-section--top .story-video-grid--single {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.article-page .story-video-section--top .story-video-grid--single .story-video-card {
    flex: 0 1 min(920px, 100%) !important;
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

.article-page .article-prose {
    line-height: 1.68 !important;
}

.article-page .article-prose br + br {
    line-height: 1.38 !important;
}

.article-page .story-photo-section--after-article {
    margin-top: 24px !important;
}

@media (max-width: 760px) {
    .article-page .story-video-section--top {
        margin-bottom: 20px !important;
    }

    .article-page .article-prose {
        line-height: 1.62 !important;
    }

    .article-page .article-prose br + br {
        line-height: 1.32 !important;
    }

    .article-page .story-photo-section--after-article {
        margin-top: 20px !important;
    }
}

/* ===== Single-photo article placement =====
A publication with exactly one photo treats that image like hero media:
it sits above the article copy, while multi-photo galleries stay below. */
.article-page .story-single-photo-section--top {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 22px;
}

.article-page .story-single-photo {
    position: relative;
    display: block;
    width: min(640px, 100%);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #eef3ef;
    cursor: zoom-in;
    aspect-ratio: var(--story-gallery-ratio, 1 / 1);
}

.article-page .story-single-photo__blur {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: .18;
}

.article-page .story-single-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 760px) {
    .article-page .story-single-photo-section--top {
        margin-bottom: 18px;
    }

    .article-page .story-single-photo {
        width: 100%;
        border-radius: 10px;
    }
}
