.hb-stockmann-block {
  --hb-main-ratio: 16 / 9;
  --hb-main-w: 16fr;
  --hb-main-h: 9fr;
  --hb-gap: 6px;
  --hb-bg: #f2f2f2;
  --hb-fit: contain;
  --hb-overlay: .3;
  --hb-item-overlay: var(--hb-overlay);
  --hb-radius: 0;
  --hb-padding: 0;
  --hb-title-size: 28px;
  --hb-title-weight: 800;
  --hb-title-color: #fff;
  --hb-text-size: 16px;
  --hb-text-color: #fff;
  --hb-button-color: #d31c72;
  --hb-button-hover: #b71460;
  --hb-button-text-size: 16px;
  box-sizing: border-box;
  display: grid;
  gap: var(--hb-gap);
  grid-template-columns: minmax(0, var(--hb-main-w)) minmax(0, var(--hb-main-h));
  margin: 0 auto;
  max-width: 1800px;
  padding: var(--hb-padding);
  width: 100%;
}

.hb-layout-slider {
  grid-template-columns: 1fr;
}

.hb-layout-slider .hb-main-slider {
  width: 100%;
}

.hb-stockmann-block *,
.hb-stockmann-block *::before,
.hb-stockmann-block *::after {
  box-sizing: border-box;
}

.hb-main-slider,
.hb-category-grid,
.hb-main-slide,
.hb-category-tile {
  min-width: 0;
}

.hb-main-slider {
  aspect-ratio: var(--hb-main-ratio);
  background: var(--hb-bg);
  border-radius: var(--hb-radius);
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.hb-main-slide,
.hb-category-tile {
  background: var(--hb-tile-bg, var(--hb-bg));
  color: inherit;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.hb-main-slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .28s ease;
}

.hb-main-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hb-main-slide::after,
.hb-category-tile::after {
  background: linear-gradient(to top, rgba(0, 0, 0, var(--hb-item-overlay)) 0%, rgba(0, 0, 0, 0) 55%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hb-main-slide img,
.hb-category-tile img {
  display: block;
  height: 100%;
  object-fit: var(--hb-fit);
  object-position: center;
  transition: transform .35s ease;
  width: 100%;
}

.hb-html,
.hb-image-placeholder {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 100%;
  width: 100%;
}

.hb-image-placeholder {
  background: repeating-linear-gradient(45deg, #eceff2, #eceff2 10px, #f7f8f9 10px, #f7f8f9 20px);
}

.hb-category-grid {
  display: grid;
  gap: var(--hb-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-category-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--hb-radius);
}

.hb-main-slide.has-zoom:hover img,
.hb-category-tile.has-zoom:hover img {
  transform: scale(1.04);
}

.hb-caption {
  color: var(--hb-text-color);
  display: grid;
  gap: 10px;
  max-width: min(86%, 560px);
  padding: clamp(14px, 3vw, 42px);
  position: absolute;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .28);
  z-index: 2;
}

.hb-caption-title {
  color: var(--hb-title-color);
  font-size: clamp(16px, 2.1vw, var(--hb-title-size));
  font-weight: var(--hb-title-weight);
  line-height: 1.05;
}

.hb-caption-main .hb-caption-title {
  font-size: clamp(24px, 3vw, calc(var(--hb-title-size) * 1.35));
}

.hb-caption-text {
  color: var(--hb-text-color);
  font-size: clamp(13px, 1.2vw, var(--hb-text-size));
  line-height: 1.25;
}

.hb-caption-button {
  align-self: start;
  background: var(--hb-button-color);
  color: #fff;
  display: inline-block;
  font-size: var(--hb-button-text-size);
  font-weight: 700;
  line-height: 1.2;
  padding: .7em 1.4em;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.hb-caption-button:hover {
  background: var(--hb-button-hover);
  color: #fff;
}

.hb-button-rounded .hb-caption-button {
  border-radius: 999px;
}

.hb-button-straight .hb-caption-button {
  border-radius: 0;
}

.hb-button-skewed .hb-caption-button {
  transform: skewX(-10deg);
}

.hb-button-skewed .hb-caption-button:hover {
  transform: skewX(-10deg) translateY(-1px);
}

.hb-pos-top-left { left: 0; top: 0; }
.hb-pos-top-center { left: 50%; text-align: center; top: 0; transform: translateX(-50%); }
.hb-pos-top-right { right: 0; text-align: right; top: 0; }
.hb-pos-middle-left { left: 0; top: 50%; transform: translateY(-50%); }
.hb-pos-middle-center { left: 50%; text-align: center; top: 50%; transform: translate(-50%, -50%); }
.hb-pos-middle-right { right: 0; text-align: right; top: 50%; transform: translateY(-50%); }
.hb-pos-bottom-left { bottom: 0; left: 0; }
.hb-pos-bottom-center { bottom: 0; left: 50%; text-align: center; transform: translateX(-50%); }
.hb-pos-bottom-right { bottom: 0; right: 0; text-align: right; }

.hb-slider-dots {
  bottom: 14px;
  display: flex;
  gap: 8px;
  left: 18px;
  position: absolute;
  z-index: 3;
}

.hb-slider-dots button {
  background: rgba(0, 0, 0, .72);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 6px;
  padding: 0;
  width: 6px;
}

.hb-slider-dots button.is-active {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .45);
}

@media (max-width: 900px) {
  .hb-stockmann-block {
    grid-template-columns: 1fr;
  }

  .hb-caption {
    padding: 14px;
  }

  .hb-caption-title {
    font-size: clamp(16px, 5vw, 28px);
  }

  .hb-caption-main .hb-caption-title {
    font-size: clamp(22px, 7vw, 36px);
  }
}

@media (max-width: 480px) {
  .hb-caption-text,
  .hb-caption-button {
    display: none;
  }
}
