/* OUCO Newsroom and Gallery: full-width imagery, open editorial grids, fine rules. */
body[data-page="news"], body[data-page="gallery"] { --shell: 1600px; --gutter: clamp(24px, 6vw, 100px); }

.editorial-hero { position: relative; isolation: isolate; min-height: 600px; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.editorial-hero-gallery { min-height: min(720px, 82vh); }
.editorial-hero-album { min-height: 560px; }
.editorial-hero-media, .editorial-hero-media img, .editorial-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.editorial-hero-media { z-index: -3; }
.editorial-hero-media img { object-fit: cover; object-position: center 48%; filter: saturate(.8) contrast(1.05); }
.editorial-hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(9,20,44,.96) 0%, rgba(16,35,79,.84) 40%, rgba(16,35,79,.34) 78%), linear-gradient(0deg, rgba(9,20,44,.72), transparent 62%); }
.editorial-hero-gallery .editorial-hero-shade { background: linear-gradient(90deg, rgba(9,20,44,.86), rgba(16,35,79,.3) 70%), linear-gradient(0deg, rgba(9,20,44,.82), transparent 68%); }
.editorial-hero-shell { min-height: inherit; display: flex; align-items: center; }
.editorial-hero-copy { position: relative; display: flex; width: 100%; flex-direction: column; align-items: flex-start; }
.editorial-hero-mark { object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }

.editorial-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.55fr); align-items: end; gap: 60px; margin-bottom: 48px; }
.editorial-section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(43px, 4vw, 66px); }
.editorial-section-heading > p { max-width: 500px; margin: 0 0 5px; color: #5b7384; font-size: 17px; }
.editorial-section-heading .text-link { justify-self: end; align-self: end; margin: 0 0 8px; }

.news-featured { padding: 88px 0 122px; background: var(--white); }
.news-featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(20px, 2vw, 30px); }
.news-card { min-width: 0; }
.news-card > a { display: flex; height: 100%; flex-direction: column; border-bottom: 1px solid var(--border); }
.news-card-image { display: block; flex: none; overflow: hidden; height: clamp(250px, 22vw, 330px); background: var(--surface-2); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.news-card a:hover .news-card-image img { transform: scale(1.045); }
.news-card-meta { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 14px; color: var(--blue); font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-card-meta time { color: var(--steel); text-align: right; white-space: nowrap; }
.news-card h3 { margin-bottom: 13px; color: var(--navy); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.23; transition: color .2s ease; }
.news-card a:hover h3 { color: var(--blue); }
.news-card p { margin-bottom: 22px; color: #5a7385; font-size: 15px; line-height: 1.55; }
.news-card-link { display: inline-flex; align-items: center; gap: 12px; margin: auto 0 25px; padding-top: 7px; color: var(--blue); font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-card-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.news-latest { padding: 105px 0 118px; background: #09142c; }
.news-latest .editorial-section-heading h2 { color: var(--white); }
.news-latest .editorial-section-heading > p { color: rgba(255,255,255,.65); }
.news-latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(20px, 2vw, 30px); }
.news-latest .news-card > a { border-bottom-color: rgba(255,255,255,.26); }
.news-latest .news-card-meta { color: var(--cyan); }
.news-latest .news-card-meta time { color: rgba(255,255,255,.55); }
.news-latest .news-card h3 { color: var(--white); }
.news-latest .news-card a:hover h3 { color: var(--cyan); }
.news-latest .news-card p { color: rgba(255,255,255,.67); }
.news-latest .news-card-link { color: var(--cyan); }

.news-archive { padding: 105px 0 132px; background: var(--white); }
.news-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 clamp(28px,4vw,65px); border-top: 1px solid var(--navy); }
.news-archive-item { position: relative; display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; padding: 23px 34px 25px 0; border-bottom: 1px solid var(--border); }
.news-archive-item small { margin-bottom: 7px; color: var(--steel); font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-archive-item h3 { max-width: 440px; margin: 0 0 20px; color: var(--navy); font-size: clamp(20px,1.65vw,27px); line-height: 1.24; transition: color .2s ease; }
.news-archive-item:hover h3 { color: var(--blue); }
.news-archive-item time { margin-top: auto; color: var(--steel); font-size: 13px; }
.news-archive-item svg { position: absolute; right: 0; bottom: 25px; width: 23px; height: 23px; fill: none; stroke: var(--blue); stroke-width: 1.6; }

.news-publication { color: var(--white); background: var(--navy); }
.news-publication-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: clamp(60px,8vw,140px); min-height: 550px; }
.news-publication-grid > div:first-child { padding-block: 100px; }
.news-publication h2 { max-width: 780px; margin-bottom: 22px; color: var(--white); font-size: clamp(48px,4.5vw,74px); }
.news-publication p:not(.eyebrow) { max-width: 600px; margin-bottom: 30px; color: rgba(255,255,255,.8); font-size: 18px; }
.news-publication-image { align-self: stretch; min-height: 550px; overflow: hidden; }
.news-publication-image img { width: 100%; height: 100%; object-fit: cover; }

.news-article-hero { min-height: 550px; padding: 46px 0 90px; color: var(--white); background: linear-gradient(110deg, var(--navy-deep), var(--navy) 70%, #25468c); }
.news-article-hero .breadcrumbs { margin-bottom: 90px; }
.news-article-hero h1 { max-width: 1180px; margin-bottom: 26px; color: var(--white); font-size: clamp(50px,5.4vw,90px); }
.news-article-hero p:not(.eyebrow) { max-width: 800px; margin-bottom: 35px; color: rgba(255,255,255,.82); font-size: 21px; }
.news-article-meta { display: flex; align-items: center; gap: 24px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.7); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-article-main { padding-bottom: 110px; background: var(--white); }
.news-article-cover { width: min(1120px,100%); margin: -54px auto 100px; position: relative; }
.news-article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.news-article-cover figcaption { margin-top: 11px; color: var(--steel); font-size: 13px; }
.news-article-grid { display: grid; grid-template-columns: 240px minmax(0,850px); justify-content: center; gap: clamp(70px,7vw,130px); }
.news-article-side { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; border-top: 1px solid var(--navy); }
.news-article-side > strong { padding: 20px 0; color: var(--navy); font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.news-article-side a { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); color: #536d80; font-size: 14px; transition: color .2s ease; }
.news-article-side a:hover { color: var(--blue); }
.news-article-side .news-article-back { margin-top: 22px; color: var(--blue); font-family: var(--display); font-weight: 800; }
.news-article-intro { margin-bottom: 55px; color: var(--navy); font-family: var(--display); font-size: clamp(24px,2vw,32px); font-weight: 600; line-height: 1.42; }
.news-article-section { padding: 45px 0 50px; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.news-article-section h2 { margin-bottom: 25px; color: var(--navy); font-size: clamp(31px,2.5vw,42px); }
.news-article-section p { margin-bottom: 20px; color: #405d72; font-size: 18px; line-height: 1.78; }
.news-article-section p:last-child { margin-bottom: 0; }
.news-article-source { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--border); color: var(--steel); font-size: 14px; }
.news-article-source a { color: var(--blue); font-family: var(--display); font-weight: 800; }
.news-related { padding: 105px 0 120px; background: var(--surface); }
.news-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.news-related .news-card-image { height: clamp(260px, 28vw, 410px); }

.gallery-index { padding: 100px 0 130px; background: var(--white); }
.gallery-album-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 58px 32px; }
.gallery-album-card { min-width: 0; display: block; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.gallery-album-cover { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.43; color: var(--white); background: var(--navy); }
.gallery-album-cover::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgba(11,25,57,.14) 12%, rgba(11,25,57,.1) 40%, rgba(11,25,57,.93) 100%); }
.gallery-album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-album-card:hover img { transform: scale(1.045); }
.gallery-album-overlay { position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px; }
.gallery-album-overlay span { display: block; margin-bottom: 10px; color: var(--cyan); font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.gallery-album-overlay h3 { margin: 0; color: var(--white); font-size: clamp(25px,2.05vw,36px); line-height: 1.18; }
.gallery-album-card > p { min-height: 78px; margin: 22px 0 15px; color: #5b7384; font-size: 15px; }
.gallery-album-link { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.gallery-album-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gallery-context-note { max-width: 920px; margin: 50px 0 0; padding-top: 17px; border-top: 1px solid var(--border); color: var(--steel); font-size: 13px; }

.editorial-crosslink { padding: 100px 0; color: var(--white); background: var(--blue); }
.editorial-crosslink-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 80px; }
.editorial-crosslink h2 { max-width: 900px; margin-bottom: 18px; color: var(--white); font-size: clamp(45px,4vw,70px); }
.editorial-crosslink p:not(.eyebrow) { max-width: 750px; margin-bottom: 0; color: rgba(255,255,255,.83); font-size: 18px; }

.gallery-album-main { padding: 44px 0 120px; background: var(--white); }
.gallery-album-breadcrumbs { margin-bottom: 44px; color: var(--steel); }
.gallery-album-breadcrumbs strong, .gallery-album-breadcrumbs a:hover { color: var(--blue); }
.gallery-album-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 65px; margin-bottom: 48px; }
.gallery-album-heading h1 { margin-bottom: 15px; color: var(--navy); font-size: clamp(44px,4vw,66px); }
.gallery-album-heading p:last-child { max-width: 700px; margin-bottom: 0; color: var(--steel); font-size: 17px; }
.gallery-album-heading .text-link { margin-bottom: 7px; }
.gallery-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 55px 25px; border-top: 1px solid var(--navy); padding-top: 28px; }
.gallery-photo { display: block; min-width: 0; padding: 0 0 17px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--navy); text-align: left; cursor: pointer; }
.gallery-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.gallery-photo-image { display: block; overflow: hidden; aspect-ratio: 1.35; background: var(--surface-2); }
.gallery-photo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--blue); font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.gallery-photo-caption { display: block; margin-top: 9px; color: #4c667a; font-size: 14px; line-height: 1.4; }
.gallery-album-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 25px; margin-top: 74px; padding-top: 22px; border-top: 1px solid var(--navy); }
.gallery-album-end .text-link { margin: 0; }

.gallery-lightbox { width: min(1500px,96vw); max-width: none; max-height: 96vh; margin: auto; padding: 18px 24px 25px; border: 1px solid rgba(255,255,255,.22); color: var(--white); background: var(--navy-deep); box-shadow: 0 24px 90px rgba(0,0,0,.42); }
.gallery-lightbox::backdrop { background: rgba(9,20,44,.87); backdrop-filter: blur(4px); }
.gallery-lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; color: var(--cyan); font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.gallery-lightbox-head button { width: 42px; height: 42px; border: 0; color: var(--white); background: transparent; font-size: 34px; line-height: 1; cursor: pointer; }
.gallery-lightbox-view { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 12px; }
.gallery-lightbox-view img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.gallery-lightbox-view button { width: 48px; height: 58px; border: 1px solid rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.08); font-size: 30px; cursor: pointer; }
.gallery-lightbox-view button:hover, .gallery-lightbox-head button:hover { color: var(--cyan); }
.gallery-lightbox button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.gallery-lightbox > p { margin: 13px 60px 0; color: rgba(255,255,255,.76); font-size: 14px; text-align: center; }

.resource-editorial-links { padding: 80px 0 100px; background: var(--white); }
.resource-editorial-links > .section-shell > div { display: block; margin-top: 25px; border-top: 1px solid var(--navy); }
.resource-editorial-links a { display: grid; grid-template-columns: 1fr 28px; gap: 18px; align-items: center; min-height: 120px; border-bottom: 1px solid var(--border); color: var(--navy); }
.resource-editorial-links a + a { padding-left: 0; }
.resource-editorial-links strong { font-family: var(--display); font-size: clamp(24px,2.3vw,35px); }
.resource-editorial-links svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.resource-extra-links { display: flex; justify-content: flex-end; gap: 35px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.resource-extra-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-family: var(--display); font-size: 14px; font-weight: 800; }
.resource-extra-links svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }

@media (max-width: 1400px) {
  .gallery-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  .news-featured-grid, .news-latest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 25px; }
  .news-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-article-grid { grid-template-columns: 190px minmax(0,1fr); gap: 55px; }
  .gallery-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .editorial-hero-gallery { min-height: 650px; }
  .editorial-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .editorial-section-heading > p { max-width: 680px; }
  .editorial-section-heading .text-link { justify-self: start; }
  .news-publication-grid { grid-template-columns: 1fr; gap: 0; }
  .news-publication-grid > div:first-child { padding-block: 85px; }
  .news-publication-image { min-height: 430px; }
  .news-article-grid { grid-template-columns: 1fr; gap: 60px; }
  .news-article-side { position: static; max-width: 560px; }
  .gallery-album-heading { grid-template-columns: 1fr; gap: 25px; }
  .gallery-album-heading .text-link { justify-self: start; }
  .editorial-crosslink-grid { grid-template-columns: 1fr; gap: 38px; }
}
@media (max-width: 620px) {
  body[data-page="news"], body[data-page="gallery"] { --gutter: 22px; }
  .editorial-hero { min-height: 560px; }
  .editorial-hero-gallery { min-height: 600px; }
  .editorial-hero-album { min-height: 560px; }
  .editorial-section-heading { margin-bottom: 36px; }
  .editorial-section-heading h2 { font-size: 42px; }
  .news-featured, .news-latest, .news-archive, .news-related, .gallery-index, .gallery-album-main { padding-block: 78px 90px; }
  .news-featured-grid, .news-latest-grid, .news-related-grid { grid-template-columns: 1fr; gap: 50px; }
  .news-card-image { height: auto; aspect-ratio: 1.45; }
  .news-card h3 { font-size: 26px; }
  .news-archive-grid { grid-template-columns: 1fr; }
  .news-archive-item { min-height: 220px; }
  .news-archive-item h3 { font-size: 24px; }
  .news-publication h2 { font-size: 46px; }
  .news-publication-image { min-height: 330px; }
  .news-article-hero { min-height: 620px; padding-block: 27px 100px; }
  .news-article-hero .breadcrumbs { margin-bottom: 90px; }
  .news-article-hero h1 { font-size: 46px; }
  .news-article-hero p:not(.eyebrow) { font-size: 17px; }
  .news-article-cover { margin: -48px auto 78px; }
  .news-article-intro { font-size: 24px; }
  .news-article-section h2 { font-size: 30px; }
  .news-article-section p { font-size: 17px; }
  .news-article-source { flex-direction: column; gap: 5px; }
  .gallery-album-grid, .gallery-photo-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-album-cover { aspect-ratio: 1.12; }
  .gallery-album-overlay h3 { font-size: 33px; }
  .gallery-album-card > p { min-height: auto; }
  .gallery-photo-image { aspect-ratio: 1.4; }
  .gallery-lightbox { width: 100vw; height: 100dvh; max-height: none; padding: 15px 10px 22px; border: 0; }
  .gallery-lightbox-view { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 4px; }
  .gallery-lightbox-view button { width: 38px; height: 50px; font-size: 24px; }
  .gallery-lightbox-view img { max-height: 72dvh; }
  .gallery-lightbox > p { margin-inline: 40px; }
  .editorial-crosslink { padding-block: 80px; }
  .editorial-crosslink h2 { font-size: 42px; }
  .resource-editorial-links > .section-shell > div { grid-template-columns: 1fr; }
  .resource-editorial-links a + a { padding-left: 0; border-left: 0; }
  .resource-extra-links { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card-image img, .gallery-album-cover img, .gallery-photo-image img { transition: none; }
}
