/* Active simplified Trendbook. Surrounding section layout remains in page CSS. */
.trendbook-section .trendbook-slideshow {
  --trendbook-ratio: 16 / 9;
  position: relative;
  aspect-ratio: var(--trendbook-ratio);
  isolation: isolate;
}
.trendbook-section .trendbook-slideshow > .trendbook-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}
.trendbook-section .trendbook-link > .trendbook-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.trendbook-section .trendbook-slideshow:not(.trendbook-ready) .trendbook-slide:first-child,
.trendbook-section .trendbook-ready .trendbook-slide.is-active {
  opacity: 1;
}
.trendbook-section .trendbook-ready .trendbook-slide {
  transition: opacity 600ms ease;
}
.trendbook-section .trendbook-link:focus-visible {
  outline: 3px solid white;
  outline-offset: -5px;
}
@media (prefers-reduced-motion: reduce) {
  .trendbook-section .trendbook-ready .trendbook-slide { transition: none; }
}


/* Safari before 15 lacks aspect-ratio; keep the frame from collapsing. */
@supports not (aspect-ratio: 16 / 9) {
  .trendbook-section .trendbook-slideshow::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
}

/* OPTIONAL ORIGINAL CAROUSEL CSS — inactive reference.




.trendbook-section .trendbook-slideshow {
  --trendbook-ratio: 16 / 9;

  position: relative;
  aspect-ratio: var(--trendbook-ratio);
  isolation: isolate;
}



.trendbook-section .trendbook-slideshow > .trendbook-slide {
  position: absolute;
  inset: 0;
  display: block;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}



.trendbook-section
  .trendbook-slideshow:not(.trendbook-ready)
  > .trendbook-slide:first-of-type {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



.trendbook-section .trendbook-ready > .trendbook-slide {
  visibility: visible;
  transition: opacity 600ms ease;
}



.trendbook-section .trendbook-ready > .trendbook-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}



.trendbook-section .trendbook-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.trendbook-section .trendbook-controls {
  display: contents;
}



.trendbook-section .trendbook-slideshow .trendbook-pagination {
  position: absolute;

  top: auto;
  right: auto;
  bottom: 14px;
  left: 50%;

  transform: translateX(-50%);
  z-index: 2;

  box-sizing: content-box;

  width: 120px;
  height: 32px;
  padding: 4px 6px;

  overflow: hidden;
  border-radius: 30px;

  background: rgb(0 0 0 / 72%);
  color: white;
}



.trendbook-section .trendbook-pagination[data-ring]::after {
  content: "";

  position: absolute;
  left: calc(50% - 5px);
  top: calc(50% - 5px);

  width: 10px;
  height: 10px;

  border-radius: 50%;
  background: white;

  pointer-events: none;
}



.trendbook-section .trendbook-dot,
.trendbook-section .trendbook-pause {
  box-sizing: border-box;
  appearance: none;

  width: 24px;
  height: 32px;

  margin: 0;
  padding: 0;
  border: 0;

  background: transparent;
  color: white;

  cursor: pointer;
  font: 12px/1 sans-serif;
}



.trendbook-section .trendbook-slideshow .trendbook-dot {
  position: absolute;

  left: calc(50% - 12px);
  top: calc(50% - 16px);

  display: grid;
  place-items: center;

  transform: translateX(var(--trendbook-x, 0px));

  transition: transform 360ms ease;
}



.trendbook-section .trendbook-dot::before {
  content: "";
  display: block;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: currentColor;

  opacity: var(--trendbook-opacity, 1);
  transform: scale(var(--trendbook-scale, 1));

  transition:
    opacity 360ms ease,
    transform 360ms ease;
}



.trendbook-section .trendbook-slideshow .trendbook-pause {
  position: absolute;

  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;

  transform: none;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  border-radius: 50%;
  background: rgb(0 0 0 / 72%);

  
  font-size: 0;
}



.trendbook-section .trendbook-slideshow .trendbook-pause::before {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 10px;
  height: 12px;

  margin: 0;
  padding: 0;
  border: 0;

  transform: translate(-50%, -50%);

  background: linear-gradient(
    to right,
    currentColor 0 30%,
    transparent 30% 70%,
    currentColor 70% 100%
  );
}



.trendbook-section
  .trendbook-slideshow
  .trendbook-pause[data-trendbook-state="play"]::before {
  width: 12px;
  height: 12px;

  background: currentColor;

  clip-path: polygon(0 0, 100% 50%, 0 100%);

  
  transform: translate(calc(-50% + 2px), -50%);
}



@media (max-width: 600px) {
  .trendbook-section .trendbook-slideshow {
    overflow: visible;
    margin-bottom: 32px;
  }

  
  .trendbook-section .trendbook-slideshow > .trendbook-slide {
    overflow: hidden;
    border-radius: inherit;
  }

  
  .trendbook-section .trendbook-slideshow .trendbook-pagination {
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;

    transform: translateX(-50%);

    background: transparent;
  }
}



.trendbook-section .trendbook-dot.trendbook-rebase,
.trendbook-section .trendbook-dot.trendbook-rebase::before {
  transition: none;
}



.trendbook-section .trendbook-dot:focus-visible,
.trendbook-section .trendbook-pause:focus-visible {
  outline: 2px solid white;
  outline-offset: -3px;
  border-radius: 12px;
}

.trendbook-section .trendbook-slide:focus-visible {
  outline: 3px solid white;
  outline-offset: -5px;
}



.trendbook-section .trendbook-status {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}



.trendbook-section .trendbook-slideshow [hidden] {
  display: none;
}



@media (prefers-reduced-motion: reduce) {
  .trendbook-section .trendbook-ready > .trendbook-slide,
  .trendbook-section .trendbook-slideshow .trendbook-dot,
  .trendbook-section .trendbook-dot::before {
    transition: none;
  }
}

*/
