.pcf-config-gallery {
  width: min(100%, 470px);
}

.pcf-config-gallery .pcf-config-options {
  gap: 5px;
  margin-top: 11px;
}

.pcf-config-gallery .pcf-config-options span {
  min-height: 45px;
  gap: 9px;
  border: 1px solid #a9ada5;
  color: #28352e;
  background: #fcfbf7;
}

.pcf-config-gallery .pcf-config-options input:checked + span {
  border-color: #34413a;
  color: #fffbf0;
  background: linear-gradient(112deg, #293a32, #384740);
}

.pcf-config-gallery .pcf-config-options input:checked + span::before {
  color: #ead4a4;
  box-shadow: inset 0 0 0 2px #314138;
}

.pcf-config-gallery .pcf-config-options input:focus-visible + span {
  outline-offset: -3px;
  outline: 2px solid #9b702f;
}

.pcf-config-gallery .pcf-config-images {
  margin-top: 9px;
}

/* Keep the softbox on the back wall; the light on the floor spans the stage. */
.pcf-studio-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.02;
  background-color: #414344;
  background-image:
    radial-gradient(ellipse at 69% 21%, #a9a79c52 0%, #82878320 32%, transparent 61%),
    linear-gradient(to bottom, transparent 71%, #7c786c0b 78%, #a8a1914a 100%),
    linear-gradient(125deg, #303538 3%, #555954 37%, #484b49 59%, #303536 100%);
  box-shadow: inset 0 0 0 1px #f5e8c927;
}

.pcf-studio-stage::before {
  content: "";
  position: absolute;
  inset: 78% 0 0;
  background: linear-gradient(180deg, transparent, #b5b0a222 10%, #afab9f2b 100%);
}

#pcf-image-spout, #pcf-image-stand-spout {
  --pcf-foot-x: 65.8%;
}

.pcf-studio-product {
  position: absolute;
  top: 2.5%;
  left: 50%;
  height: 95%;
  aspect-ratio: 3 / 4;
  transform: translateX(-50%);
}

/* Coordinates are relative to the 900 × 1200 photograph. The soft edge meets
   the visible bottom at y=1150, including when the stage changes height. */
.pcf-studio-product::before {
  content: "";
  position: absolute;
  left: var(--pcf-foot-x, 48.2%);
  bottom: 3.99%;
  width: 19%;
  height: .8%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #191c19a3, #20241e42 50%, transparent 74%);
}

.pcf-config-gallery .pcf-studio-product img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.pcf-studio-sheen {
  display: none;
}

@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .pcf-studio-sheen {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask: var(--pcf-silhouette) center / contain no-repeat;
    mask: var(--pcf-silhouette) center / contain no-repeat;
  }
}

.pcf-studio-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(110deg, transparent 32%, #fff9e81e 42%, #fffceb93 49%, #fffae52a 56%, transparent 65%);
}

@media (hover: hover) {
  .pcf-config-gallery .pcf-config-options label:hover input:not(:checked) + span {
    border-color: #757d72;
    background: #f1f1ea;
  }
}

@media (min-width: 761px) {
  .pcf-studio-stage { aspect-ratio: .98; }
}

@media (max-width: 760px) and (min-height: 425px) {
  .pcf-studio-stage { max-height: 54vh; max-height: 54svh; }
}

@media (forced-colors: active) {
  .pcf-config-gallery .pcf-config-options input:checked + span { outline: 2px solid Highlight; }
  .pcf-studio-stage { forced-color-adjust: none; }
}
