.news-photos {
  margin: 36px 0;
}

.news-photos__heading,
.news-photos__details,
.news-photos__buttons {
  display: flex;
  align-items: center;
}

.news-photos__heading,
.news-photos__details {
  justify-content: space-between;
  gap: 12px;
}

.news-photos__heading {
  margin-bottom: 12px;
}

.news-photos__heading h2 {
  margin: 0;
  font-size: 21px;
}

.news-photos__heading span,
.news-photos__details {
  color: var(--ink-soft);
  font-size: 13px;
}

.news-photos__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--line) 55%, var(--bg));
}

.news-photos__track::-webkit-scrollbar {
  display: none;
}

.news-photos__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  max-height: 470px;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
}

.news-photos__slide:focus-visible {
  outline-offset: -4px;
}

.news-photos__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-photos__zoom {
  position: absolute;
  display: grid;
  place-items: center;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgb(0 0 0 / 62%);
  color: white;
}

.news-photos__details {
  margin: 8px 0 10px;
}

.news-photos__details p {
  margin: 0;
}

.news-photos__buttons {
  gap: 8px;
}

.news-photos__buttons span {
  min-width: 32px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.news-photos__buttons button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.news-photos__buttons button:disabled {
  opacity: .4;
  cursor: default;
}

.article__section-heading {
  margin: 32px 0 10px;
  font-size: 21px;
  line-height: 1.45;
}

.article--photo-report .article__hero-media {
  margin-block: 24px 30px;
}

.article--photo-report .article__hero-media button {
  position: relative;
}

.article--photo-report .article__hero-media img {
  max-height: 425px !important;
}

.article--photo-report > header p {
  text-wrap: balance;
}

.article__header-phrase {
  display: inline-block;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* Adjust the display tones consistently in cards, the article and the zoom viewer. */
img[src='/assets/news/huahai-safety-20261105/workshop-visit.jpg'] {
  filter: brightness(1.13) contrast(.94) saturate(.98);
}

img[src='/assets/news/huahai-safety-20261105/workshop-inspection.jpg'] {
  filter: brightness(1.07) contrast(1.04);
}

img[src='/assets/news/huahai-safety-20261105/testing-discussion.jpg'] {
  filter: brightness(1.04) contrast(1.035);
}

.article__hero-media img[src='/assets/news/huahai-safety-20261105/testing-discussion.jpg'] {
  object-position: 50% 43%;
}

.news-card img[src='/assets/news/huahai-safety-20261105/testing-discussion.jpg'] {
  object-position: 50% 28%;
}

img[src='/assets/news/huahai-safety-20261105/testing-equipment.jpg'] {
  filter: brightness(1.13) contrast(1.02);
}

img[src='/assets/news/huahai-safety-20261105/testing-site.jpg'] {
  filter: brightness(1.05) contrast(1.03);
}

@media (max-width: 1279px) {
  :root:has(.site-app--photo-report),
  :root:has(.site-app--photo-report) body,
  .site-app--photo-report {
    min-width: 0;
  }

  .site-app--photo-report .desktop-nav {
    display: none !important;
  }
}

@media (max-width: 620px) {
  .site-app--photo-report .site-header__inner,
  .site-app--photo-report .site-footer__main,
  .site-app--photo-report .article,
  .site-app--photo-report .breadcrumbs {
    width: calc(100% - 32px);
  }

  .site-app--photo-report .site-footer__main {
    display: block;
  }

  .site-app--photo-report .site-footer__links {
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .site-app--photo-report .site-header__actions .header-contact,
  .site-app--photo-report .floating-inquiry {
    display: none;
  }

  .article--photo-report > header {
    padding: 22px 0 20px;
    text-align: left;
  }

  .article--photo-report > header h1 {
    margin: 11px 0 13px;
    font-size: clamp(27px, 7.5vw, 38px);
    text-wrap: balance;
  }

  .article--photo-report > header p,
  .article--photo-report .article__body > p {
    font-size: 16px;
  }

  .article--photo-report .article__hero-media img {
    aspect-ratio: 4 / 3;
  }

  .news-photos__buttons button {
    width: 40px;
    height: 40px;
  }
}
