.mp-gallery { min-width: 0; }
.mp-stage { position: relative; }
.mp-slides { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mp-slides::-webkit-scrollbar { display: none; }
.mp-slides a { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; cursor: zoom-in; }
.mp-gallery .mp-slides img { object-position: center; }
.mp-stage-bar { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; pointer-events: none; }
.mp-stage-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--pearl);
  color: var(--graphite);
  box-shadow: 0 1px 5px rgb(28 35 39 / 18%);
  pointer-events: auto;
  cursor: pointer;
}
@media (hover: hover) { .mp-stage-bar button:hover { background: var(--mist); } }
.mp-thumbs {
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  margin-top: clamp(12px, 1.2vw, 18px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.mp-thumbs::-webkit-scrollbar { display: none; }
.mp-thumbs a {
  flex: 0 0 clamp(88px, 9vw, 140px);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.mp-thumbs a[aria-current] { border-bottom-color: var(--graphite); }
.mp-gallery .mp-thumbs img { aspect-ratio: 1.6; object-fit: cover; border-radius: 4px; }
.mp-gallery .mp-thumbs a:focus-visible { outline-offset: -2px; }
@media (max-width: 767px) {
  .mp-thumbs { padding-inline: clamp(16px, 5vw, 24px); }
  .mp-thumbs a { flex-basis: clamp(88px, 25vw, 124px); }
}
