/* Wrapper contains the inner marquee so its 100% width never overflows the page */
.block-slider {
  background-color: var(--wp--preset--color--accent-1);
  padding-bottom: var(--wp--preset--spacing--60);
}

.draggable-marquee {
  /* --u: base width unit. Widths are derived from it via the golden ratio (φ ≈ 1.618).
     The vw term lets the slides scale with the viewport. */
  --u: clamp(12rem, 20vw, 22rem);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex: none;
  width: 100%;
  overflow: hidden;
  cursor: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='80px' height='80px' viewBox='0 0 80 80' version='1.1'%3E%3Cg id='surface1'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(100%25,100%25,100%25);fill-opacity:1;' d='M 80 40 C 80 62.089844 62.089844 80 40 80 C 17.910156 80 0 62.089844 0 40 C 0 17.910156 17.910156 0 40 0 C 62.089844 0 80 17.910156 80 40 Z M 80 40 '/%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(20%25,20%25,20%25);fill-opacity:1;' d='M 48.691406 47.910156 L 47.980469 47.199219 L 55.410156 39.78125 L 47.980469 32.351562 L 48.691406 31.648438 L 56.820312 39.78125 Z M 48.691406 47.910156 '/%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(20%25,20%25,20%25);fill-opacity:1;' d='M 32.421875 47.910156 L 24.289062 39.78125 L 32.421875 31.648438 L 33.128906 32.351562 L 25.710938 39.78125 L 33.128906 47.199219 Z M 32.421875 47.910156 '/%3E%3C/g%3E%3C/svg%3E%0A") 40 40, auto;
}

/* Touch devices have no pointer to decorate — drop the custom cursor */
@media (hover: none) {
  .draggable-marquee {
    cursor: auto;
  }
}

.draggable-marquee__collection {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex: none;
  will-change: transform;
}

.draggable-marquee__list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex: none;
}

.draggable-marquee__item {
  /* Fixed image height; width follows each image's own aspect ratio */
  width: auto;
  height: auto;
  margin-right: 1em;
  flex: none;
  overflow: hidden;
}

/* Golden-ratio width rhythm — repeats every 3 slides, the first is the wide anchor */
.draggable-marquee__item:nth-child(3n + 1) { --slide-w: calc(var(--u) * 1.618); }
.draggable-marquee__item:nth-child(3n + 2) { --slide-w: var(--u); }
.draggable-marquee__item:nth-child(3n)     { --slide-w: calc(var(--u) / 1.618); }

/* Orientation: landscape wider, portrait a bit less wide */
.draggable-marquee__item.is--landscape { --orient: 1.2; }
.draggable-marquee__item.is--portrait  { --orient: 0.8; }
.draggable-marquee__item.is--square    { --orient: 1; }

.draggable-marquee__item.is--round {
  border-radius: 100em;
}

.draggable-marquee__item-img {
  width: auto;
  height: clamp(16rem, 22vw, 26rem);
  display: block;
}

.draggable-marquee__item-description {
  margin: 0.5rem 0 0 !important;
  color: var(--wp--preset--color--current-50);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.3;
}

/* Video (VideoPress) items keep a 16:9 box since they have no intrinsic ratio here */
.draggable-marquee__item figure {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
}

.draggable-marquee__item .wp-block-embed__wrapper,
.draggable-marquee__item [data-videopress] {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.draggable-marquee__item [data-videopress] video,
.draggable-marquee__item [data-videopress] iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

