.main-collection-cover {
  /* no gap between the hero and the products toolbar below */
  margin-block-end: 0;
}

.block-main-collection-banner {
  position: relative;
  margin-block-end: 0;
  overflow: hidden;
  background-color: #1c1b1b;
}

.block-main-collection-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* slightly oversized + shifted for a gentle parallax (driven by JS below) */
  transform: scale(1.12) translateY(var(--banner-parallax, 0));
  will-change: transform;
  /* fade in on load */
  opacity: 0;
  transition: opacity 700ms ease;
}

.block-main-collection-banner.is-loaded img,
.block-main-collection-banner img.is-loaded {
  opacity: 1;
}

/* Dark overlay over the image so the white title stays legible (matches live Image--contrast) */
.block-main-collection-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.block-main-collection-banner__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #ffffff;
}

.block-main-collection-banner__inner > div {
  text-align: center;
}

/* Collection title — match live: small, uppercase, letter-spaced, white */
.block-main-collection-banner__inner > div > div {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ------------------------------------------------------------------ */
/* No collection image: drop the hero box entirely and show the title  */
/* as a compact centered heading (matches the live site).              */
/* ------------------------------------------------------------------ */
.block-main-collection-banner--empty {
  background-color: transparent;
}
.block-main-collection-banner--empty::after {
  display: none;
}
.block-main-collection-banner--empty .block-main-collection-banner__inner {
  position: static;
  height: auto;
  padding-block: 40px;
}
.block-main-collection-banner--empty .block-main-collection-banner__inner > div > div {
  /* On the empty state the title sits on the white page (no dark hero behind
     it), so use the dark text colour to stay legible — matches the live site. */
  color: #1c1b1b;
}
