/* Shared scrolling header and article image lightbox. */
.site-header {
  transition: opacity .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-header { opacity: .7; }
  .site-header:hover,
  .site-header:focus-within { opacity: 1; }
}
.site-header.is-fixed {
  position: fixed;
  z-index: 50;
  top: 0;
  background: rgba(16, 13, 25, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.site-header-placeholder { height: 0; }
.news-article-content img.lightbox-trigger {
  cursor: zoom-in;
}
.news-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f5f1ff;
  background: rgba(5, 4, 9, .96);
  overflow: hidden;
}
.news-lightbox::backdrop { background: rgba(5, 4, 9, .96); }
.news-lightbox[open] { display: grid; place-items: center; }
.news-lightbox-image {
  display: block;
  max-width: min(96vw, 1800px);
  max-height: 94vh;
  object-fit: contain;
  cursor: zoom-out;
}
.news-lightbox-close {
  position: fixed;
  z-index: 1;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 20, 35, .85);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.news-lightbox-close:focus-visible { outline: 3px solid #b49aff; outline-offset: 3px; }
@media (hover: none), (pointer: coarse) {
  .site-header { opacity: 1; }
}

@media (max-width: 760px) { .site-header { opacity: 1; } }
@supports (height: 100dvh) { .news-lightbox { height: 100dvh; } .news-lightbox-image { max-height: 94dvh; } }


@media (max-width: 760px), (hover: none), (pointer: coarse) { .site-header.is-fixed { background: #100d19; } }
