/* SC Hardt News: readable full-image presentation and touch zoom.
   Keeps the 16:9 News layout while allowing flyers to be inspected at 500%. */

.news-v3 .news-v3-cover{
  margin-inline:clamp(8px,1.6vw,20px)!important;
}
.news-v3 .news-v3-zoomable-image{
  display:block;
  position:relative;
  color:inherit;
  text-decoration:none;
  cursor:zoom-in;
}
.news-v3 .news-v3-cover-viewport{
  position:relative!important;
  aspect-ratio:16/9!important;
  width:100%!important;
  height:auto!important;
  background:#092318!important;
}
.news-v3 .news-v3-cover-viewport img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  transform:none!important;
}
.news-v3 .news-v3-zoomable-image:focus-visible{
  outline:3px solid #00a85b!important;
  outline-offset:4px;
  border-radius:12px;
}
.news-v3 .news-v3-cover figcaption{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 3px 0;
  color:#667b6e;
  font-size:12px;
}
.news-v3 .news-v3-cover figcaption .news-v3-image-caption{
  font-size:12px;
  color:#627969;
}
.news-v3 .news-v3-cover figcaption .news-image-open{
  margin:0!important;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 12px;
  border-radius:9px;
  border:1px solid #b8d9c5;
  background:#e9f7ee;
  color:#087341;
  font-size:12px;
  text-decoration:none;
  font-weight:850;
}
.news-v3 .news-v3-cover figcaption .news-image-open:hover{
  background:#dbf0e3;
}
.news-v3 .news-v3-cover figcaption .news-image-open:focus-visible{
  outline:3px solid #0bc171;
  outline-offset:2px;
}

@media(max-width:760px){
  /* Keep short words whole; avoid ugly hyphenation such as "Un-sere". */
  .news-v3 .news-v3-titleblock h1{
    font-size:clamp(29px,8vw,37px)!important;
    line-height:1.1!important;
    letter-spacing:-.025em!important;
    -webkit-hyphens:none!important;
    hyphens:none!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    text-wrap:pretty;
  }
  .news-v3 .news-v3-cover{
    margin-inline:6px!important;
  }
  .news-v3 .news-v3-cover-viewport{
    border-radius:10px!important;
  }
  .news-v3 .news-v3-cover figcaption{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    padding:10px 8px 0;
  }
  .news-v3 .news-v3-cover figcaption .news-image-open{
    width:100%;
    justify-content:center;
    min-height:45px;
    font-size:13px;
  }
  .news-v3 .news-v3-intro{
    padding-bottom:19px!important;
  }
  .news-v3 .news-v3-content{
    padding-top:25px!important;
  }
}

.sc-news-image-viewer[open]{
  position:fixed!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100dvh!important;
  max-width:100%!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  color:#f3fff8!important;
  background:#06170f!important;
  overflow:hidden!important;
  z-index:2147483000!important;
  box-sizing:border-box!important;
}
.sc-news-image-viewer::backdrop{
  background:rgba(0,0,0,.92);
}
.sc-news-image-viewer,.sc-news-image-viewer *{
  box-sizing:border-box;
}
.sc-news-image-viewer-layout{
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
}
.sc-news-image-viewer-top{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:calc(11px + env(safe-area-inset-top)) 18px 11px;
  border-bottom:1px solid #2c4c39;
  background:#0b2318;
}
.sc-news-image-viewer-brand{
  display:grid;
  min-width:0;
  gap:3px;
}
.sc-news-image-viewer-brand span{
  font-size:10px;
  font-weight:850;
  letter-spacing:.14em;
  color:#54efa2;
}
.sc-news-image-viewer-brand strong{
  font-size:16px;
  line-height:1.2;
  color:#fff;
}
.sc-news-image-viewer-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
.sc-news-image-viewer-actions button{
  appearance:none;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:42px;
  height:42px;
  padding:0;
  border-radius:10px;
  border:1px solid #38664a;
  background:#17402b;
  color:#f4fff7;
  font:800 21px/1 inherit;
  cursor:pointer;
}
.sc-news-image-viewer-actions button:disabled{
  color:#708b77;
  background:#152a1e;
  cursor:default;
}
.sc-news-image-viewer-actions .sc-news-image-close{
  margin-left:4px;
  background:#276046;
}
.sc-news-image-viewer-actions output{
  display:block;
  min-width:55px;
  font-size:12px;
  font-weight:850;
  text-align:center;
  font-variant-numeric:tabular-nums;
  color:#d4f2dd;
}
.sc-news-image-viewer-stage{
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  position:relative;
  width:100%;
  min-height:0;
  overflow:hidden;
  background:#06170f;
  touch-action:none;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  overscroll-behavior:contain;
}
.sc-news-image-viewer-stage:active{cursor:grabbing}
.sc-news-image-viewer-stage img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transform-origin:center center;
  will-change:transform;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.sc-news-image-viewer-bottom{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  padding:11px 18px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid #2c4c39;
  background:#0b2318;
}
.sc-news-image-viewer-bottom p{
  margin:0;
  color:#bbd6c4;
  font-size:12px;
  line-height:1.45;
}
.sc-news-image-viewer-bottom a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 12px;
  border-radius:9px;
  border:1px solid #47785a;
  color:#fff;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.sc-news-image-viewer :is(button,a,.sc-news-image-viewer-stage):focus-visible{
  outline:3px solid #51efa0;
  outline-offset:2px;
}
@media(max-width:640px){
  .sc-news-image-viewer-top{
    padding:calc(9px + env(safe-area-inset-top)) 10px 9px;
    gap:8px;
  }
  .sc-news-image-viewer-brand strong{
    font-size:14px;
  }
  .sc-news-image-viewer-brand span{
    font-size:9px;
  }
  .sc-news-image-viewer-actions{
    gap:4px;
  }
  .sc-news-image-viewer-actions button{
    width:38px;
    height:40px;
    border-radius:9px;
  }
  .sc-news-image-viewer-actions output{
    min-width:45px;
    font-size:11px;
  }
  .sc-news-image-viewer-bottom{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
    gap:9px;
    padding:10px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .sc-news-image-viewer-bottom a{
    justify-content:center;
    min-height:39px;
  }
}
@media(prefers-reduced-motion:reduce){
  .sc-news-image-viewer-stage img{will-change:auto}
}
