/* The formats slideshow (templates/core/_format_slides.html). Scoped to .fs. */
.fs {
  --fs-ink: #13201a;
  --fs-muted: #55645c;
  --fs-line: #e3e8e4;
  --fs-gold: #c8a951;
  --fs-control: #1a5632;
  --fs-control-bg: #fff;
  --fs-control-line: #d5ddd8;
  --fs-dot: #c4cfc8;
  font-family: 'Inter', Arial, sans-serif;
  width: 100%;
  min-width: 0;
}
.fs-dark {
  --fs-control: #fff;
  --fs-control-bg: rgba(255, 255, 255, 0.06);
  --fs-control-line: rgba(255, 255, 255, 0.28);
  --fs-dot: rgba(255, 255, 255, 0.35);
}
.fs *, .fs *::before, .fs *::after { box-sizing: border-box; }

.fs-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(16, 53, 31, 0.08);
}
.fs-dark .fs-frame { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08); }

.fs-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.fs-track::-webkit-scrollbar { display: none; }
.fs-track:focus-visible { outline: 3px solid var(--fs-gold); outline-offset: -3px; }

.fs-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.fs-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--fs-line);
}
.fs-slide figcaption {
  min-height: 92px;
  padding: 16px 22px 18px;
  text-align: left;
  color: var(--fs-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.fs-slide figcaption strong { display: block; margin-bottom: 3px; color: var(--fs-ink); font-size: 1.02rem; font-weight: 700; }

.fs-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.fs-controls[hidden] { display: none; }
.fs-arrow, .fs-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--fs-control-line);
  border-radius: 999px;
  background: var(--fs-control-bg);
  color: var(--fs-control);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.fs-arrow:hover, .fs-pause:hover { border-color: var(--fs-control); }
.fs-arrow svg, .fs-pause svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fs-pause .fs-i-play { fill: currentColor; stroke: none; display: none; }
.fs-pause[aria-pressed="true"] .fs-i-play { display: inline; }
.fs-pause[aria-pressed="true"] .fs-i-pause { display: none; }
.fs-pause { margin-left: 6px; }

.fs-dots { display: flex; align-items: center; }
.fs-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fs-dots button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fs-dot);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.fs-dots button[aria-current="true"]::before { width: 20px; background: var(--fs-gold); }
.fs-arrow:focus-visible, .fs-pause:focus-visible, .fs-dots button:focus-visible { outline: 3px solid var(--fs-gold); outline-offset: 2px; }

@media (max-width: 600px) {
  .fs-slide figcaption { min-height: 112px; padding: 14px 16px 16px; font-size: 0.92rem; }
  .fs-dots button { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-track { scroll-behavior: auto; }
  .fs-dots button::before, .fs-arrow, .fs-pause { transition: none; }
}
