.product-gallery {
  display: block;
  padding: 24px;
}

.product-gallery-stack {
  display: grid;
  gap: 16px;
}

.product-gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f3f1ed;
  cursor: zoom-in;
}

.product-gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .45s ease;
}

.product-gallery-photo span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}

.product-detail-copy {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .product-detail-copy {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .product-gallery {
    padding: 10px;
  }

  .product-gallery-stack {
    gap: 10px;
  }

  .product-gallery-photo {
    min-height: 0;
    aspect-ratio: 1 / 1.12;
  }

  .product-gallery-photo span {
    left: 12px;
    bottom: 12px;
  }
}

/* Videos of the product (from Shopify): poster with a play button, controls once started */
.product-gallery-video {
  cursor: pointer;
}

.product-gallery-video video,
.product-gallery-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #f3f1ed;
}

.product-gallery-video img {
  mix-blend-mode: normal;
}

.product-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, .08);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  cursor: pointer;
}

.product-video-play i {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  transition: transform .25s ease;
}

.product-video-play i::before {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--navy, #0f1a2e);
}

.product-video-play:hover i,
.product-video-play:focus-visible i {
  transform: scale(1.06);
}

.product-gallery-video.playing .product-video-play {
  display: none;
}
