/* Shared roles come from the Friesenrat theme; fallbacks keep the block usable alone. */
.frs-slider {
  --frs-blue: var(--fr-blue, #2A5E9A);
  --frs-red: var(--fr-red, #B4453D);
  --frs-paper: var(--fr-paper, #FCFBF8);
  --frs-ink: var(--fr-ink, #334155);
  --frs-muted: var(--fr-muted, #536176);
  --frs-line: var(--fr-line, #D8DFE6);
  --frs-hover: var(--fr-hover, #F1F0ED);
  container-type: inline-size;
  position: relative;
  color: var(--frs-ink);
  font: 400 1.25rem/1.6 'Hanken Grotesk', sans-serif;
  width: 100%;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}
.frs-slider *, .frs-slider *::before, .frs-slider *::after { box-sizing: border-box; }
.frs-slider [hidden] { display: none !important; }
.frs-stage { min-width: 0; }
/* Only the active caption contributes height; the picture keeps its fixed ratio. */
.frs-slide {
  display: none;
  min-width: 0;
  margin: 0;
}
.frs-slide.is-active { display: block; }
.frs-picture {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 12 / 5;
  background: var(--fr-pale, #EDF3FA);
  touch-action: pan-y pinch-zoom;
}
.frs-slider .frs-picture img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--frs-x, 50%) var(--frs-y, 50%);
  border: 0;
  border-radius: 0;
  user-select: none;
}
.frs-caption {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 24px;
  padding-top: 32px;
}
.frs-heading, .frs-copy { min-width: 0; }
.frs-heading:only-child { grid-column: 1 / -1; max-width: 900px; }
.frs-slider .frs-region {
  margin: 0 0 12px;
  color: var(--frs-red);
  font: 500 .875rem/1.5 'Hanken Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: .075em;
  overflow-wrap: anywhere;
}
.frs-slider .frs-title {
  color: var(--frs-blue);
  font-family: Newsreader, Georgia, serif;
  font-weight: 450;
  font-size: clamp(2.25rem, 4.6cqi, 3.5rem);
  font-optical-sizing: auto;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
}
.frs-title-end { white-space: nowrap; }
.frs-dot { color: var(--frs-red); }
.frs-slider .frs-text { font-size: 1.25rem; line-height: 1.6; margin: 0 0 16px; overflow-wrap: anywhere; }
.frs-slider .frs-text:last-child { margin-bottom: 0; }
.frs-slider .frs-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  max-width: 100%;
  color: var(--frs-blue);
  font: 600 1rem/1.5 'Hanken Grotesk', sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.frs-slider .frs-link:hover { color: var(--frs-red); }
.frs-slider svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* The two arrows sit at the image edges, independently of caption height. */
.frs-navigation {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  aspect-ratio: 12 / 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.frs-slider .frs-arrow, .frs-slider .frs-playback {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--frs-blue);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
}
.frs-slider .frs-arrow { width: 48px; height: 64px; }
.frs-slider .frs-previous { justify-content: flex-start; }
.frs-slider .frs-next { justify-content: flex-end; }
.frs-slider .frs-arrow svg { width: 32px; height: 32px; }
.frs-slider .frs-arrow[data-frs-inverted="true"] { color: var(--frs-paper); }
.frs-slider .frs-arrow:hover { color: var(--frs-red); }
.frs-slider .frs-arrow:focus-visible { outline-color: currentColor; outline-offset: -4px; }
.frs-slider .frs-playback { position: absolute; right: 16px; bottom: 12px; gap: 8px; padding: 0 12px; background: var(--frs-paper); font: 500 .875rem/1.5 'Hanken Grotesk', sans-serif; }
.frs-slider .frs-playback:hover { color: var(--frs-red); }
.frs-playback > span { display: inline-flex; }
.frs-slider :focus-visible { outline: 3px solid var(--frs-blue); outline-offset: 3px; }
.frs-sr-only { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
@container (max-width: 680px) {
  .frs-picture { aspect-ratio: 4 / 3; }
  .frs-slider .frs-picture img { object-position: var(--frs-mobile-x, 50%) var(--frs-mobile-y, 50%); }
  .frs-caption { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .frs-slider .frs-title { font-size: clamp(2rem, 8.5cqi, 2.75rem); }
  .frs-navigation { aspect-ratio: 4 / 3; }
  .frs-slider .frs-playback { right: 8px; bottom: 8px; }
}
@media print {
  .frs-slide { display: block; margin-bottom: 32px; }
  .frs-navigation { display: none; }
}
