* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: #0a1230; }

body {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* 제스처는 뷰어 안에서만 직접 처리한다 (브라우저 확대는 전역 차단하지 않음) */
#viewer {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#track { display: flex; height: 100%; }
#track.anim { transition: transform .32s cubic-bezier(.22, .7, .25, 1); }

.slide { flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; }

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: transparent;
}
.slide img.anim { transition: transform .25s ease-out; }

#dots { display: flex; justify-content: center; flex: none; }

#dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#dots button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: #fff;
  opacity: .35;
  transition: opacity .2s;
}
#dots button[aria-current]::before { opacity: 1; }

@media (max-height: 480px) { #dots button { height: 28px; } }

@media (prefers-reduced-motion: reduce) {
  #track.anim, .slide img.anim { transition: none; }
}
