/* News images are always shown in full, including posters and portrait artwork. */
.news-icon { flex-shrink: 0; vertical-align: middle; }
.news-all-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: #244c4b; font-size: .9rem; font-weight: 600;
}
.news-all-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-section-intro { margin: 8px 0 0; color: var(--muted-foreground); font-size: .9rem; }
.news-spotlight { padding-top: 32px; padding-bottom: 40px; }
.spotlight-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.spotlight-heading .eyebrow { margin-bottom: 6px; font-size: .68rem; }
.spotlight-heading h1 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.6; }
.news-carousel { border: 1px solid #dce5e4; border-radius: 18px; background: #fff; box-shadow: 0 12px 36px #19334408; overflow: hidden; }
.news-carousel:focus-visible { outline: 3px solid var(--ring); outline-offset: 5px; }
.news-carousel-slides { background: #f3f6f4; }
.spotlight-slide { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.spotlight-slide + .spotlight-slide { border-top: 1px solid var(--border); }
.news-carousel.is-ready .spotlight-slide { border-top: 0; }
.spotlight-visual { min-width: 0; display: flex; flex-direction: column; justify-content: center; background: #eaf0ee; }
.spotlight-image { position: relative; display: block; flex-shrink: 0; aspect-ratio: 3 / 2; min-width: 0; }
.spotlight-image img { position: absolute; inset: 16px; display: block; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; object-position: center; }
.spotlight-full-image { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 16px; color: #49635f; font-size: .75rem; }
.spotlight-full-image .news-icon { width: 15px; height: 15px; }
.spotlight-full-image:hover { background: #dfe9e4; color: #193344; }
.spotlight-copy { padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; background: #fff; }
.spotlight-meta { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: .78rem; color: var(--muted-foreground); }
.spotlight-copy h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.6; letter-spacing: -.02em; overflow-wrap: anywhere; }
.spotlight-copy h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.spotlight-copy > p { margin: 0 0 25px; color: #60717c; font-size: .9rem; line-height: 1.9; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-read { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 18px; border: 1px solid #193d45; border-radius: 8px; background: #193d45; color: #fff; font-size: .85rem; font-weight: 500; }
.spotlight-read:hover { background: #28545a; }
.news-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 20px; border-top: 1px solid var(--border); background: #fff; }
.news-carousel-navigation { display: flex; align-items: center; gap: 14px; }
.news-carousel-navigation button { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--foreground); }
.news-carousel-navigation button:hover { background: #edf4f0; border-color: #abc4b8; }
[data-news-prev] .news-icon { transform: rotate(180deg); }
.news-carousel-count { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: #73818a; }
.news-carousel-count strong { color: #193344; font-weight: 600; }
.news-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; }
.news-carousel-dots button { display: grid; place-items: center; width: 36px; height: 40px; padding: 8px; border: 0; background: transparent; }
.news-carousel-dots button span { display: block; width: 7px; height: 7px; border-radius: 8px; background: #c7d5cf; transition: width .2s ease, background .2s ease; }
.news-carousel-dots button[aria-pressed="true"] span { width: 24px; background: var(--school-accent); }
.news-carousel-pause { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 0 8px 10px; border: 0; background: transparent; color: #536a73; font-size: .75rem; }
.news-pause-symbol { font-size: 1rem; width: 18px; }
.news-carousel.is-ready .spotlight-visual { touch-action: pan-y pinch-zoom; }
.news-carousel.is-ready .spotlight-slide:not([hidden]) { animation: news-reveal .45s ease; }
@keyframes news-reveal { from { opacity: .3; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
.home-news { padding-top: 48px; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.news-card--story { border: 1px solid #dce5e4; border-radius: 14px; box-shadow: 0 3px 12px #19334404; transition: border-color .2s ease, box-shadow .2s ease; min-width: 0; }
.news-card--story:hover { border-color: #aabfb7; box-shadow: 0 10px 26px #1933440b; }
.story-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; min-width: 0; flex-shrink: 0; padding: 10px; background: #eff3f1; border-bottom: 1px solid #e4eae7; overflow: hidden; }
.story-image img { position: absolute; inset: 10px; display: block; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; object-position: center; }
.story-image--empty { flex-direction: column; gap: 14px; color: #718980; background: linear-gradient(135deg, #eff4f0, #e5eeea); }
.story-image--empty .news-icon { width: 38px; height: 38px; }
.story-image--empty span { font-size: .8rem; }
.story-body { display: flex; flex-direction: column; flex: 1; padding: 22px; min-width: 0; }
.story-labels { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story-category { display: inline-block; padding: 4px 10px; border-radius: 5px; background: #eaf1eb; color: #345945; font-size: .73rem; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.story-pinned { font-size: .7rem; color: #78571b; background: #fff3d9; border-radius: 4px; padding: 3px 8px; }
.story-body h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.7; margin: 14px 0 10px; overflow-wrap: anywhere; }
.story-body h3 a:hover { color: #326258; }
.story-summary { font-size: .86rem; color: #60717c; line-height: 1.85; margin: 0 0 22px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 15px; border-top: 1px solid #e9eeeb; font-size: .76rem; }
.story-footer time { display: flex; align-items: center; gap: 7px; color: #687c84; }
.story-footer .news-icon { width: 16px; height: 16px; }
.story-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; color: #2d584d; font-weight: 600; }
.news-page-title { background: #f2f6f2; padding: 40px 0; }
.news-page-title h1 { font-size: clamp(1.8rem, 3.5vw, 2.45rem); }
.news-page-title .eyebrow { margin-bottom: 6px; }
.news-listing { padding-top: 32px; }
.news-listing .public-search { margin-bottom: 12px; padding: 14px; background: #f8faf9; border-radius: 12px; }
.news-listing .search-field { flex: 1; min-width: 0; }
.news-listing .search-field input { width: 100%; min-height: 44px; background: transparent; }
.news-listing > .body-muted { font-size: .83rem; margin-bottom: 24px; }
.news-article-page { background: #f7f9f8; padding: 0 0 60px; }
.news-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 24px 0; font-size: .8rem; color: #687b84; }
.news-breadcrumbs a:hover { color: #23554a; text-decoration: underline; }
.news-article { max-width: 1040px; margin: 0 auto; padding: 40px; border: 1px solid #e0e8e3; border-radius: 16px; background: #fff; }
.news-article-heading { max-width: 850px; margin: 0 auto 28px; }
.news-article-meta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.news-article-meta time { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: #697d85; }
.news-article-meta .news-icon { width: 16px; height: 16px; }
.news-article h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.65; overflow-wrap: anywhere; }
.news-article-lead { margin: 18px 0 0; font-size: 1rem; line-height: 1.95; color: #5b707a; overflow-wrap: anywhere; }
.news-article-figure { margin: 0 0 32px; border: 1px solid #e0e7e3; border-radius: 10px; background: #f2f5f3; overflow: hidden; }
.news-article-figure > a { display: block; }
.news-article-figure img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.news-article-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 10px 16px; background: #fff; color: #647880; font-size: .75rem; border-top: 1px solid #e0e7e3; }
.news-article-figure figcaption a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: #2d584d; }
.news-article-figure figcaption .news-icon { width: 16px; height: 16px; }
.news-article-body { max-width: 820px; margin: 0 auto; color: #344e5b; font-size: 1rem; line-height: 2.05; }
.news-article-bottom { max-width: 850px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 1000px) {
  .spotlight-slide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .spotlight-copy { padding: 24px; }
  .spotlight-copy h2 { font-size: 1.45rem; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .story-body { padding: 18px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .spotlight-slide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .spotlight-copy { padding: 22px; }
  .spotlight-copy h2 { font-size: 1.3rem; }
}
@media (max-width: 760px) {
  .news-spotlight { padding-top: 24px; padding-bottom: 28px; }
  .spotlight-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .spotlight-heading h1 { font-size: 1.4rem; }
  .spotlight-heading .news-all-link { font-size: .8rem; }
  .spotlight-slide { grid-template-columns: minmax(0, 1fr); }
  .spotlight-image img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .spotlight-copy { padding: 22px; }
  .spotlight-copy h2 { font-size: 1.35rem; }
  .spotlight-meta { margin-bottom: 12px; }
  .spotlight-copy > p { margin-bottom: 18px; }
  .news-carousel-controls { flex-wrap: wrap; padding: 10px 14px; gap: 4px 12px; }
  .news-carousel-navigation { gap: 10px; }
  .news-carousel-navigation button, .news-carousel-dots button, .news-carousel-pause { min-width: 44px; min-height: 44px; }
  .news-carousel-dots { order: 3; flex-basis: 100%; }
  .home-news { padding-top: 34px; }
  .home-news .section-heading { flex-wrap: wrap; gap: 8px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-footer a { min-height: 44px; }
  .news-article-page { padding-bottom: 32px; }
  .news-breadcrumbs { padding: 18px 0; font-size: .73rem; }
  .news-article { padding: 24px 18px; border-radius: 12px; }
  .news-article-lead, .news-article-body { font-size: .95rem; }
  .news-article-figure figcaption > span { display: none; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-carousel { border-radius: 12px; }
  .news-page-title { padding: 30px 0; }
  .news-page-title p { font-size: .88rem; }
  .story-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-carousel.is-ready .spotlight-slide:not([hidden]) { animation: none; }
  .news-card--story, .news-carousel-dots button span { transition: none; }
}

/* Native dialog keeps keyboard focus inside the album and the page behind inert. */
[data-news-image] { cursor: zoom-in; }
html.news-gallery-open { overflow: hidden; scrollbar-gutter: stable; }
.news-gallery {
  position: fixed; inset: 0; width: calc(100% - 32px); height: calc(100% - 32px);
  max-width: 1440px; max-height: 100%; margin: auto; padding: 0;
  border: 1px solid #ffffff26; border-radius: 16px; background: #101f2b;
  color: #f3f6f8; box-shadow: 0 24px 100px #0007; overflow: hidden;
}
.news-gallery::backdrop { background: #071119e8; backdrop-filter: blur(6px); }
.news-gallery:not([open]) { display: none; }
.news-gallery-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.news-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #ffffff12; }
.news-gallery-eyebrow { color: #a8c4b7; font-size: .6rem; letter-spacing: .16em; }
.news-gallery-header h2 { margin: 2px 0 0; color: #fff; font-size: 1rem; line-height: 1.5; }
.news-gallery-tools { display: flex; align-items: center; gap: 12px; }
.news-gallery button { color: #f3f6f8; background: #ffffff0d; border: 1px solid #ffffff30; border-radius: 8px; min-height: 44px; cursor: pointer; }
.news-gallery button:hover { background: #ffffff20; }
.news-gallery button:focus-visible, .news-gallery-canvas:focus-visible { outline: 3px solid #c7dfa6; outline-offset: 3px; }
.news-gallery button:disabled { opacity: .4; cursor: default; }
[data-gallery-zoom] { padding: 8px 14px; font-size: .8rem; white-space: nowrap; }
.news-gallery .news-gallery-close { width: 44px; padding: 0; font-size: 2rem; line-height: 1; }
.news-gallery-stage { flex: 1; min-height: 0; min-width: 0; position: relative; display: flex; align-items: stretch; justify-content: center; gap: 16px; padding: 16px 24px; }
.news-gallery .news-gallery-arrow { align-self: center; flex-shrink: 0; width: 44px; height: 56px; font-family: Arial, sans-serif; font-size: 2.2rem; line-height: 1; }
.news-gallery-canvas { position: relative; display: grid; place-items: center; flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.news-gallery-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; border-radius: 3px; }
.news-gallery-canvas.is-zoomed { display: block; touch-action: pan-x pan-y pinch-zoom; }
.news-gallery-canvas.is-zoomed .news-gallery-photo { position: static; width: auto; height: auto; max-width: none; max-height: none; }
.news-gallery-message { margin: auto; padding: 24px; color: #d0dce2; text-align: center; font-size: .85rem; }
.news-gallery-caption { display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 0 24px 12px; min-width: 0; }
[data-gallery-count] { flex-shrink: 0; font-size: .8rem; font-variant-numeric: tabular-nums; color: #bdd5c8; }
[data-gallery-title] { margin: 0; max-width: 900px; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-gallery-thumbnails { display: flex; align-items: center; gap: 10px; flex-shrink: 0; max-width: 100%; margin: 0 auto; padding: 4px 24px 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #536f66 transparent; }
.news-gallery-thumbnails button { flex: 0 0 72px; width: 72px; height: 56px; min-height: 56px; padding: 3px; opacity: .6; }
.news-gallery-thumbnails button[aria-current="true"] { border-color: #c7dfa6; background: #b6d39826; opacity: 1; }
.news-gallery-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .news-gallery { width: 100%; height: 100%; height: 100dvh; max-height: 100%; border: 0; border-radius: 0; }
  .news-gallery-header { padding: max(12px, env(safe-area-inset-top)) 14px 12px; gap: 10px; }
  .news-gallery-header h2 { font-size: .9rem; }
  .news-gallery-eyebrow { font-size: .55rem; }
  .news-gallery-tools { gap: 8px; }
  [data-gallery-zoom] { padding: 8px 10px; font-size: .73rem; }
  .news-gallery-stage { padding: 10px 8px 58px; gap: 0; }
  .news-gallery .news-gallery-arrow { position: absolute; z-index: 1; bottom: 6px; height: 44px; }
  [data-gallery-prev] { left: calc(50% - 54px); }
  [data-gallery-next] { right: calc(50% - 54px); }
  .news-gallery-caption { align-items: flex-start; padding: 4px 16px 10px; gap: 10px; }
  [data-gallery-title] { font-size: .8rem; }
  .news-gallery-thumbnails { padding: 4px 16px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
  .news-gallery-thumbnails button { flex-basis: 60px; width: 60px; height: 48px; min-height: 48px; }
}
@media (max-height: 480px) {
  .news-gallery-header { padding: 6px 14px; }
  .news-gallery-eyebrow { display: none; }
  .news-gallery-thumbnails { display: none; }
  .news-gallery-caption { padding-bottom: 8px; }
}
