.gallery-sec {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 310svh;
  background: radial-gradient(ellipse 78% 68% at 50% 34%, #FFFFFF 0%, #FAFBFD 56%, #F2F5F9 100%);
}

.gallery-sec::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22svh;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 58%, #FFFFFF 100%);
}

.edition-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 8vh, 96px) 0 clamp(28px, 4.5vh, 52px);
}

.studio-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.studio-beam {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(162, 198, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(28px);
}

/* Soft Atmospheric Mist / Haze Backdrop Layers */
.mist-glow {
  position: absolute;
  bottom: -10%;
  width: 64vw;
  height: 56vh;
  border-radius: 50%;
  filter: blur(68px);
  will-change: transform, opacity;
  opacity: calc(0.62 - var(--edition-progress, 0) * 0.24);
}

.mist-glow-left {
  left: -14vw;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(180, 193, 210, 0.48) 0%,
    rgba(216, 224, 236, 0.26) 46%,
    rgba(255, 255, 255, 0) 76%
  );
  transform: translate3d(calc(var(--edition-progress, 0) * -9vw), 0, 0);
  animation: mistDriftLeft 14s ease-in-out infinite alternate;
}

.mist-glow-right {
  right: -14vw;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(174, 188, 208, 0.44) 0%,
    rgba(214, 222, 234, 0.24) 48%,
    rgba(255, 255, 255, 0) 76%
  );
  transform: translate3d(calc(var(--edition-progress, 0) * 9vw), 0, 0);
  animation: mistDriftRight 16s ease-in-out infinite alternate;
}

@keyframes mistDriftLeft {
  0% { margin-left: -2vw; margin-bottom: 0; }
  100% { margin-left: 5vw; margin-bottom: 2vh; }
}

@keyframes mistDriftRight {
  0% { margin-right: -2vw; margin-bottom: 1vh; }
  100% { margin-right: 5vw; margin-bottom: -1vh; }
}

.edition-mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.94;
}

.mist-floor-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(
    to top,
    rgba(235, 240, 247, 0.68) 0%,
    rgba(241, 245, 250, 0.34) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.gallery-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.8vw, 40px);
}

.gallery-head {
  position: relative;
  z-index: 8;
  text-align: center;
  margin-bottom: clamp(24px, 3.4vh, 42px);
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

.gallery-title {
  margin: 0 auto;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 560;
  line-height: 1.34;
  letter-spacing: -0.036em;
  color: #191F28;
  word-break: keep-all;
}

.gallery-title strong {
  font-weight: 660;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gallery-title .tg-red {
  background-image: linear-gradient(
    to bottom,
    #111111 0%,
    #1F1B1C 52%,
    color-mix(in srgb, #C43B46 38%, #231D1E) 100%
  );
}

.gallery-title .tg-blue {
  background-image: linear-gradient(
    to bottom,
    #111111 0%,
    #1A1E26 52%,
    color-mix(in srgb, #3664C8 38%, #1C212B) 100%
  );
}

.card-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 18px);
}

.card-item {
  position: relative;
  min-width: 0;
  will-change: transform, opacity, filter;
}

.card-item.is-lead-card {
  z-index: 6;
}

.card-item:not(.is-lead-card) {
  z-index: 2;
}

.cover-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #14181F;
  cursor: pointer;
  text-align: center;
  outline: none;
  box-shadow:
    0 24px 52px -18px rgba(15, 23, 42, 0.28),
    0 4px 12px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(25, 31, 40, 0.35), 0 22px 48px -20px rgba(15, 23, 42, 0.24);
}

.cover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.34), 0 8px 18px -6px rgba(15, 23, 42, 0.1);
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-card:hover .cover-img { transform: scale(1.025); }

.cover-img.is-real-taegeukgi {
  object-position: center 46%;
  filter: contrast(1.05) brightness(0.84) saturate(0.88);
}

.cover-img.is-real-turtle {
  object-position: 20% 52%;
  filter: grayscale(100%) contrast(1.18) brightness(0.64);
}

.cover-img.is-real-war1950 {
  object-position: 52% 48%;
  transform: scale(1.14);
  filter: grayscale(100%) contrast(1.2) brightness(0.62);
}

.cover-card:hover .cover-img.is-real-war1950 {
  transform: scale(1.17);
}

.cover-img.is-real-highway {
  object-position: 47% 58%;
  filter: grayscale(100%) contrast(1.14) brightness(0.68);
}

.cover-img.is-real-shipyard {
  object-position: 62% 34%;
  filter: grayscale(100%) contrast(1.16) brightness(0.68);
}

.cutout-img {
  position: absolute;
  max-width: none;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cutout-img.is-ahn-card {
  left: 50%;
  bottom: -3%;
  height: 70%;
  width: auto;
  transform: translateX(-50%);
  filter: saturate(0.88) contrast(1.06) brightness(0.95) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.56));
}

.cover-card:hover .cutout-img.is-ahn-card {
  transform: translateX(-50%) scale(1.015);
}

.cutout-img.is-yi-card {
  left: 50%;
  bottom: -2%;
  height: 67%;
  width: auto;
  transform: translateX(-50%);
  filter: saturate(0.95) contrast(1.06) brightness(0.94) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.56));
}

.cover-card:hover .cutout-img.is-yi-card {
  transform: translateX(-50%) scale(1.015);
}

.cutout-img.is-paik-card {
  left: 50%;
  bottom: -6%;
  height: 92%;
  width: auto;
  transform: translateX(-37%);
  filter: saturate(0.92) contrast(1.06) brightness(0.95) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.56));
}

.cover-card:hover .cutout-img.is-paik-card {
  transform: translateX(-37%) scale(1.015);
}

.cutout-img.is-park-card {
  left: 7%;
  bottom: -16%;
  width: 86%;
  height: auto;
  filter: saturate(0.9) contrast(1.05) brightness(0.94) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.56));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}

.cutout-img.is-chung-cutout {
  left: -1%;
  bottom: -35%;
  width: 104%;
  height: auto;
  filter: saturate(0.86) contrast(1.06) brightness(0.92) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.56));
}

.cover-card:hover .cutout-img { transform: scale(1.015); }

.cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 13, 18, 0.9) 0%,
    rgba(10, 13, 18, 0.72) 20%,
    rgba(10, 13, 18, 0.28) 38%,
    rgba(10, 13, 18, 0.06) 58%,
    rgba(8, 10, 14, 0.54) 86%,
    rgba(6, 8, 12, 0.92) 100%
  );
}

.card-typo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5.5%;
  text-align: center;
  pointer-events: none;
}

.card-copy {
  margin: 0;
  font-family: inherit;
  font-size: clamp(13px, 1.02vw, 16.5px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.042em;
  color: #FFFFFF;
}

.card-line {
  display: block;
  white-space: nowrap;
}

/* Mobile Slide Pagination Dots (Hidden on Desktop) */
.edition-mobile-dots {
  display: none;
}

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-card {
  position: relative;
  width: min(540px, 88vw, calc(80vh * 0.75));
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: #14181F;
  box-shadow: 0 32px 72px -20px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.card-typo-lg .card-copy { font-size: clamp(26px, 2.8vw, 36px); }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lb-btn {
  appearance: none;
  border: 1px solid #D9E0E8;
  background: #FFFFFF;
  color: #333D4B;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 580;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.lb-btn:hover { border-color: #191F28; color: #191F28; }
.lb-btn.is-primary { background: #191F28; border-color: #191F28; color: #FFFFFF; }
.lb-btn.is-primary:hover { background: #2C3644; color: #FFFFFF; }

/* Tablet & Mobile: Zero-Clipping Sticky 3-Act -> Vertical-Scroll Horizontal Slide Deck */
@media (max-width: 1080px) {
  .gallery-sec {
    height: 460svh;
  }

  .edition-sticky {
    padding: 66px 0 24px;
  }

  .gallery-wrap {
    padding: 0;
  }

  .gallery-head {
    padding: 0 22px;
    margin-bottom: 18px;
  }

  .gallery-title {
    font-size: clamp(20px, 5.2vw, 28px);
    line-height: 1.36;
  }

  .card-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    overflow: visible;
    padding: 8px 0 12px;
    will-change: transform;
  }

  .card-item {
    flex: 0 0 min(70vw, 290px, calc(54svh * 0.75));
  }

  .card-copy {
    font-size: clamp(16.5px, 4.4vw, 20px);
  }

  .edition-mobile-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    will-change: opacity, transform;
  }

  .ed-dot {
    appearance: none;
    border: 0;
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(25, 31, 40, 0.2);
    cursor: pointer;
    transition: width 0.28s ease, background-color 0.28s ease;
  }

  .ed-dot.is-active {
    width: 24px;
    background: #191F28;
  }
}
