html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.stage {
  grid-template-columns: minmax(0, 1fr);
}

.gal {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 420px);
  min-width: 0;
  justify-self: center;
}

.gal:focus-visible {
  outline: 3px solid #0a4fe8;
  outline-offset: 3px;
}

.gal__main {
  position: relative;
  height: clamp(96px, 54vh, 160px);
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.gal__track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(calc(-100% * var(--i, 0)));
  transition: transform 600ms ease-out;
  will-change: transform;
}

.gal__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.gal__shot {
  position: absolute;
  inset: 0;
}

.gal__shot,
.gal__thumbArt {
  background-repeat: no-repeat;
  background-size: cover;
}

.gal__shot--a {
  background-image: radial-gradient(circle at 24% 22%, rgba(255, 247, 230, 0.92), rgba(255, 247, 230, 0) 34%), linear-gradient(76deg, rgba(255, 247, 230, 0) 46%, rgba(255, 255, 255, 0.88) 46.6%, rgba(255, 255, 255, 0.88) 82%, rgba(255, 247, 230, 0) 82.6%), linear-gradient(160deg, rgb(100%, 90.1882352941%, 60.0705882353%) 0%, rgb(100%, 79.5294117647%, 69.9058823529%) 58%, rgb(43.5921568627%, 16.337254902%, 10.9411764706%) 100%);
}

.gal__shot--b {
  background-image: radial-gradient(circle at 62% 26%, rgba(255, 210, 63, 0.86), rgba(255, 210, 63, 0) 28%), linear-gradient(180deg, rgba(23, 20, 26, 0) 56%, rgb(50.8705882353%, 18.1254901961%, 11.0980392157%) 56.6%), linear-gradient(190deg, rgb(32.6745098039%, 13.6549019608%, 10.7058823529%) 0%, rgb(19.937254902%, 10.5254901961%, 10.431372549%) 100%);
}

.gal__shot--c {
  background-image: radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 15%), linear-gradient(90deg, rgba(76, 212, 166, 0.42) 0%, rgba(76, 212, 166, 0.42) 33%, rgba(255, 247, 230, 0) 33.4%, rgba(255, 247, 230, 0) 34%), linear-gradient(172deg, rgb(63.4980392157%, 91.231372549%, 81.8509803922%) 0%, rgb(23.4352941176%, 60.5176470588%, 82.6666666667%) 62%, rgb(14.4784313725%, 28.0862745098%, 60.2352941176%) 100%);
}

.gal__shot--d {
  background-image: linear-gradient(180deg, rgba(23, 20, 26, 0) 34%, rgb(39.9529411765%, 15.4431372549%, 10.862745098%) 34.6%, rgb(39.9529411765%, 15.4431372549%, 10.862745098%) 40%, rgba(23, 20, 26, 0) 40.6%, rgba(23, 20, 26, 0) 66%, rgb(39.9529411765%, 15.4431372549%, 10.862745098%) 66.6%, rgb(39.9529411765%, 15.4431372549%, 10.862745098%) 72%, rgba(23, 20, 26, 0) 72.6%), linear-gradient(96deg, rgb(100%, 74.1960784314%, 63.662745098%) 0%, rgb(49.0509803922%, 17.6784313725%, 11.0588235294%) 100%);
}

.gal__shot--e {
  background-image: radial-gradient(circle at 30% 74%, rgba(76, 212, 166, 0.74), rgba(76, 212, 166, 0) 26%), linear-gradient(90deg, rgba(255, 247, 230, 0) 62%, rgba(255, 247, 230, 0.56) 62.6%, rgba(255, 247, 230, 0.56) 65%, rgba(255, 247, 230, 0) 65.6%), linear-gradient(184deg, rgb(77.2549019608%, 89.4901960784%, 94.1176470588%) 0%, rgb(100%, 87.8666666667%, 49.5921568627%) 52%, rgb(47.231372549%, 17.231372549%, 11.0196078431%) 100%);
}

.gal__shot--f {
  background-image: radial-gradient(circle at 22% 38%, rgba(255, 210, 63, 0.58), rgba(255, 210, 63, 0) 30%), linear-gradient(180deg, rgba(23, 20, 26, 0) 68%, rgb(12.5960784314%, 21.1058823529%, 42.9803921569%) 68.6%), linear-gradient(174deg, rgb(11.4666666667%, 16.9176470588%, 32.6274509804%) 0%, #17141a 82%);
}

.gal__cap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.4;
}

.gal__nav {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(23, 20, 26, 0.72);
  color: #fff7e6;
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 220ms ease-out;
}

.gal__nav--prev {
  left: 8px;
}

.gal__nav--next {
  right: 8px;
}

.gal__nav:hover {
  transform: translateY(-50%) scale(1.12);
}

.gal__nav:focus-visible {
  outline: 3px solid #0a4fe8;
  outline-offset: 2px;
}

.gal__strip {
  display: flex;
  gap: 8px;
  padding: 4px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.gal__strip::-webkit-scrollbar {
  display: none;
}

.gal__thumb {
  flex: 0 0 auto;
  width: clamp(48px, 16vw, 76px);
  height: clamp(34px, 11vw, 52px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #17141a;
  opacity: 0.58;
  cursor: pointer;
  transition: opacity 220ms ease-out, transform 220ms ease-out, box-shadow 220ms ease-out;
}

.gal__thumbArt {
  display: block;
  width: 100%;
  height: 100%;
}

.gal__thumb[aria-selected=true] {
  opacity: 1;
  transform: scale(1.06);
}

.gal__thumb[aria-selected=true] .gal__thumbArt {
  box-shadow: inset 0 0 0 3px #2f6df6;
}

.gal__thumb:focus-visible {
  outline: 3px solid #0a4fe8;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .gal {
    gap: 4px;
  }
  .gal__cap {
    left: 4px;
    bottom: 4px;
    padding: 0 8px;
  }
  .gal__nav {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .gal__strip {
    gap: 4px;
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gal__track,
  .gal__nav,
  .gal__thumb {
    transition-duration: 0s;
  }
}
