/* ========================================================================== 
   NEWS DETAIL — รูปแบบบทความเชิงบรรณาธิการ
   ต่อยอดระบบ KPN ด้วยหน้าเนื้อหาข่าวที่กระชับและอ่านลำดับได้ชัดเจน
   ========================================================================== */

.news-detail-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--kpn-green-grey-grey-900);
  background: #fff;
}

.news-detail-page main,
.news-detail-page main * {
  box-sizing: border-box;
}

.news-detail-page main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "FC Minimal", sans-serif;
}

/* แบนเนอร์หัวหน้าแบบกระชับ ---------------------------------------------- */
.news-detail-page .page-hero {
  min-height: 360px;
  margin: 0;
  padding: 148px clamp(24px, 6vw, 160px) 68px;
  background-position: center 48%;
}

.news-detail-page .page-hero::after {
  content: none;
}

.news-detail-page .page-hero__inner {
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  gap: 18px;
  text-align: left;
}

.news-detail-page .page-hero__title {
  max-width: 100%;
  font-size: clamp(42px, 5vw, var(--fc-minimal-display-64-semibold));
  line-height: 1.05;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.news-detail-page .page-hero__breadcrumb {
  justify-content: flex-start;
}

.news-detail-page .page-hero__subtitle {
  display: none;
}

/* ส่วนหัวบทความ --------------------------------------------------------- */
.news-detail {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 72px clamp(24px, 4vw, 80px) 112px;
  /* background:
    linear-gradient(180deg, var(--kpn-green-blue-blue-50) 0, rgba(255, 255, 255, 0) 220px),
    #fff; */
  background: #fff;
}

.news-detail__inner {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
}

.news-detail__return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color .2s ease;
}

.news-detail__return-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.news-detail__return-icon svg {
  width: 16px;
  height: 16px;
}

.news-detail__header {
  width: 100%;
  margin: 0 0 36px;
}

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.news-detail__category {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 32px;
  color: var(--kpn-green-green-green-600);
  background-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 20px 0 rgba(245, 245, 255, .25);
  font-size: var(--fc-minimal-paragraph-small-regular);
  font-weight: 400;
  line-height: 1.4;
}

.news-detail__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--kpn-green-grey-grey-500);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  font-weight: 400;
  line-height: 1.4;
}

.news-detail__date-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .62;
}

.news-detail__title {
  max-width: 100%;
  margin: 0;
  color: var(--kpn-green-green-green-600);
  /* background-image: linear-gradient(0deg,
    var(--kpn-green-green-green-200) 0%,
    var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; */
  font-size: clamp(36px, 3.4vw, var(--fc-minimal-heading-48-medium));
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}

/* แกลเลอรีภาพข่าว ------------------------------------------------------- */
.news-detail__visual {
  width: 100%;
  margin: 0 0 52px;
}

.news-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 24px;
  background: #fff;
}

.news-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--kpn-green-grey-grey-100);
  isolation: isolate;
}

.news-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .72s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.news-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.news-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
}

.news-gallery__arrow,
.news-gallery-modal__nav,
.news-gallery-modal__close {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 27, 23, .34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.news-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.news-gallery__arrow--prev {
  left: 18px;
}

.news-gallery__arrow--next {
  right: 18px;
}

.news-gallery-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.news-gallery-icon--images {
  -webkit-mask-image: url("../vendor/lucide/images.svg");
  mask-image: url("../vendor/lucide/images.svg");
}

.news-gallery-icon--chevron-left {
  -webkit-mask-image: url("../vendor/lucide/chevron-left.svg");
  mask-image: url("../vendor/lucide/chevron-left.svg");
}

.news-gallery-icon--chevron-right {
  -webkit-mask-image: url("../vendor/lucide/chevron-right.svg");
  mask-image: url("../vendor/lucide/chevron-right.svg");
}

.news-gallery-icon--x {
  -webkit-mask-image: url("../vendor/lucide/x.svg");
  mask-image: url("../vendor/lucide/x.svg");
}

.news-gallery__arrow:hover,
.news-gallery__arrow:focus-visible,
.news-gallery-modal__nav:hover,
.news-gallery-modal__nav:focus-visible,
.news-gallery-modal__close:hover,
.news-gallery-modal__close:focus-visible {
  border-color: var(--kpn-green-orange-orange-500);
  background: var(--kpn-green-orange-orange-500);
}

.news-gallery__counter {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  min-width: 54px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 27, 23, .4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  /* ระบบไม่มี token 13px */
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.news-gallery__dots {
  position: absolute;
  bottom: 19px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.news-gallery__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}

.news-gallery__dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.news-gallery__open {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid var(--kpn-green-grey-grey-50);
  color: var(--kpn-green-grey-grey-900);
  background: #fff;
  font-family: inherit;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.news-gallery__open .news-gallery-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: var(--kpn-green-green-green-600);
}

.news-gallery__open-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--kpn-green-green-green-700);
  background: var(--kpn-green-green-green-50);
  /* ระบบไม่มี token 11px */
  font-size: 11px;
}

.news-gallery__open:hover,
.news-gallery__open:focus-visible {
  color: var(--kpn-green-green-green-700);
  background: #f8fbf7;
}

.news-detail__return:focus-visible,
.news-gallery__arrow:focus-visible,
.news-gallery__dots button:focus-visible,
.news-gallery__open:focus-visible,
.news-gallery-modal button:focus-visible {
  outline: 3px solid rgba(32, 171, 227, .42);
  outline-offset: 3px;
}

.news-gallery__arrow[hidden],
.news-gallery__counter[hidden],
.news-gallery__dots[hidden],
.news-gallery-modal__nav[hidden],
.news-gallery-modal[hidden] {
  display: none !important;
}

body.news-gallery-open {
  overflow: hidden;
}

.news-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px clamp(18px, 3vw, 48px) 24px;
  color: #fff;
  background: rgba(8, 12, 10, .94);
  font-family: "FC Minimal", sans-serif;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: news-gallery-modal-in .28s ease both;
}

.news-gallery-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.news-gallery-modal__head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.news-gallery-modal__head strong {
  font-size: var(--fc-minimal-paragraph-regular-medium);
  font-weight: 500;
}

.news-gallery-modal__count {
  color: rgba(255, 255, 255, .58);
  /* ระบบไม่มี token 14px */
  font-size: 14px;
}

.news-gallery-modal__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.news-gallery-modal__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 16px clamp(48px, 6vw, 92px);
}

.news-gallery-modal__stage > img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.news-gallery-modal__nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
}

.news-gallery-modal__nav--prev {
  left: 0;
}

.news-gallery-modal__nav--next {
  right: 0;
}

.news-gallery-modal__thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 0 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.news-gallery-modal__thumbs button {
  width: 112px;
  height: 72px;
  flex: 0 0 112px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  opacity: .58;
  cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease;
}

.news-gallery-modal__thumbs button:hover,
.news-gallery-modal__thumbs button:focus-visible,
.news-gallery-modal__thumbs button.is-active {
  border-color: var(--kpn-green-green-green-500);
  opacity: 1;
}

.news-gallery-modal__thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

@keyframes news-gallery-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* เนื้อหาบทความ --------------------------------------------------------- */
.news-detail__content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(340px, .8fr);
  grid-template-areas:
    "article-header ."
    "article-visual related"
    "article-body related";
  column-gap: clamp(44px, 5vw, 76px);
  row-gap: 0;
  align-items: start;
}

.news-detail__article-column {
  display: contents;
  min-width: 0;
}

.news-detail__header {
  grid-area: article-header;
}

.news-detail__visual {
  grid-area: article-visual;
}

.news-detail__body {
  grid-area: article-body;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.news-detail__body p {
  margin: 0;
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-small-regular);
  font-weight: 400;
  line-height: 1.82;
  overflow-wrap: break-word;
}

.news-detail__body p + p {
  margin-top: 28px;
}

.news-detail__body .news-detail__tags {
  color: var(--kpn-green-blue-blue-500);
  font-size: var(--fc-minimal-paragraph-small-regular);
  font-weight: 500;
  line-height: 1.6;
}

.news-detail__error {
  width: min(100%, 1180px);
  margin: 0;
  padding: 40px;
  border: 1px solid rgba(29, 156, 207, .15);
  border-radius: 24px;
  background: var(--kpn-green-blue-blue-50);
  color: var(--kpn-green-blue-blue-900);
  font-size: var(--fc-minimal-paragraph-regular-regular);
}

/* ข่าวที่เกี่ยวข้อง ------------------------------------------------------ */
.news-related {
  grid-area: related;
  position: sticky;
  top: 112px;
  min-width: 0;
  padding: 0;
  background: transparent;
  font-family: "FC Minimal", sans-serif;
}

.news-related[hidden] {
  display: none !important;
}

.news-related__inner {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.news-related__header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(90, 164, 64, .22);
}

.news-related__eyebrow {
  margin: 6px 0 0;
  color: var(--kpn-green-grey-grey-600);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  font-weight: 400;
  line-height: 1.4;
}

.news-related__title {
  margin: 0;
  color: var(--kpn-green-green-green-700);
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: var(--fc-minimal-heading-30-semibold);
  font-weight: 500;
  line-height: 1.25;
}

.news-related__grid {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.news-related-card {
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid var(--kpn-green-grey-grey-50);
}

.news-related-card:last-child {
  border-bottom: 0;
}

.news-related-card__link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--kpn-green-grey-grey-900);
  text-decoration: none;
  transition: color .2s ease;
}

.news-related-card__media {
  position: relative;
  width: 108px;
  min-height: 108px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--kpn-green-green-green-100);
}

.news-related-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.news-related-card__media--empty {
  background: linear-gradient(135deg, var(--kpn-green-green-green-600), var(--kpn-green-blue-blue-700));
}

.news-related-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
}

.news-related-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--kpn-green-grey-grey-500);
  background: transparent;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.4;
}

.news-related-card__date img {
  width: 18px;
  height: 18px;
  opacity: .62;
}

.news-related-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--kpn-green-grey-grey-900);
  font-size: var(--fc-minimal-paragraph-small-medium);
  font-weight: 500;
  line-height: 1.32;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  transition: color .25s ease;
}

.news-related-card__summary {
  display: none;
}

.news-related-card--featured .news-related-card__link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
}

.news-related-card--featured .news-related-card__media {
  width: 108px;
  min-height: 108px;
  border-radius: 12px;
}

.news-related-card--featured .news-related-card__content {
  gap: 8px;
  padding-top: 0;
}

.news-related-card--featured .news-related-card__title {
  font-size: var(--fc-minimal-paragraph-regular-medium);
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.news-related-card--featured .news-related-card__summary {
  display: none;
}

.news-related-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  color: var(--kpn-green-grey-grey-900);
  font-size: var(--fc-minimal-paragraph-small-regular);
  font-weight: 400;
  transition: color .2s ease, gap .2s ease;
}

.news-related-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.news-related-card__link:focus-visible {
  outline: 3px solid rgba(32, 171, 227, .42);
  outline-offset: 4px;
}

@media (hover: hover) {
  .news-detail__return:hover {
    color: var(--kpn-green-orange-orange-500);
  }

  .news-detail__return:hover .news-detail__return-icon {
    transform: translateX(-3px);
    border-color: var(--kpn-green-orange-orange-500);
    background: var(--kpn-green-orange-orange-500);
    color: #fff;
  }

  .news-related-card__link:hover {
    color: var(--kpn-green-orange-orange-500);
  }

  .news-related-card__link:hover .news-related-card__title {
    color: var(--kpn-green-orange-orange-500);
  }

  .news-related-card__link:hover .news-related-card__media img {
    transform: scale(1.055);
  }

  .news-related-card__link:hover .news-related-card__cta svg {
    transform: translateX(5px);
  }

  .news-related-card__link:hover .news-related-card__cta {
    gap: 11px;
    color: var(--kpn-green-orange-orange-500);
  }

}

@media (max-width: 991.98px) {
  .news-detail-page .page-hero {
    min-height: 330px;
    padding: 136px 32px 58px;
  }

  .news-detail {
    padding: 64px 32px 96px;
  }

  .news-detail__header,
  .news-detail__body,
  .news-detail__error {
    margin-left: 0;
  }

  .news-detail__title {
    font-size: clamp(36px, 6vw, 54px);
  }

  .news-detail__content-layout {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 64px;
    width: 100%;
  }

  .news-detail__article-column {
    display: block;
  }

  .news-related {
    grid-area: auto;
    position: static;
    width: 100%;
    max-width: none;
    padding: 48px 0 0;
    border-top: 1px solid rgba(90, 164, 64, .22);
  }

  .news-related__header {
    width: 100%;
    max-width: none;
  }

  .news-related__inner {
    width: 100%;
    max-width: none;
  }

  .news-related__grid {
    display: flex;
    width: 100%;
    max-width: none;
    gap: 0;
  }

  .news-related-card--featured .news-related-card__link {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
  }

  .news-related-card--featured .news-related-card__media {
    width: 108px;
    min-height: 108px;
    border-radius: 12px;
  }

  .news-related-card--featured .news-related-card__content {
    gap: 8px;
    padding-top: 0;
  }

  .news-related-card--featured .news-related-card__title {
    font-size: var(--fc-minimal-paragraph-small-medium);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .news-related-card__summary,
  .news-related-card--featured .news-related-card__summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--kpn-green-grey-grey-600);
    font-size: var(--fc-minimal-paragraph-detail-regular);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (max-width: 767.98px) {
  .news-detail-page .page-hero {
    min-height: 300px;
    padding: 118px 24px 48px;
  }

  .news-detail-page .page-hero__title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .news-detail-page .page-hero__breadcrumb li {
    font-size: var(--fc-minimal-paragraph-detail-regular);
  }

  .news-detail {
    padding: 48px 24px 80px;
  }

  .news-detail__return {
    margin-bottom: 36px;
  }

  .news-detail__header {
    margin-bottom: 36px;
  }

  .news-detail__title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.18;
  }

  .news-detail__visual {
    margin-bottom: 48px;
  }

  .news-gallery__main {
    aspect-ratio: 4 / 3;
  }

  .news-gallery {
    border-radius: 18px;
  }

  .news-gallery__open {
    min-height: 46px;
    padding-inline: 14px;
  }

  .news-gallery__arrow {
    width: 38px;
    height: 38px;
  }

  .news-gallery__arrow--prev {
    left: 10px;
  }

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

  .news-gallery__counter {
    right: 10px;
    bottom: 10px;
  }

  .news-gallery__dots {
    bottom: 14px;
  }

  .news-gallery-modal {
    padding: 10px 14px 18px;
  }

  .news-gallery-modal__head strong {
    font-size: var(--fc-minimal-paragraph-small-medium);
  }

  .news-gallery-modal__stage {
    padding: 12px 0 64px;
  }

  .news-gallery-modal__stage > img {
    max-height: calc(100vh - 210px);
    border-radius: 12px;
  }

  .news-gallery-modal__nav {
    top: auto;
    bottom: 10px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .news-gallery-modal__nav--prev {
    left: calc(50% - 50px);
  }

  .news-gallery-modal__nav--next {
    right: calc(50% - 50px);
  }

  .news-gallery-modal__thumbs {
    justify-content: flex-start;
  }

  .news-gallery-modal__thumbs button {
    width: 92px;
    height: 62px;
    flex-basis: 92px;
  }

  .news-related {
    padding: 40px 0 0;
  }

  .news-related__header {
    margin-bottom: 18px;
  }

  .news-related__title {
    font-size: var(--fc-minimal-heading-30-semibold);
  }

  .news-related__grid {
    padding-inline: 0;
    gap: 0;
  }

  .news-related-card__content {
    padding: 0;
  }

}

@media (max-width: 575.98px) {
  .news-detail-page .page-hero__inner {
    min-width: 0;
  }

  .news-detail-page .page-hero__title {
    width: 100%;
    max-width: 11ch;
    font-size: 38px;
  }

  .news-detail {
    padding-inline: 16px;
  }

  .news-detail__inner,
  .news-detail__header,
  .news-detail__visual,
  .news-detail__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .news-detail__return {
    margin-bottom: 32px;
  }

  .news-detail__meta {
    gap: 10px 12px;
  }

  .news-detail__title {
    font-size: var(--fc-minimal-heading-32-medium);
    letter-spacing: 0;
  }

  .news-related {
    padding-inline: 0;
  }

  .news-related__grid {
    padding-inline: 0;
  }

  .news-related-card__link {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .news-related-card__media,
  .news-related-card--featured .news-related-card__media {
    width: 104px;
    min-height: 104px;
  }

  .news-related-card--featured .news-related-card__link {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .news-detail__return,
  .news-detail__return-icon,
  .news-gallery__track,
  .news-gallery-modal,
  .news-gallery__arrow,
  .news-gallery__dots button {
    transition: none;
    animation: none;
  }

  .news-related-card__link,
  .news-related-card__media img,
  .news-related-card__title,
  .news-related-card__cta svg {
    transition: none;
  }
}
