.afc-carousel { position: relative; width: 100%; background: var(--afc-cocoa, #35241e); color: #fff; }
.afc-carousel-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.afc-carousel-track::-webkit-scrollbar { display:none; }
.afc-carousel-track.is-dragging { scroll-snap-type:none; cursor:grabbing; }
.af-home-presentation .afc-carousel .afc-carousel-slide { flex: 0 0 100%; position: relative; width: 100%; max-height: none; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.af-home-presentation .afc-carousel .afc-carousel-slide img { width: 100%; height: clamp(255px, 42vw, 620px); aspect-ratio: auto; object-fit: cover; object-position: var(--slide-position, center); user-select: none; -webkit-user-drag: none; }
.afc-carousel-slide figcaption { display: none; }
.afc-carousel-controls { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap: .6rem; padding: .5rem .75rem; }
.afc-carousel-controls[hidden] { display:none; }
.afc-carousel-controls button { color:#fff; background:#35241e; border:1px solid #fff7e8; border-radius:999px; min-height:44px; min-width:44px; padding: .25rem .8rem; cursor:pointer; font:inherit; }
.afc-carousel-controls button:hover { background:#98202a; }
.afc-carousel-controls :is(.afc-carousel-prev,.afc-carousel-next) { font-size:1.55rem; line-height:1; }
.afc-carousel-count { min-width:2.5em; }
.afc-carousel-track:focus-visible,.afc-carousel-controls button:focus-visible { outline: 3px solid #f1bf64 !important; outline-offset: -3px; }
.afc-carousel-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width: 600px) { .af-home-presentation .afc-carousel .afc-carousel-slide img {height: clamp(245px, 69vw, 370px);} }

body #main .af-home-hero.af-home-presentation { background-image: radial-gradient(ellipse 68% 310px at 50% -47px, transparent 18%, var(--afc-vanilla) 100%), repeating-conic-gradient(from -4deg at 50% -47px,var(--afc-ray-stops)) !important; }

.afc-carousel-fade { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; opacity:1; pointer-events:none; transition:opacity 1800ms ease-in-out; }
.afc-carousel-fade.is-fading { opacity:0; }
.afc-carousel-controls { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); z-index:2; }
.afc-carousel-controls:focus-within { top:.6rem; right:.6rem; width:auto; height:auto; overflow:visible; clip-path:none; padding:.3rem; background:#35241e; border-radius:999px; }
.afc-carousel-controls .afc-carousel-count { display:none; }
@media (prefers-reduced-motion:reduce) { .afc-carousel-fade { transition:none; } }

/* Match the navigation trim around the full-bleed carousel. */
.afc-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: solid var(--afc-cherry, #b62832);
  border-width: 6px 0;
  box-shadow: inset 0 2px var(--afc-vanilla, #fff7e8), inset 0 -2px var(--afc-vanilla, #fff7e8), inset 0 4px var(--afc-cherry, #b62832), inset 0 -4px var(--afc-cherry, #b62832);
}
.afc-carousel-controls:focus-within { z-index: 3; }

/* Show a row of photos at half the previous height. */
.afc-carousel { --photos-per-view: 3; }
.af-home-presentation .afc-carousel .afc-carousel-slide { flex-basis: calc(100% / var(--photos-per-view)); width: calc(100% / var(--photos-per-view)); scroll-snap-align: none; }
.af-home-presentation .afc-carousel .afc-carousel-slide:nth-child(3n + 1) { scroll-snap-align: start; }
.af-home-presentation .afc-carousel .afc-carousel-slide img { height: clamp(127.5px, 21vw, 310px); }
.afc-carousel-fade { display: grid; grid-template-columns: repeat(var(--photos-per-view), minmax(0, 1fr)); }
.afc-carousel-fade img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; border-radius: 0; }
@media (max-width: 600px) {
  .afc-carousel { --photos-per-view: 2; }
  .af-home-presentation .afc-carousel .afc-carousel-slide img { height: clamp(122.5px, 34.5vw, 185px); }
  .af-home-presentation .afc-carousel .afc-carousel-slide:nth-child(3n + 1) { scroll-snap-align: none; }
  .af-home-presentation .afc-carousel .afc-carousel-slide:nth-child(2n + 1) { scroll-snap-align: start; }
}

.afc-carousel-fade { grid-template-rows: minmax(0, 1fr); }

/* Match the carousel frame with a slim divider between slides. */
.afc-carousel-track > .afc-carousel-slide + .afc-carousel-slide::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 2px;
  background-color: var(--afc-nav-trim-red, #b62832);
  pointer-events: none;
}
