.aosomir-page button.photo {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}
.photo-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  background: #fffffff0;
  color: #482b35;
  font-size: 11px;
  box-shadow: 0 2px 12px #30202b18;
}
.product-photo-frame {
  position: relative;
}
.hero-video-shortcut {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  gap: 1px;
  width: 48px;
  min-height: 54px;
  padding: 6px;
  border: 1px solid #ffffffbb;
  border-radius: 14px;
  color: #5c2033;
  background: #ffffffb8;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 14px #30172620;
  cursor: pointer;
}
.hero-video-shortcut svg {
  width: 24px;
  height: 24px;
}
.hero-video-shortcut span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.hero-video-shortcut:hover,
.hero-video-shortcut:focus-visible {
  background: #fff;
  outline: 2px solid #8c2945;
  outline-offset: 2px;
}
.aosomir-page .main-media {
  gap: 9px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.aosomir-page .main-media figure {
  flex-basis: 92px;
}
.aosomir-page .main-media img,
.aosomir-page .main-media video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.media-open {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #e5d8dc;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #f5efef;
  cursor: zoom-in;
}
.media-open img {
  display: block;
  width: 100%;
}
.video-badge {
  position: absolute;
  inset: auto 4px 6px;
  background: #1c101cbb;
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  padding: 4px 2px;
}
.aosomir-page .detail-media video {
  border-radius: 14px;
  background: #211b20;
  max-height: 75svh;
  object-fit: contain;
}
.video-expand {
  width: auto;
  margin: 8px 0;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 12px;
  color: #7a2033;
  background: #fff;
}
html.media-viewer-open,
.media-viewer-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
.media-viewer {
  width: min(1040px, calc(100% - 40px));
  height: min(960px, calc(100svh - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #171317;
  color: #fff;
  overflow: hidden;
}
.media-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.media-viewer::backdrop {
  background: #120b14e8;
}
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
.viewer-header h2 {
  margin: 0;
  font:
    600 14px/1.5 TH,
    Arial,
    sans-serif;
  letter-spacing: 0;
  color: #fff;
}
.media-viewer button {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  color: #fff;
  background: #ffffff12;
  padding: 5px;
  font:
    400 25px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.media-viewer button:disabled {
  opacity: 0.3;
  cursor: default;
}
.media-viewer button:focus-visible {
  outline: 3px solid #f4b9ce;
  outline-offset: 2px;
}
.viewer-track {
  display: flex;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.viewer-track::-webkit-scrollbar {
  display: none;
}
.viewer-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.viewer-slide img,
.viewer-slide video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.viewer-slide img {
  user-select: none;
  -webkit-user-drag: none;
}
.viewer-error {
  position: absolute;
  bottom: 12px;
  inset-inline: 16px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #171317e8;
  color: #fff;
  font-size: 13px;
}
.viewer-footer {
  margin: 0;
  padding: 10px 20px 16px;
  text-align: center;
}
.viewer-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.viewer-counter {
  min-width: 64px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.viewer-caption {
  margin: 8px 0 4px;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.viewer-footer small {
  color: #b6abb3;
  font-size: 10px;
}
@media (max-width: 780px) {
  .media-viewer {
    width: 100%;
    height: 100svh;
    border-radius: 0;
  }
  .viewer-header {
    padding: max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right)) 8px
      max(12px, env(safe-area-inset-left));
  }
  .viewer-footer {
    padding: 8px 16px max(14px, env(safe-area-inset-bottom));
  }
}
@media print {
  .media-viewer {
    display: none !important;
  }
}
