/* Full-image homepage news links; the grid also works without JavaScript. */
.news-single-section .section-heading,
.news-single-section .news-picture-carousel {
  max-width: 1600px;
  margin-inline: auto;
}

.news-single-section .news-picture-track {
  --news-visible: 4;
  --news-gap: 26px;
  display: grid;
  grid-template-columns: repeat(var(--news-visible), minmax(0, 1fr));
  gap: var(--news-gap);
  padding: 12px 8px 20px;
}

.news-single-section [data-news-ready] .news-picture-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.news-single-section .news-picture-track::-webkit-scrollbar { display: none; }

.news-single-section .news-picture-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - (var(--news-visible) - 1) * var(--news-gap)) / var(--news-visible));
  min-width: 0;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #eeeff1;
  box-shadow: 0 5px 18px rgba(20, 29, 40, 12%);
  scroll-snap-align: start;
  color: #fff;
  text-align: start;
  text-decoration: none;
}

.news-single-section .news-picture-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.news-single-section .news-picture-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 18%, rgb(0 0 0 / 65%) 45%, rgb(0 0 0 / 84%) 100%);
}

html[lang] #home .news-single-section .news-picture-title h3 {
  margin: 0;
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.news-single-section .news-picture-card:focus-visible {
  outline: 3px solid #126ad7;
  outline-offset: 3px;
}

.news-single-section .news-picture-track:focus-visible {
  outline: 2px solid #126ad7;
  outline-offset: 3px;
}

.news-single-section .news-picture-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.news-single-section .news-picture-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0;
}

.news-single-section .news-picture-dots[hidden] { display: none; }

.news-single-section .news-picture-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.news-single-section .news-picture-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #a8aaa9;
}

.news-single-section .news-picture-dot[aria-current="true"]::before {
  width: 12px;
  height: 12px;
  border-color: #126ad7;
  background: #fff;
}

.news-single-section .news-picture-dot:focus-visible {
  outline: 2px solid #126ad7;
  outline-offset: -5px;
  border-radius: 8px;
}

.news-single-section .news-more-row { justify-content: center; margin-top: 18px; }

html[lang] #home .news-single-section .news-more-row .btn {
  border: 1px solid #126ad7;
  background: #fff;
  color: #126ad7;
  font-size: 14px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .news-single-section .news-picture-card:hover img { transform: scale(1.035); }
}

@media (max-width: 1279px) {
  .news-single-section .news-picture-track { --news-visible: 3; }
}

@media (max-width: 900px) {
  .news-single-section .news-picture-track { --news-visible: 2; --news-gap: 22px; }
}

@media (max-width: 600px) {
  .news-single-section .news-picture-track { --news-visible: 1; --news-gap: 18px; }
  .news-single-section .news-picture-card { aspect-ratio: 6 / 5; }
  .news-single-section .news-picture-title { padding: 20px; }
  html[lang] #home .news-single-section .news-picture-title h3 { font-size: 17px; }
  .news-single-section .news-picture-dot { width: 26px; }
  .news-single-section .news-picture-controls { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-single-section .news-picture-card img { transition: none; }
}
