/* Keep the revealed hero and its product renders from being cropped. */
.mark-film-hero.is-revealed {
  height: auto !important;
  min-height: 100svh;
  overflow: visible;
}

.mark-film-hero.is-revealed .mark-hero-reveal {
  position: relative;
  inset: auto;
  min-height: 100svh;
  overflow: visible;
}

.mark-film-hero.is-revealed .mark-hero-reveal-inner {
  display: grid;
  width: min(100%, 1440px);
  height: auto;
  min-height: calc(100svh - var(--nav-height));
  grid-template-rows: minmax(0, 1fr) auto;
}

.mark-film-hero.is-revealed .mark-hero-product-gallery {
  width: 100%;
  overflow: visible;
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure {
  width: 100%;
  height: auto;
  min-height: 190px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mark-film-hero.is-revealed .mark-hero-product-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

@media (max-width: 900px) {
  .mark-film-hero.is-revealed .mark-hero-reveal-inner {
    grid-template-rows: auto auto;
  }

  .mark-film-hero.is-revealed .mark-hero-product-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78vw);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .mark-film-hero.is-revealed .mark-hero-product-gallery figure {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* Consistent campaign tiles for every hero jewellery form. */
.mark-film-hero.is-revealed .mark-hero-product-gallery {
  gap: clamp(.65rem, 1.2vw, 1rem);
  padding: 0 clamp(.65rem, 1.2vw, 1rem) clamp(1rem, 2vw, 1.5rem);
  overflow: visible;
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(159, 174, 142, .08);
  background:
    radial-gradient(circle at 50% 45%, rgba(230, 198, 135, .34) 0%, rgba(230, 198, 135, .12) 34%, transparent 64%),
    linear-gradient(145deg, #fbf8f1 0%, #eee7da 100%);
  box-shadow: 0 18px 38px rgba(63, 75, 54, .13);
}

.mark-film-hero.is-revealed .mark-hero-product-gallery img {
  position: relative;
  z-index: 1;
  padding: clamp(.35rem, .8vw, .75rem);
  filter: drop-shadow(0 16px 13px rgba(107, 76, 20, .2));
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure:nth-child(1) img {
  transform: scale(1.04);
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure:nth-child(2) img {
  transform: scale(1.08);
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure:nth-child(3) img {
  transform: scale(1.14);
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure:nth-child(4) img {
  transform: scale(1.55);
}

.mark-film-hero.is-revealed .mark-hero-product-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
}

.mark-film-hero.is-revealed .mark-hero-product-gallery figure:has(.mark-hero-product-link):hover {
  border-color: rgba(183, 140, 20, .26);
  box-shadow: 0 22px 46px rgba(89, 65, 20, .18);
}
