.cream-gallery main {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.cream-gallery main > section {
  position: relative;
  z-index: 1;
}

.gallery-ephemera {
  --margin-width: max(0px, calc((100% - 1160px) / 2));
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.gallery-ephemera-margin {
  position: absolute;
  inset-block: 0;
  width: var(--margin-width);
  overflow: clip;
}

.gallery-ephemera-left {
  inset-inline-start: 0;
}

.gallery-ephemera-right {
  inset-inline-end: 0;
}

.gallery-ephemera-piece {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.gallery-ephemera-left .gallery-ephemera-piece {
  inset-inline-end: 0;
}

.gallery-ephemera-right .gallery-ephemera-piece {
  inset-inline-start: 0;
}

.gallery-ephemera-flowers {
  width: clamp(210px, 24vw, 365px);
  opacity: 0.42;
}

.gallery-ephemera-left .gallery-ephemera-flowers {
  inset-block-start: 30px;
}

.gallery-ephemera-right .gallery-ephemera-flowers {
  inset-block-start: 740px;
  transform: scaleX(-1);
}

.gallery-ephemera-ferns {
  width: clamp(160px, 19vw, 300px);
  opacity: 0.28;
}

.gallery-ephemera-right .gallery-ephemera-ferns {
  inset-block-start: 94px;
}

.gallery-ephemera-left .gallery-ephemera-ferns {
  inset-block-end: 35px;
  transform: scaleX(-1);
}

.gallery-ephemera-bust {
  inset-block-start: 645px;
  width: clamp(155px, 16vw, 250px);
  opacity: 0.38;
}

@media (max-width: 1220px) {
  .gallery-ephemera {
    display: none;
  }

  .cream-gallery main {
    overflow: visible;
  }
}
