.gallery-carousel.is-enhanced {
  display: grid;
  grid-template-columns: clamp(12.7rem, 21vw, 16rem) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.4rem, 4vw, 4rem);
  margin-top: 2.4rem;
  padding-block: 1rem;
}
.gallery-categories {
  align-self: center;
  display: grid;
  border-block: 1px solid var(--line);
}
.gallery-category {
  min-height: 52px;
  padding: .66rem .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border: none;
  border-left: 2px solid transparent;
  font-size: .81rem;
}
.gallery-category + .gallery-category { border-top: 1px solid #cdb28b20; }
.gallery-category svg { flex: 0 0 24px; color: var(--gold); }
.gallery-category[aria-pressed="true"] {
  color: var(--cream);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, #a7824836, #a7824808);
}
.gallery-category:focus-visible { outline-offset: -3px; }
.gallery-display { min-width: 0; }
.is-enhanced .gallery-viewport {
  --card-size: min(58%, 590px);
  --ring-depth: min(64cqw, 650px);
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1.97;
  min-height: 335px;
  perspective: 1000px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, #4b3831 0%, #211915 48%, transparent 75%);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.is-enhanced .gallery-ring {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--ring-depth))) rotateY(var(--gallery-spin, 0deg));
  transition: transform 780ms cubic-bezier(.22,.74,.19,1);
  margin: 0;
}
.is-enhanced .gallery-ring .work {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-size);
  backface-visibility: hidden;
  transform: translate(-50%, -50%) rotateY(var(--gallery-angle)) translateZ(var(--ring-depth));
  pointer-events: none;
  filter: brightness(.48) saturate(.73);
  transition: filter 500ms ease;
}
.is-enhanced .gallery-ring .work.is-current { filter: none; pointer-events: auto; }
.is-enhanced .gallery-ring .work a {
  padding: .43rem;
  background: #1c1510;
  border-color: #9b774a;
  box-shadow: 0 18px 35px #08060587;
}
.is-enhanced .gallery-ring .work.is-current a:hover { border-color: var(--gold); }
.is-enhanced .gallery-ring .art-frame {
  aspect-ratio: 1.7;
  background: #201913;
}
.is-enhanced .gallery-ring img { object-fit: cover; }
.is-enhanced .gallery-ring .art-frame::after, .is-enhanced .gallery-ring .art-frame .arrow { display: none; }
.is-enhanced .gallery-ring .work h3 {
  font-size: clamp(1.35rem, 3vw, 2.7rem);
  margin: .48rem .45rem .25rem;
  line-height: 1;
}
.is-enhanced .gallery-ring .work p { margin: 0 .45rem .2rem; }
.gallery-steps {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: .7rem;
  align-items: center;
  margin: .4rem auto 0;
  width: min(92%, 590px);
}
.gallery-step {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--line);
  background: #211911;
  color: var(--gold);
}
.gallery-step:hover { border-color: var(--gold); }
.gallery-enter {
  justify-self: center;
  text-align: center;
  padding: .35rem .12rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
}
.gallery-enter:hover { color: var(--cream); border-color: currentColor; }
.gallery-enter .arrow { margin-left: .4rem; }
.gallery-picker { display: none; }
@media (max-width: 740px) {
  .gallery-carousel.is-enhanced {
    display: block;
    margin-top: 1.35rem;
    padding-block: 0;
  }
  .gallery-categories { display: none; }
  .gallery-picker {
    display: grid;
    gap: .4rem;
    margin-bottom: .8rem;
    color: var(--muted);
    font-size: .8rem;
  }
  .gallery-picker select {
    width: 100%;
    min-height: 44px;
    padding: .5rem .65rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #211911;
    color: var(--cream);
    font-size: 1rem;
  }
  .is-enhanced .gallery-viewport {
    min-height: 0;
    aspect-ratio: auto;
    perspective: none;
    background: none;
    mask-image: none;
    touch-action: pan-y pinch-zoom;
  }
  .is-enhanced .gallery-ring {
    position: static;
    transform: none;
    transition: none;
  }
  .is-enhanced .gallery-ring .work {
    display: none;
    position: static;
    width: 100%;
    transform: none;
  }
  .is-enhanced .gallery-ring .work.is-current { display: block; }
  .is-enhanced .gallery-ring .work a { box-shadow: none; }
  .is-enhanced .gallery-ring .art-frame { aspect-ratio: 4 / 3; }
  .is-enhanced .gallery-ring img { object-fit: contain; }
  .is-enhanced .gallery-ring .work h3 {
    font-size: clamp(1.0625rem, 3.3vw, 1.25rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .gallery-steps {
    width: 100%;
    margin-top: .7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-enhanced .gallery-ring, .is-enhanced .gallery-ring .work { transition: none; }
}
