/* News article page, scoped to the current SSC site design. */
.news-detail-hero h2 {
  color: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0;
  max-width: 800px;
}

.news-article {
  background: var(--canvas);
  padding: 82px 0 100px;
}

.news-article__layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) 320px;
}

.news-article__main {
  min-width: 0;
}

.news-article__header {
  margin: 0 0 2.2rem;
  max-width: 880px;
}

.news-article__category {
  color: #806410;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin: 0 0 .85rem;
  text-transform: uppercase;
}

.news-article__header h1 {
  color: var(--navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(2.35rem, 4.3vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0;
  max-width: 860px;
}

.news-article__meta {
  align-items: center;
  color: #626b7e;
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  font-weight: 700;
  gap: .4rem .65rem;
  margin-top: 1.15rem;
}

.news-article__meta time {
  color: var(--navy);
}

.news-gallery {
  min-width: 0;
}

.news-gallery__stage {
  aspect-ratio: 4 / 3;
  background: #e9ebf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.news-gallery__image-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  height: 100%;
  padding: 0;
  width: 100%;
}

.news-gallery__image-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}

.news-gallery__featured {
  display: block;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .18s ease;
  width: 100%;
}

.news-gallery.is-switching .news-gallery__featured {
  opacity: .35;
}

.news-gallery__control,
.news-lightbox__control,
.news-lightbox__close {
  align-items: center;
  background: rgba(15, 22, 51, .82);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.news-gallery__control {
  height: 44px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  z-index: 2;
}

.news-gallery__control:hover,
.news-lightbox__control:hover,
.news-lightbox__close:hover {
  background: var(--gold);
  color: var(--navy);
}

.news-gallery__control:focus-visible,
.news-lightbox__control:focus-visible,
.news-lightbox__close:focus-visible {
  background: var(--gold);
  color: var(--navy);
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.news-gallery__control--previous {
  left: 16px;
}

.news-gallery__control--next {
  right: 16px;
}

.news-gallery__counter,
.news-lightbox__counter {
  background: rgba(15, 22, 51, .82);
  border-radius: 999px;
  color: var(--white);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .38rem .65rem;
}

.news-gallery__counter {
  bottom: 14px;
  position: absolute;
  right: 14px;
  z-index: 2;
}

.news-gallery__thumbnails {
  display: flex;
  gap: .65rem;
  margin-top: .8rem;
  overflow-x: auto;
  padding: 2px 2px .4rem;
  scrollbar-color: rgba(15, 22, 51, .35) transparent;
  scrollbar-width: thin;
}

.news-gallery__thumbnail {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 108px;
  overflow: hidden;
  padding: 0;
  transition: border-color .2s ease, opacity .2s ease;
}

.news-gallery__thumbnail img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.news-gallery__thumbnail:hover,
.news-gallery__thumbnail:focus-visible {
  border-color: var(--navy);
}

.news-gallery__thumbnail:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.news-gallery__thumbnail.is-active {
  border-color: var(--gold);
}

.news-article__body {
  margin: 2.35rem auto 0;
  max-width: 790px;
}

.news-article__body p {
  color: #444c60;
  font-size: 1.02rem;
  hyphens: auto;
  line-height: 1.82;
  margin: 0 0 1.35rem;
  overflow-wrap: break-word;
  text-align: justify;
  text-align-last: left;
}

.news-lightbox {
  align-items: center;
  background: rgba(7, 12, 32, .92);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  position: fixed;
  z-index: 2000;
}

.news-lightbox[hidden] {
  display: none;
}

.news-lightbox__dialog {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  max-height: 100%;
  max-width: 1280px;
  position: relative;
  width: 100%;
}

.news-lightbox__image {
  border-radius: 14px;
  display: block;
  max-height: calc(100vh - 6rem);
  max-width: 100%;
  object-fit: contain;
}

.news-lightbox__close {
  height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  z-index: 2;
}

.news-lightbox__control {
  height: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 2;
}

.news-lightbox__control--previous {
  left: 0;
}

.news-lightbox__control--next {
  right: 0;
}

.news-lightbox__counter {
  bottom: 0;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

body.has-news-lightbox {
  overflow: hidden;
}

.news-article__share {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1.1rem 0;
}

.news-article__share strong {
  color: var(--navy);
  font-size: .84rem;
}

.news-article__share > div {
  display: flex;
  gap: .55rem;
}

.news-article__share a {
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  width: 38px;
}

.news-article__share a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.news-article__pagination {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.news-article__pagination-link {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  display: flex;
  gap: .9rem;
  min-height: 112px;
  padding: 1.1rem 1.2rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-article__pagination-link:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(15, 22, 51, .08);
  transform: translateY(-2px);
}

.news-article__pagination-link span {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-article__pagination-link small {
  color: #626b7e;
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .3rem;
  text-transform: uppercase;
}

.news-article__pagination-link > i {
  color: #806410;
  flex: 0 0 auto;
}

.news-article__pagination-link--next {
  grid-column: 2;
  justify-content: flex-end;
  text-align: right;
}

.news-article__sidebar {
  display: grid;
  gap: 1.2rem;
  position: sticky;
  top: 145px;
}

.news-sidebar-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.news-sidebar-block > h2 {
  border-bottom: 3px solid var(--gold);
  color: var(--navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 1.15rem;
  padding-bottom: .7rem;
  text-transform: uppercase;
}

.news-sidebar-list {
  display: grid;
  gap: 1rem;
}

.news-sidebar-card {
  align-items: start;
  display: grid;
  gap: .8rem;
  grid-template-columns: 88px minmax(0, 1fr);
}

.news-sidebar-card + .news-sidebar-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.news-sidebar-card__image {
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.news-sidebar-card__image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.news-sidebar-card time {
  color: #806410;
  display: block;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .3rem;
  text-transform: uppercase;
}

.news-sidebar-card h3 {
  font-family: "Manrope", Arial, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.news-sidebar-card h3 a:hover {
  color: #806410;
}

@media (max-width: 991.98px) {
  .news-article__layout {
    grid-template-columns: 1fr;
  }

  .news-article__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
}

@media (max-width: 767.98px) {
  .news-detail-hero h2 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .news-article {
    padding: 58px 0 72px;
  }

  .news-article__header {
    margin-bottom: 1.65rem;
  }

  .news-article__header h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.1;
  }

  .news-article__body {
    margin-top: 1.7rem;
  }

  .news-article__body p {
    font-size: .96rem;
    line-height: 1.75;
  }

  .news-article__pagination,
  .news-article__sidebar {
    grid-template-columns: 1fr;
  }

  .news-gallery__thumbnail {
    flex-basis: 88px;
  }

  .news-article__pagination-link--next {
    grid-column: 1;
  }
}

@media (max-width: 479.98px) {
  .news-article__body p {
    hyphens: manual;
    text-align: left;
  }

  .news-gallery__control {
    height: 44px;
    width: 44px;
  }

  .news-gallery__control--previous {
    left: 10px;
  }

  .news-gallery__control--next {
    right: 10px;
  }

  .news-lightbox {
    padding: .75rem;
  }

  .news-lightbox__control {
    height: 44px;
    width: 44px;
  }

  .news-article__share {
    align-items: flex-start;
    flex-direction: column;
    gap: .85rem;
  }

  .news-sidebar-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-gallery__featured,
  .news-gallery__control,
  .news-gallery__thumbnail,
  .news-lightbox__control,
  .news-lightbox__close,
  .news-article__pagination-link,
  .news-sidebar-card__image img {
    transition: none;
  }

  .news-article__pagination-link:hover {
    transform: none;
  }
}
