.df-hc {
  --df-hc-max-w: 620px;
  --df-hc-height: 570px;
  --df-hc-brightness: 1.06;
  --df-hc-contrast: .94;
  --df-hc-saturation: 1.28;
  --df-hc-sepia: .28;
  --df-hc-hue: -16deg;
  --df-hc-duration: 320ms;
  --df-hc-mobile-width: 86%;
  --df-hc-mobile-gap: 22px;
  --df-hc-mobile-image-h: 290px;
  --df-hc-dot: rgba(255, 255, 255, .38);
  --df-hc-dot-active: #fff;
  box-sizing: border-box;
  width: 100%;
}

.df-hc,
.df-hc * {
  box-sizing: border-box;
}

.df-hc__track {
  height: var(--df-hc-height);
  margin: 0 auto;
  max-width: var(--df-hc-max-w);
  overflow: visible;
  position: relative;
  width: 100%;
}

.df-hc__item {
  left: var(--df-hc-item-x);
  margin: 0;
  position: absolute;
  top: var(--df-hc-item-y);
  transform: rotate(var(--df-hc-item-r));
  transform-origin: center;
  width: var(--df-hc-item-w);
  z-index: var(--df-hc-item-z);
}

.df-hc__visual {
  position: relative;
  width: 100%;
}

.df-hc__image {
  display: block;
  filter: brightness(1) contrast(1) saturate(1) sepia(0) hue-rotate(0deg);
  height: auto;
  max-width: none;
  pointer-events: none;
  transition: filter var(--df-hc-duration) ease, transform var(--df-hc-duration) ease;
  user-select: none;
  width: 100%;
}

.df-hc__item:hover .df-hc__image,
.df-hc__item:focus-within .df-hc__image,
.df-hc__item.is-builder-editing .df-hc__image {
  filter:
    brightness(var(--df-hc-brightness))
    contrast(var(--df-hc-contrast))
    saturate(var(--df-hc-saturation))
    sepia(var(--df-hc-sepia))
    hue-rotate(var(--df-hc-hue));
}

.df-hc__copy {
  align-items: flex-end;
  bottom: var(--df-hc-content-bottom);
  color: #fff;
  display: flex;
  gap: 12px;
  max-width: 92%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: var(--df-hc-content-right);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .44);
  transform: translateY(8px);
  transition: opacity var(--df-hc-duration) ease, transform var(--df-hc-duration) ease;
  visibility: hidden;
  z-index: 3;
}

.df-hc__item:hover .df-hc__copy,
.df-hc__item:focus-within .df-hc__copy,
.df-hc__item.is-builder-editing .df-hc__copy {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.df-hc__date {
  color: inherit;
  flex: 0 0 auto;
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 64px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .82;
}

.df-hc__description {
  color: inherit;
  font-size: clamp(13px, 1.8vw, 17px);
  line-height: 1.12;
  margin: 0;
  max-width: 230px;
  padding: 0;
  text-align: left;
}

.df-hc__item.has-custom-content-width .df-hc__copy {
  max-width: none;
}

.df-hc__item.has-custom-content-width .df-hc__description {
  flex: 0 0 var(--df-hc-content-w);
  max-width: var(--df-hc-content-w);
  width: var(--df-hc-content-w);
}

.df-hc__placeholder {
  align-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed currentColor;
  display: flex;
  justify-content: center;
  opacity: .55;
  width: 100%;
}

.df-hc__dots {
  display: none;
}

@media (max-width: 980px) {
  .df-hc__track {
    display: flex;
    gap: var(--df-hc-mobile-gap);
    height: auto;
    margin: 0;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 calc((100% - var(--df-hc-mobile-width)) / 2);
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    width: 100%;
  }

  .df-hc__track::-webkit-scrollbar {
    display: none;
  }

  .df-hc__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .df-hc__item {
    display: flex;
    flex: 0 0 var(--df-hc-mobile-width);
    flex-direction: column;
    left: auto;
    position: relative;
    scroll-snap-align: center;
    top: auto;
    transform: none;
    width: var(--df-hc-mobile-width);
    z-index: auto;
  }

  .df-hc__visual {
    align-items: center;
    display: flex;
    height: var(--df-hc-mobile-image-h);
    justify-content: center;
  }

  .df-hc__image {
    filter: none !important;
    height: 100%;
    object-fit: contain;
    width: 100%;
  }

  .df-hc__copy {
    bottom: auto;
    display: block;
    max-width: none;
    opacity: 1;
    padding: 10px 16px 0;
    pointer-events: auto;
    position: static;
    right: auto;
    text-align: center;
    text-shadow: none;
    transform: none;
    visibility: visible;
  }

  .df-hc__date {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 54px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
  }

  .df-hc__description {
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
    margin: 4px auto 0;
    max-width: 270px;
    padding: 0;
    text-align: center;
  }

  .df-hc__item.has-custom-content-width .df-hc__description {
    max-width: var(--df-hc-content-w);
    width: var(--df-hc-content-w);
  }

  .df-hc__dots {
    align-items: center;
    display: flex;
    gap: 11px;
    justify-content: center;
    margin-top: 34px;
  }

  .df-hc__dot {
    appearance: none;
    background: var(--df-hc-dot);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    margin: 0;
    padding: 0;
    transition: background-color .2s ease, box-shadow .2s ease;
    width: 10px;
  }

  .df-hc__dot.is-active {
    background: var(--df-hc-dot-active);
    box-shadow: 0 0 0 2px transparent, 0 0 0 3px var(--df-hc-dot-active);
  }
}

@media (prefers-reduced-motion: reduce) {
  .df-hc__image,
  .df-hc__copy,
  .df-hc__track,
  .df-hc__ring {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Exact Badia reference composition. The custom preset continues to use the
   original position controls above. */
.df-hc--reference {
  max-width: none;
  width: 100%;
}

.df-hc--reference .df-hc__track {
  height: 691px;
  margin: 0;
  max-width: none;
  transform: scale(var(--df-hc-stage-scale, 1));
  transform-origin: left top;
  width: 553px;
}

.df-hc--reference .df-hc__item {
  cursor: pointer;
  height: var(--df-hc-item-h);
  transform: none;
}

.df-hc--reference .df-hc__item:hover,
.df-hc--reference .df-hc__item:focus-within,
.df-hc--reference .df-hc__item.is-builder-editing {
  filter: none;
  transform: none;
}

.df-hc--reference .df-hc__visual {
  transition: filter .6s ease-out, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.df-hc--reference .df-hc__item:hover .df-hc__visual,
.df-hc--reference .df-hc__item:focus-within .df-hc__visual,
.df-hc--reference .df-hc__item.is-builder-editing .df-hc__visual {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .25));
  transform: translateY(-6px) rotate(-1deg);
}

.df-hc--reference .df-hc__item:nth-child(3):hover .df-hc__visual,
.df-hc--reference .df-hc__item:nth-child(3):focus-within .df-hc__visual,
.df-hc--reference .df-hc__item:nth-child(3).is-builder-editing .df-hc__visual {
  transform: translateY(-6px) rotate(1.5deg);
}

.df-hc--reference .df-hc__visual,
.df-hc--reference .df-hc__image--base,
.df-hc--reference .df-hc__image--hover {
  height: 100%;
}

.df-hc__image--hover {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .3s ease-out;
}

.df-hc__image--mobile {
  display: none;
}

.df-hc__item.has-hover-image:hover .df-hc__image--hover,
.df-hc__item.has-hover-image:focus-within .df-hc__image--hover,
.df-hc__item.has-hover-image.is-builder-editing .df-hc__image--hover {
  filter: none;
  opacity: 1;
}

.df-hc__item.has-hover-image:hover .df-hc__image--base,
.df-hc__item.has-hover-image:focus-within .df-hc__image--base,
.df-hc__item.has-hover-image.is-builder-editing .df-hc__image--base {
  filter: none;
}

.df-hc--reference .df-hc__copy {
  bottom: auto;
  display: block;
  height: 80px;
  left: var(--df-hc-copy-x);
  max-width: none;
  right: auto;
  text-shadow: none;
  top: var(--df-hc-copy-y);
  transform: none;
  transition: none;
  width: 300px;
}

.df-hc--reference .df-hc__item:hover .df-hc__copy,
.df-hc--reference .df-hc__item:focus-within .df-hc__copy,
.df-hc--reference .df-hc__item.is-builder-editing .df-hc__copy {
  transform: none;
}

.df-hc__date-image {
  display: block;
  height: var(--df-hc-date-h, auto);
  max-width: none;
  width: var(--df-hc-date-w, auto);
}

.df-hc--reference .df-hc__date-image {
  opacity: 0;
  transform: translateY(12px) rotate(-4deg);
  transition: opacity .3s ease-out, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.df-hc--reference .df-hc__description {
  left: calc(var(--df-hc-date-w) + 11px);
  opacity: 0;
  position: absolute;
  top: 8px;
  transform: translateX(-10px);
  transition: opacity .3s ease-out .08s, transform .45s cubic-bezier(.16, 1, .3, 1) .08s;
}

.df-hc--reference .df-hc__item:nth-child(3) .df-hc__description {
  left: 10.6px;
  top: 56.6px;
}

.df-hc--reference .df-hc__item:hover .df-hc__date-image,
.df-hc--reference .df-hc__item:focus-within .df-hc__date-image,
.df-hc--reference .df-hc__item.is-builder-editing .df-hc__date-image,
.df-hc--reference .df-hc__item:hover .df-hc__description,
.df-hc--reference .df-hc__item:focus-within .df-hc__description,
.df-hc--reference .df-hc__item.is-builder-editing .df-hc__description {
  opacity: 1;
  transform: none;
}

.df-hc--reference .df-hc__description {
  flex: 0 0 177px;
  font: 400 16px/15.84px Outfit, sans-serif;
  max-width: 177px;
  width: 177px;
}

.df-hc--reference .df-hc__item.has-custom-content-width .df-hc__description {
  flex-basis: 177px;
  max-width: 177px;
  width: 177px;
}

.df-hc__ring {
  display: none;
}

@media (max-width: 980px) {
  .df-hc--reference {
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .df-hc--reference .df-hc__track {
    gap: 0;
    height: 376px;
    margin: 0;
    max-width: none;
    padding: 0 36.5px;
    position: absolute;
    left: 0;
    top: 0;
    transform: scale(var(--df-hc-stage-scale, 1));
    transform-origin: left top;
    width: 402px;
  }

  .df-hc--reference .df-hc__item {
    filter: none !important;
    flex: 0 0 329px;
    height: 376px;
    margin-right: -46px;
    transform: none !important;
    width: 329px;
  }

  .df-hc--reference .df-hc__item:last-child {
    margin-right: 0;
  }

  .df-hc--reference .df-hc__visual {
    display: block;
    height: 253px;
    position: relative;
  }

  .df-hc--reference .df-hc__image--base,
  .df-hc--reference .df-hc__image--hover {
    display: none;
  }

  .df-hc--reference .df-hc__image--mobile {
    display: block;
    filter: none !important;
    height: auto;
    max-width: none;
    object-fit: fill;
    position: absolute;
  }

  .df-hc--reference .df-hc__item:nth-child(1) .df-hc__image--mobile {
    height: 245px;
    left: 0;
    top: 8px;
    width: 329px;
  }

  .df-hc--reference .df-hc__item:nth-child(2) .df-hc__image--mobile {
    height: 242px;
    left: 41px;
    top: 0;
    width: 247px;
  }

  .df-hc--reference .df-hc__item:nth-child(3) .df-hc__image--mobile {
    height: 245px;
    left: 39.5px;
    top: 4px;
    width: 250px;
  }

  .df-hc--reference .df-hc__copy,
  .df-hc--reference .df-hc__item.is-reference-item .df-hc__copy {
    align-items: center;
    bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    height: auto;
    left: 0;
    opacity: 1;
    padding: 3.6px 0 0;
    position: absolute;
    right: auto;
    top: 253px;
    transform: none;
    visibility: visible;
    width: 329px;
  }

  .df-hc--reference .df-hc__item:not(.is-active) .df-hc__copy {
    opacity: 0;
    visibility: hidden;
  }

  .df-hc--reference .df-hc__item.is-active .df-hc__copy {
    opacity: 1;
    visibility: visible;
  }

  .df-hc--reference .df-hc__date-image,
  .df-hc--reference .df-hc__description,
  .df-hc--reference .df-hc__item:nth-child(3) .df-hc__description {
    left: auto;
    opacity: 1;
    position: static;
    top: auto;
    transform: none;
    transition: none;
  }

  .df-hc--reference .df-hc__date-image {
    height: var(--df-hc-mobile-date-h, 54.3px);
    object-fit: contain;
    width: var(--df-hc-mobile-date-w, auto);
  }

  .df-hc--reference .df-hc__description,
  .df-hc--reference .df-hc__item.has-custom-content-width .df-hc__description {
    flex-basis: auto;
    font: 400 16px/15.84px Outfit, sans-serif;
    margin: 0 auto;
    max-width: 177px;
    text-align: center;
    width: 177px;
  }

  .df-hc--reference .df-hc__dots {
    gap: 11.25px;
    height: 15.9px;
    left: 0;
    margin: 0;
    position: absolute;
    top: var(--df-hc-dots-top, 385px);
    transform: scale(var(--df-hc-stage-scale, 1));
    transform-origin: left top;
    width: 402px;
  }

  .df-hc--reference .df-hc__dot {
    box-shadow: none;
    height: 10.6px;
    opacity: .36;
    transition: opacity .3s ease-out;
    width: 10.6px;
  }

  .df-hc--reference .df-hc__dot.is-active {
    box-shadow: none;
    opacity: 1;
  }

  .df-hc--reference .df-hc__ring {
    border: 1px solid var(--df-hc-dot-active);
    border-radius: 50%;
    display: block;
    height: 15.9px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    translate: var(--df-hc-ring-x, 171.2px) 0;
    transition: translate .55s cubic-bezier(.16, 1, .3, 1);
    width: 15.9px;
  }

  .df-hc--reference .df-hc__item.is-active .df-hc__image--mobile {
    animation: df-hc-card-in 1s cubic-bezier(.16, 1, .3, 1);
  }
}

@keyframes df-hc-card-in {
  from { transform: translateY(-10px) rotate(-2.5deg) scale(.96); }
  to { transform: none; }
}
