/* SC Hardt News – 16:9 presentation contract, 2026-11-05.
   Preserve 100% of uploaded posters and any text inside the original image.
   Images of another aspect ratio are letterboxed, never stretched or cropped.
   This stylesheet is deliberately loaded last on all News surfaces. */

/* Homepage cards. The News CMS may have historical inline cropping settings,
   so fit and scale are overridden intentionally for safe legibility. */
#news.home-news .home-news-card .home-news-media,
#news.home-news .home-news-card-feature .home-news-media,
#news.home-news .home-news-card-side .home-news-media{
  position:relative!important;
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  background-color:#102a1e!important;
  background-image:none!important;
}
#news.home-news .home-news-card .home-news-media img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  transform-origin:center!important;
}
/* White teaser panel must not overlap the last line of a flyer. */
#news.home-news .home-news-card .home-news-content,
#news.home-news .home-news-card-feature .home-news-content,
#news.home-news .home-news-card-side .home-news-content{
  margin-top:0!important;
  border-radius:0!important;
}
#news.home-news .home-news-card .home-news-media.home-news-media-fallback{
  background-image:linear-gradient(135deg,#0b5135,#0a2b20)!important;
}

/* News archive: visual above a separate text panel, rather than text obscuring
   posters. All cards use the same 16:9 image geometry on all breakpoints. */
.news-index-v5 .news-v5-topgrid,
.news-index-v5 .news-v5-bottomgrid{
  align-items:stretch!important;
}
.news-index-v5 a.news-v5-card,
.news-index-v5 .news-v5-topgrid .news-v5-card,
.news-index-v5 .news-v5-topgrid .news-v5-card:nth-child(3),
.news-index-v5 .news-v5-bottomgrid .news-v5-card,
.news-index-v5 .news-v5-topgrid .news-v5-card.featured{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  background:#fff!important;
  color:#143526!important;
  border:1px solid #dbe8df!important;
  border-radius:15px!important;
}
.news-index-v5 .news-v5-card .news-v5-media,
.news-index-v5 .news-v5-card.news-v5-side .news-v5-media{
  display:block!important;
  position:relative!important;
  z-index:0!important;
  inset:auto!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  background:#102a1e!important;
}
.news-index-v5 .news-v5-card .news-v5-media img,
.news-index-v5 .news-v5-card.news-v5-side .news-v5-media img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.news-index-v5 .news-v5-card:hover .news-v5-media img{
  transform:none!important;
  filter:none!important;
}
.news-index-v5 .news-v5-card .news-v5-shade{
  display:none!important;
}
.news-index-v5 .news-v5-card .news-v5-cardcopy,
.news-index-v5 .news-v5-card.news-v5-side .news-v5-cardcopy,
.news-index-v5 .news-v5-card.featured .news-v5-cardcopy{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  flex:1 1 auto!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:154px!important;
  margin:0!important;
  padding:17px 18px 16px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  color:#173a27!important;
}
.news-index-v5 .news-v5-card h2,
.news-index-v5 .news-v5-card.featured h2,
.news-index-v5 .news-v5-card.news-v5-side h2,
.news-index-v5 .news-v5-bottomgrid .news-v5-card h2{
  color:#133c27!important;
  overflow-wrap:anywhere;
  line-height:1.13!important;
  text-wrap:pretty;
}
.news-index-v5 .news-v5-card .news-v5-cardfoot{
  width:100%!important;
  margin-top:auto!important;
  padding-top:14px!important;
}
.news-index-v5 .news-v5-card .news-v5-cardfoot time{
  color:#597667!important;
}
.news-index-v5 .news-v5-card .news-v5-arrow{
  background:#e8f6ed!important;
  color:#087c43!important;
}
.news-index-v5 .news-v5-card .news-v5-fallback{
  color:rgba(255,255,255,.7)!important;
}

/* Full news article: exact 16:9 stage. No crop, even when old editors saved
   zoom/position. Readers can open the original for full-resolution text. */
.news-v3 .news-v3-cover{
  width:auto!important;
  min-width:0!important;
}
.news-v3 .news-v3-cover-viewport{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  background:#102a1e!important;
  border-radius:14px!important;
}
.news-v3 .news-v3-cover-viewport img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  transform-origin:center!important;
}
.news-v3 .news-image-open{
  display:flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  gap:8px;
  margin:10px 3px 0 auto;
  color:#087c43;
  text-decoration:none;
  font-size:13px;
  line-height:1.4;
  font-weight:800;
}
.news-v3 .news-image-open:hover{
  text-decoration:underline;
}
.news-v3 .news-image-open:focus-visible{
  outline:3px solid #1bb66d;
  outline-offset:3px;
  border-radius:4px;
}

/* Every additional gallery photo is also a 16:9 rectangle showing its entire
   image. Gallery links already open their original resolution on tap. */
.magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo,
.magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo.gallery-featured,
.magazine-news.news-v3 .news-v3-gallery.gallery-count-1 .magazine-gallery-photo.gallery-featured,
.magazine-news.news-v3 .news-v3-gallery.gallery-count-2 .magazine-gallery-photo.gallery-featured,
.magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo:not(.gallery-featured){
  aspect-ratio:16/9!important;
}
.magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo img{
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  background:#102a1e!important;
}
.magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo:hover img{
  transform:none!important;
}
.magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo::after{
  display:none!important;
}
.magazine-news.news-v3 .news-v3-related .related-image{
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-color:#102a1e!important;
}
.magazine-news.news-v3 .news-v3-related .related-card .related-image{
  height:auto!important;
  min-height:0!important;
  aspect-ratio:16/9!important;
}

/* The admin image workspace and thumbnails should match what goes live. */
#news .news-main-image-preview,
#news #newsImagePreview{
  display:block;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#102a1e!important;
  border-radius:12px!important;
}
#news #newsImagePreview[hidden]{display:none!important}
#news .news-image-card-preview{
  aspect-ratio:16/9!important;
  background:#102a1e!important;
  cursor:default!important;
  touch-action:auto!important;
}
#news .news-image-card-preview img{
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
#news .news-image-drag-hint{display:none!important}
#news .news-image-tools .news-image-controls{display:none!important}
#news .news-image-tools .news-image-preview-wrap{max-width:540px!important}
#news .newsitem-thumb{
  aspect-ratio:16/9!important;
  height:auto!important;
  overflow:hidden!important;
  background:#102a1e!important;
}
#news .newsitem-thumb img{
  object-fit:contain!important;
  background:#102a1e!important;
}
#news .news-gallery-preview img{
  object-fit:contain!important;
  background:#102a1e!important;
}
@media(max-width:760px){
  #news.home-news .home-news-card .home-news-media{
    aspect-ratio:16/9!important;
    max-height:none!important;
  }
  .news-index-v5 .news-v5-topgrid .news-v5-card.featured h2{
    font-size:clamp(22px,6.3vw,29px)!important;
  }
  .news-index-v5 .news-v5-card .news-v5-cardcopy{
    min-height:0!important;
  }
  .news-v3 .news-v3-cover-viewport{aspect-ratio:16/9!important}
  .magazine-news.news-v3 .news-v3-gallery .magazine-gallery-photo{
    aspect-ratio:16/9!important;
  }
  #news .news-image-tools .news-image-preview-wrap{max-width:100%!important}
}
@media(max-width:380px){
  #news.home-news .home-news-card .home-news-media{
    aspect-ratio:16/9!important;
  }
}
