/* DF Home Banners */
.dfhb {
  max-width: 1620px;
  margin: 0 auto 28px;
  padding: 0 10px;
}
.dfhb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 992px) {
  /* Slider ~75% / side column ~25%, as on the reference layout */
  .dfhb-grid {
    grid-template-columns: minmax(0, 3.1fr) minmax(0, 1fr);
  }
}
.dfhb-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.dfhb-row {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .dfhb-row {
    grid-template-columns: 1fr 1fr;
  }
}
.dfhb picture,
.dfhb img {
  display: block;
  width: 100%;
  height: auto;
}
.dfhb img {
  border-radius: 14px;
}
.dfhb-banner a {
  display: block;
}
@media (max-width: 767px) {
  /* Zones disabled for mobile in the module settings.
     Lazy images inside display:none are never downloaded. */
  .dfhb-no-mobile {
    display: none !important;
  }
}

/* Slider */
.dfhb-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.dfhb-track {
  display: flex;
  will-change: transform;
  transition: transform 0.45s ease;
}
@media (prefers-reduced-motion: reduce) {
  .dfhb-track {
    transition: none;
  }
}
.dfhb-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.dfhb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 30, 60, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 42px;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}
.dfhb-arrow:hover,
.dfhb-arrow:focus-visible {
  background: rgba(20, 30, 60, 0.85);
}
.dfhb-prev {
  left: 10px;
}
.dfhb-next {
  right: 10px;
}
.dfhb-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.dfhb-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.dfhb-dot.is-active {
  background: #fff;
}

/* ------------------------------------------------------------------
   Desktop size options (1.5.0). Everything below is scoped to
   min-width: 992px, the breakpoint where the hero grid becomes two
   columns: phones and tablets keep exactly the rules above.
   ------------------------------------------------------------------ */
@media (min-width: 992px) {
  /* Slider without side banners: use the whole row instead of the 75% column. */
  .dfhb-grid.dfhb-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Custom maximum width (still inside the theme container). */
  .dfhb.dfhb--w-custom {
    max-width: var(--dfhb-maxw, 1620px);
  }

  /* Full width: break out of the theme container to the window edges.
     --dfhb-fw / --dfhb-fl are measured by the inline script (window width
     without scrollbar + section offset); the fallbacks assume a centered container. */
  .dfhb.dfhb--w-full {
    box-sizing: border-box;
    max-width: none;
    width: var(--dfhb-fw, 100vw);
    margin-left: var(--dfhb-fl, calc(50% - 50vw));
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .dfhb.dfhb--w-full .dfhb-slider,
  .dfhb.dfhb--w-full .dfhb-slider img {
    border-radius: 0;
  }

  /* Custom slider height: the image adapts without distortion (object-fit). */
  .dfhb.dfhb--h-custom .dfhb-slider picture {
    height: var(--dfhb-h, 500px);
  }
  .dfhb.dfhb--h-custom .dfhb-slider img {
    width: 100%;
    height: var(--dfhb-h, 500px);
    object-fit: cover;
    object-position: center;
  }
  .dfhb.dfhb--h-custom.dfhb--fit-contain .dfhb-slider img {
    object-fit: contain;
  }
}
