.site #gallery:has(.showroom-ring) {
  isolation: isolate;
  overflow: clip;
  padding-block-start: clamp(2.05rem, 3.75vw, 3.25rem);
}

.site #gallery:has(.showroom-ring)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 12% at 50% 78%, #bd92552b, transparent 100%),
    radial-gradient(ellipse 51% 32% at 50% 55%, #b5925a19, transparent 100%),
    radial-gradient(ellipse 77% 46% at 50% 56%, #101812a3, transparent 100%);
  pointer-events: none;
  content: "";
}

.site #gallery .showroom-ring {
  --showroom-cover-width: clamp(12rem, 38%, 27rem);
  --showroom-radius-scale: .665;
  --showroom-camera-pitch: 22deg;
  --showroom-visible-slots: 9;
  --showroom-front-line: 57%;
  position: relative;
  display: block;
  width: min(100%, 75rem);
  height: clamp(19rem, 36vw, 29.5rem);
  margin: clamp(1.5rem, 2.9vw, 2.55rem) auto 0;
  perspective: clamp(450px, 70vw, 920px);
  perspective-origin: 50% var(--showroom-front-line);
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}

.site #gallery .showroom-ring.is-dragging,
.site #gallery .showroom-ring.is-dragging .zf-album-card {
  cursor: grabbing;
}

.site #gallery .showroom-ring > .zf-album-card {
  position: absolute;
  z-index: var(--showroom-layer, 0);
  inset: var(--showroom-front-line) auto auto 50%;
  isolation: auto;
  display: block;
  width: var(--showroom-cover-width);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: clamp(3px, .45vw, 6px);
  background: #2e3428;
  box-shadow: 0 .85rem 2.5rem #11170e8c, 0 0 0 .65px #e4c28e4a;
  opacity: var(--showroom-opacity, 1);
  transform: var(--showroom-pose, translate(-50%, -50%)) !important;
  translate: none !important;
  transition: none;
  cursor: pointer;
}

.site #gallery .showroom-ring > .zf-album-card[aria-current="true"] {
  box-shadow:
    0 1.25rem 3rem #090e08a8,
    0 -.22rem 1.55rem #d5a76622,
    0 0 0 .75px #edd09b75;
}

.site #gallery .showroom-ring > .showroom-outside-ring {
  display: none;
}

.site #gallery .showroom-ring.is-moving > .zf-album-card {
  will-change: transform, opacity;
}

.site #gallery .showroom-ring > .zf-album-card > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
  object-fit: cover;
  box-shadow: none;
  scale: 1;
  filter: brightness(var(--showroom-brightness, 1)) saturate(var(--showroom-saturation, 1))
    blur(var(--showroom-softness, 0px));
  transition: none;
  pointer-events: none;
}

.site #gallery .showroom-ring > .zf-album-card .zf-album-info {
  display: none;
}

.site #gallery .showroom-ring > .zf-album-card::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px #ffe4b35c;
  pointer-events: none;
  content: "";
}

.site #gallery .showroom-ring > .zf-album-card::after {
  z-index: -1;
  inset: calc(100% + 7px) 0 auto;
  height: 100%;
  background: var(--showroom-cover, none) center / cover no-repeat;
  filter: brightness(.62) saturate(.67) blur(1.1px);
  mask-image: linear-gradient(transparent 76%, #0006 91%, #000c);
  pointer-events: none;
  opacity: var(--showroom-reflection, 0);
  transform: scaleY(-1);
  transition: none;
}

.site #gallery .showroom-album-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 3vw, 2.5rem);
  width: min(100%, 38rem);
  margin: clamp(.4rem, 1.1vw, 1rem) auto 0;
}

.site #gallery .showroom-album-caption {
  display: grid;
  justify-items: center;
  gap: .36rem;
  text-align: center;
}

.site #gallery .showroom-album-caption strong {
  color: var(--showroom-ivory);
  font: 400 clamp(1.2rem, 2.6vw, 1.85rem)/1.2 "Playfair Display", Georgia, serif;
  text-wrap: balance;
}

.site #gallery .showroom-album-caption span {
  color: var(--showroom-gold);
  font-size: .82rem;
  line-height: 1.4;
}

.site #gallery .showroom-album-arrow {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #e4c28e5c;
  border-radius: 50%;
  background: #242c20;
  color: var(--showroom-gold);
  font: 400 1.45rem/1 Georgia, serif;
  cursor: pointer;
}

.site #gallery .showroom-album-arrow:is(:hover, :focus-visible) {
  color: var(--showroom-shadow);
  background: var(--showroom-gold);
}

.site #gallery .showroom-album-arrow:disabled {
  visibility: hidden;
}

@media (min-width: 721px) and (max-height: 840px) {
  .site #gallery:has(.showroom-ring) {
    padding-block-start: clamp(1.75rem, 3vw, 2.6rem);
  }

  .site #gallery .showroom-ring {
    height: clamp(17rem, 31.5vw, 27rem);
  }

  .site #gallery .showroom-album-controls {
    margin-top: .5rem;
  }
}

@media (max-width: 720px) {
  .site #gallery .showroom-ring {
    --showroom-cover-width: clamp(8rem, 48%, 16rem);
    --showroom-radius-scale: .695;
    --showroom-camera-pitch: 24deg;
    --showroom-visible-slots: 8;
    --showroom-front-line: 55%;
    height: clamp(16rem, 68vw, 22rem);
    margin-top: 1.6rem;
    perspective: clamp(310px, 95vw, 575px);
  }

  .site #gallery .showroom-ring > .zf-album-card {
    aspect-ratio: 1;
  }

  .site #gallery .showroom-album-caption span {
    font-size: .78rem;
  }

  .site #gallery .showroom-album-arrow {
    width: 2.75rem;
    height: 2.75rem;
  }
}
