.about-image.wardrobe-gallery {
  height: auto;
  overflow: visible;
  min-width: 0;
  background: #181611;
}

.wardrobe-gallery [hidden] { display: none !important; }

.gallery-viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  animation: gallery-arrive .3s ease-out;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

.gallery-note {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 10px;
  font-size: 11px;
  color: #f1e7d5;
  background: rgb(17 16 14 / 75%);
  border: 1px solid rgb(215 183 126 / 25%);
  pointer-events: none;
}

.gallery-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.gallery-arrow,
.gallery-dot {
  appearance: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.gallery-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgb(17 16 14 / 74%);
  color: #efcf95;
  border: 1px solid rgb(215 183 126 / 70%);
  border-radius: 50%;
  box-shadow: 0 3px 16px rgb(0 0 0 / 24%);
  pointer-events: auto;
  transition: background .2s, box-shadow .2s;
}

.gallery-arrow svg { width: 20px; height: 20px; }

.gallery-arrow:is(:hover, :active) {
  background: #3b2f1c;
  box-shadow: 0 0 20px rgb(215 183 126 / 20%);
}

.gallery-arrow:focus-visible,
.gallery-dot:focus-visible,
.wardrobe-gallery:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.gallery-dots {
  position: absolute;
  bottom: 7px;
  inset-inline: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.gallery-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 10px;
  background: #e4d7be;
  box-shadow: 0 0 0 2px rgb(17 16 14 / 45%);
  transition: width .2s, background .2s, box-shadow .2s;
}

.gallery-dot[aria-pressed="true"]::before {
  width: 20px;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgb(17 16 14 / 50%), 0 0 10px rgb(215 183 126 / 30%);
}

@keyframes gallery-arrive {
  from { opacity: .45; }
  to { opacity: 1; }
}

@media (max-width: 360px) {
  .gallery-controls { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide { animation: none; }
  .gallery-arrow,
  .gallery-dot::before { transition: none; }
}
