﻿:root {
  --archive-bg: #f1ede6;
  --archive-bg-soft: #ebe5db;
  --archive-text: #11110f;
  --archive-muted: #7d766c;
  --archive-line: rgba(17, 17, 15, 0.12);
  --archive-line-strong: rgba(17, 17, 15, 0.22);
  --archive-dark: #0f0e0c;
  --archive-white: #f8f5ef;
  --archive-radius: 10px;
}

html {
  scroll-behavior: auto;
}

body.page-gallery-public-archive,
body.page-gallery-interior-archive {
  background: var(--archive-bg);
  color: var(--archive-text);
}

html:has(body.page-gallery-public-archive) {
  background: var(--archive-bg) url("./assets/1.webp") center top / cover no-repeat;
}

html:has(body.page-gallery-interior-archive) {
  background: var(--archive-bg) url("./assets/2.webp") center top / cover no-repeat;
}

body.page-gallery-public-archive {
  background: var(--archive-bg) url("./assets/1.webp") center top / cover no-repeat;
}

body.page-gallery-interior-archive {
  background: var(--archive-bg) url("./assets/2.webp") center top / cover no-repeat;
}

.page-gallery-public-archive .floating-cta,
.page-gallery-interior-archive .floating-cta,
.page-gallery-public-archive .scroll-progress,
.page-gallery-interior-archive .scroll-progress {
  display: none !important;
}

.page-gallery-public-archive .site-header-prd,
.page-gallery-public-archive .site-header-prd.is-scrolled,
.page-gallery-interior-archive .site-header-prd,
.page-gallery-interior-archive .site-header-prd.is-scrolled {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.page-gallery-public-archive .site-header-prd .brand-logo img,
.page-gallery-interior-archive .site-header-prd .brand-logo img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

.space-archive-page {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 420px), var(--archive-bg);
  overflow-x: hidden;
}

.space-archive-shell {
  width: min(calc(100% - 48px - var(--safe-left) - var(--safe-right)), 1440px);
  margin-inline: auto;
}

.space-archive-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height) - var(--safe-top));
  padding: calc(clamp(108px, 11vw, 150px) + var(--safe-top)) 0 calc(clamp(34px, 4vw, 56px) + var(--safe-bottom));
  border-bottom: 1px solid rgba(248, 245, 239, 0.14);
  overflow: hidden;
  background-color: var(--archive-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.space-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
}

.space-archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 14, 12, 0.72), rgba(15, 14, 12, 0.18) 36%, rgba(15, 14, 12, 0.04) 68%),
    linear-gradient(to right, rgba(15, 14, 12, 0.42), rgba(15, 14, 12, 0));
}

.page-gallery-public-archive .space-archive-hero::before {
  background-image: url("./assets/1.webp");
}

.page-gallery-public-archive .space-archive-hero {
  background-image: url("./assets/1.webp");
}

.page-gallery-interior-archive .space-archive-hero::before {
  background-image: url("./assets/2.webp");
}

.page-gallery-interior-archive .space-archive-hero {
  background-image: url("./assets/2.webp");
}

.space-archive-hero > .space-archive-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px - var(--safe-left) - var(--safe-right)), 1440px);
}

.space-archive-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: end;
  min-height: 100%;
}

.space-archive-hero__grid > *,
.gallery-stage__top > *,
.space-archive-cta__grid > * {
  min-width: 0;
}

.gallery-stage__eyebrow,
.space-archive-cta__eyebrow {
  font-family: "Instrument Serif", "Noto Serif KR", serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--archive-muted);
}

.space-archive-hero__eyebrow {
  font-family: var(--font--primary);
  color: rgba(248, 245, 239, 0.94);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.space-archive-hero__title {
  max-width: 34rem;
  margin: 14px 0 0;
  white-space: pre-line;
  font-family: var(--font--primary);
  font-size: clamp(0.92rem, 1.18vw, 1.04rem);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: -0.01em;
  color: rgba(248, 245, 239, 0.94);
  word-break: keep-all;
}

.space-archive-hero__summary {
  max-width: 520px;
  margin-left: auto;
  color: #5f5a52;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 300;
  line-height: 2;
  word-break: keep-all;
}

.space-archive-hero__title:empty,
.space-archive-hero__summary[hidden],
.gallery-stage__title:empty,
.gallery-stage__desc:empty,
.gallery-viewer__title:empty {
  display: none;
}

.space-archive-nav {
  display: none;
}

.space-archive-sections {
  padding: clamp(28px, 3.6vw, 46px) 0 clamp(72px, 8vw, 120px);
}

.gallery-stage {
  min-height: calc(100vh - 160px);
}

.gallery-stage__top {
  display: grid;
  grid-template-columns: minmax(520px, 0.7fr) minmax(280px, 1fr);
  gap: clamp(18px, 2.4vw, 40px);
  align-items: end;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.page-gallery-public-archive .gallery-stage__top {
  grid-template-columns: minmax(440px, 0.56fr) minmax(0, 1fr);
}

.page-gallery-interior-archive .gallery-stage__top {
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 1fr);
}

.gallery-stage__copy {
  max-width: 700px;
}

.page-gallery-public-archive .gallery-stage__copy {
  max-width: 760px;
}

.page-gallery-interior-archive .gallery-stage__copy {
  max-width: 260px;
}

.gallery-stage__number {
  display: block;
  margin-bottom: 10px;
  font-family: "Instrument Serif", "Noto Serif KR", serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(17, 17, 15, 0.52);
}

.gallery-stage__eyebrow {
  color: rgba(17, 17, 15, 0.92);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.gallery-stage__title {
  margin: 10px 0 0;
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.gallery-stage__desc {
  margin: 14px 0 0;
  max-width: 38rem;
  color: #302a24;
  font-size: clamp(12px, 0.82vw, 14px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
  white-space: normal;
  word-break: keep-all;
  text-wrap: balance;
}

.page-gallery-public-archive .gallery-stage__desc {
  white-space: pre-line;
}

.gallery-stage__tabs {
  display: flex;
  justify-content: flex-start;
  gap: clamp(12px, 1.8vw, 24px);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  max-width: 100%;
}

.page-gallery-interior-archive .gallery-stage__tabs {
  gap: clamp(8px, 1vw, 16px);
}

.gallery-stage__tabs::-webkit-scrollbar {
  display: none;
}

.gallery-stage__tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 0;
  padding: 0 0 9px;
  background: transparent;
  color: rgba(17, 17, 15, 0.38);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.32s ease;
}

.gallery-stage__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--archive-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-stage__tab.is-active {
  color: var(--archive-text);
}

.gallery-stage__tab.is-active::after {
  transform: scaleX(1);
}

.gallery-stage__tab-num {
  font-family: "Instrument Serif", "Noto Serif KR", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.gallery-stage__tab-label {
  font-family: "Instrument Serif", "Noto Serif KR", serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-gallery-interior-archive .gallery-stage__tab-num {
  font-size: 11px;
}

.page-gallery-interior-archive .gallery-stage__tab-label {
  font-size: 9px;
  letter-spacing: 0.18em;
}

.gallery-stage__tab-ko {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.gallery-stage__tab-room {
  display: none;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-gallery-public-archive .gallery-stage__top {
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
}

.page-gallery-public-archive .gallery-stage__copy {
  max-width: 360px;
}

.page-gallery-public-archive .gallery-stage__tabs {
  justify-content: flex-end;
  gap: clamp(18px, 2.6vw, 38px);
}

.page-gallery-public-archive .gallery-stage__tab-label {
  font-size: 11px;
  letter-spacing: 0.26em;
}

.page-gallery-interior-archive .gallery-stage__top {
  grid-template-columns: minmax(140px, 0.16fr) minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 18px);
}

.page-gallery-interior-archive .gallery-stage__copy {
  max-width: 165px;
}

.page-gallery-interior-archive .gallery-stage__tabs {
  justify-content: space-between;
  gap: clamp(4px, 0.6vw, 10px);
  width: 100%;
}

.page-gallery-interior-archive .gallery-stage__tab {
  gap: 4px;
}

.page-gallery-interior-archive .gallery-stage__tab-num {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.page-gallery-interior-archive .gallery-stage__tab-label {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.page-gallery-interior-archive .gallery-stage__number {
  font-family: "Instrument Serif", "Noto Serif KR", serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(17, 17, 15, 0.68);
}

.page-gallery-interior-archive .gallery-stage__eyebrow {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 15, 0.96);
  font-variant-numeric: tabular-nums;
}

.page-gallery-interior-archive .gallery-stage__tab {
  color: rgba(17, 17, 15, 0.58);
}

.page-gallery-interior-archive .gallery-stage__tab-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 15, 0.68);
}

.page-gallery-interior-archive .gallery-stage__tab-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 15, 0.82);
}

.page-gallery-interior-archive .gallery-stage__tab.is-active .gallery-stage__tab-num,
.page-gallery-interior-archive .gallery-stage__tab.is-active .gallery-stage__tab-label {
  color: rgba(17, 17, 15, 0.96);
}

/* Interior room selector polish */
.page-gallery-interior-archive .gallery-stage__tabs {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-gallery-interior-archive .gallery-stage__tab {
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(17, 17, 15, 0.52);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.page-gallery-interior-archive .gallery-stage__tab::after {
  display: none;
}

.page-gallery-interior-archive .gallery-stage__tab.is-active {
  background: #151512;
  color: #fffaf0;
  box-shadow: 0 10px 24px rgba(17, 17, 15, 0.1);
  transform: translateY(-1px);
}

.page-gallery-interior-archive .gallery-stage__tab-num,
.page-gallery-interior-archive .gallery-stage__tab-label {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-gallery-interior-archive .gallery-stage__tab-num {
  display: none;
}

.page-gallery-interior-archive .gallery-stage__tab-label {
  font-size: 10px;
  letter-spacing: 0.03em;
}

.page-gallery-interior-archive .gallery-stage__tab.is-active .gallery-stage__tab-num,
.page-gallery-interior-archive .gallery-stage__tab.is-active .gallery-stage__tab-label,
.page-gallery-interior-archive .gallery-stage__tab.is-active .gallery-stage__tab-room {
  color: #fffaf0;
}

.page-gallery-interior-archive .gallery-stage__tab:focus-visible {
  outline: 2px solid rgba(190, 151, 84, 0.65);
  outline-offset: 3px;
}

.gallery-viewer__main {
  position: relative;
  overflow: hidden;
  min-height: clamp(460px, 56vw, 680px);
  border-radius: var(--archive-radius);
  background: #ddd6cc;
  cursor: pointer;
  isolation: isolate;
}

.gallery-viewer__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

.gallery-viewer__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.97) brightness(0.99);
  transform: scale(1.01);
  will-change: transform, opacity, clip-path;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

.gallery-viewer__main:hover .gallery-viewer__image {
  filter: saturate(1) contrast(1.01) brightness(1);
}

.gallery-viewer__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0) 72%);
  opacity: 0.82;
  pointer-events: none;
}

.gallery-viewer__meta {
  position: absolute;
  left: calc(clamp(22px, 2.6vw, 42px) + var(--safe-left));
  right: calc(clamp(22px, 2.6vw, 42px) + var(--safe-right));
  bottom: calc(clamp(22px, 2.6vw, 42px) + var(--safe-bottom));
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  color: var(--archive-white);
}

.gallery-viewer__label {
  display: block;
  font-family: "Instrument Serif", "Noto Serif KR", serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.72);
}

.gallery-viewer__title {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.gallery-viewer__counter {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(248, 245, 239, 0.68);
  white-space: nowrap;
}

.gallery-viewer__nav {
  position: absolute;
  right: calc(clamp(18px, 2.2vw, 32px) + var(--safe-right));
  top: calc(clamp(18px, 2.2vw, 32px) + var(--safe-top));
  z-index: 4;
  display: flex;
  gap: 8px;
}

.gallery-viewer__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 245, 239, 0.36);
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.14);
  color: var(--archive-white);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-viewer__arrow:hover {
  background: rgba(15, 14, 12, 0.34);
  transform: translateY(-1px);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 8px;
  background: #ebe5dc;
  cursor: pointer;
  padding: 0;
  opacity: 1;
  transition: transform 0.28s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
}

.gallery-thumb.is-active {
  transform: translateY(-2px);
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 17, 15, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.gallery-thumb.is-active::after {
  border-color: rgba(17, 17, 15, 0.78);
  border-width: 2px;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(0.99);
  transform: scale(1.02);
}

.space-archive-cta {
  background: var(--archive-dark);
  color: var(--archive-white);
  padding: clamp(82px, 9vw, 132px) 0;
}

.space-archive-cta__title {
  max-width: 820px;
  margin: 22px 0 0;
  font-size: clamp(38px, 5.4vw, 82px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.space-archive-cta__content p {
  color: rgba(248, 245, 239, 0.66);
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  word-break: keep-all;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  color: var(--archive-white);
}

.lightbox-overlay.is-open,
.lightbox-overlay.is-active {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: absolute;
  inset: calc(7vh + var(--safe-top)) calc(7vw + var(--safe-right)) calc(12vh + var(--safe-bottom)) calc(7vw + var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.46);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 1px solid rgba(248, 245, 239, 0.22);
  background: rgba(248, 245, 239, 0.05);
  color: var(--archive-white);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: calc(24px + var(--safe-top));
  right: calc(24px + var(--safe-right));
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.lightbox-close_line {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 23px;
  height: 1px;
  background: currentColor;
}

.lightbox-close_line.is-1 {
  transform: rotate(45deg);
}

.lightbox-close_line.is-2 {
  transform: rotate(-45deg);
}

.lightbox-nav {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.lightbox-prev,
.lightbox-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.lightbox-counter {
  min-width: 72px;
  text-align: center;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(248, 245, 239, 0.7);
}

@media (max-width: 960px) {
  .space-archive-shell {
    width: min(calc(100% - 32px - var(--safe-left) - var(--safe-right)), 1440px);
  }

  .space-archive-hero {
    padding-top: calc(104px + var(--safe-top));
    min-height: 78vh;
    min-height: 78svh;
  }

  .space-archive-hero__grid,
  .gallery-stage__top,
  .space-archive-cta__grid {
    grid-template-columns: 1fr;
  }

  .page-gallery-public-archive .gallery-stage__desc {
    white-space: normal;
  }

  .space-archive-hero__title {
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  .space-archive-hero__summary {
    margin-left: 0;
  }

  .gallery-stage__tabs {
    justify-content: flex-start;
  }

  .gallery-stage__copy {
    max-width: none;
  }

  .gallery-stage__desc {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.62;
    text-wrap: pretty;
  }

  .gallery-viewer__main {
    min-height: 62vh;
    min-height: 62svh;
  }

  .gallery-viewer__meta {
    display: block;
  }

  .gallery-viewer__counter {
    display: block;
    margin-top: 12px;
  }

  .gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb {
    flex: 0 0 112px;
  }

  .lightbox-content {
    inset: calc(86px + var(--safe-top)) calc(16px + var(--safe-right)) calc(110px + var(--safe-bottom)) calc(16px + var(--safe-left));
  }}

/* Public archive typography: match interior room selector */
.page-gallery-public-archive .gallery-stage__number,
.page-gallery-public-archive .gallery-stage__eyebrow,
.page-gallery-public-archive .gallery-stage__tab-num,
.page-gallery-public-archive .gallery-stage__tab-label {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-variant-numeric: tabular-nums;
}

.page-gallery-public-archive .gallery-stage__number,
.page-gallery-public-archive .gallery-stage__eyebrow {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.page-gallery-public-archive .gallery-stage__tab-num {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

.page-gallery-public-archive .gallery-stage__tab-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .gallery-stage__top {
    gap: 18px;
  }

  .gallery-stage__desc {
    font-size: 13px;
    line-height: 1.58;
  }}


/* Archive hero requested copy sizing */
.page-gallery-public-archive .space-archive-hero__copy,
.page-gallery-interior-archive .space-archive-hero__copy {
  max-width: min(44rem, 48vw);
}

.page-gallery-public-archive .space-archive-hero__eyebrow,
.page-gallery-interior-archive .space-archive-hero__eyebrow {
  margin: 0 0 0.72rem;
  font-family: var(--font--primary);
  font-size: clamp(0.68rem, 0.58vw, 0.78rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.9);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

.page-gallery-public-archive .space-archive-hero__title,
.page-gallery-interior-archive .space-archive-hero__title {
  display: block !important;
  max-width: min(42rem, 52vw);
  margin: 0;
  font-family: var(--font--primary);
  font-size: clamp(1.32rem, 1.55vw, 1.9rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.045em;
  color: rgba(248, 245, 239, 0.97);
  word-break: keep-all;
  text-wrap: balance;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

@media (max-width: 768px) {
  .page-gallery-public-archive .space-archive-hero__copy,
  .page-gallery-interior-archive .space-archive-hero__copy {
    max-width: min(25rem, calc(100vw - 40px));
  }

  .page-gallery-public-archive .space-archive-hero__eyebrow,
  .page-gallery-interior-archive .space-archive-hero__eyebrow {
    margin-bottom: 0.58rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .page-gallery-public-archive .space-archive-hero__title,
  .page-gallery-interior-archive .space-archive-hero__title {
    max-width: min(24rem, calc(100vw - 40px));
    font-size: clamp(1.55rem, 6.2vw, 2.05rem);
    line-height: 1.24;
  }

  .gallery-viewer__main {
    touch-action: pan-y pinch-zoom;
  }

  .gallery-viewer__image {
    transform: none;
    will-change: auto;
  }

  .gallery-thumbs {
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .gallery-thumb {
    flex: 0 0 min(38vw, 128px);
    scroll-snap-align: center;
  }}

/* Archive hero eyebrow visibility guard */
.page-gallery-public-archive .space-archive-hero__eyebrow,
.page-gallery-interior-archive .space-archive-hero__eyebrow {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .page-gallery-public-archive .space-archive-hero__eyebrow,
  .page-gallery-interior-archive .space-archive-hero__eyebrow {
    font-size: 0.8rem !important;
    margin-bottom: 0.7rem !important;
  }}
/* Archive hero visual label lock */
.page-gallery-public-archive .space-archive-hero__eyebrow,
.page-gallery-interior-archive .space-archive-hero__eyebrow {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.page-gallery-public-archive .space-archive-hero__title::before,
.page-gallery-interior-archive .space-archive-hero__title::before {
  content: "LA PORTE BLANC SEOHYEON";
  display: block;
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font--primary);
  font-size: clamp(0.72rem, 0.72vw, 0.86rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

@media (max-width: 768px) {
  .page-gallery-public-archive .space-archive-hero__title::before,
  .page-gallery-interior-archive .space-archive-hero__title::before {
    margin-bottom: 0.66rem;
    font-size: 0.8rem;
  }}

/* Mobile archive headline and swipe polish */
@media (max-width: 768px) {
  .page-gallery-public-archive .space-archive-hero__copy,
  .page-gallery-interior-archive .space-archive-hero__copy {
    max-width: min(28rem, calc(100vw - 40px));
  }

  .page-gallery-public-archive .space-archive-hero__title,
  .page-gallery-interior-archive .space-archive-hero__title {
    max-width: min(25rem, calc(100vw - 40px));
    font-size: clamp(1.52rem, 6.25vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
  }

  .page-gallery-public-archive .space-archive-hero__title::before,
  .page-gallery-interior-archive .space-archive-hero__title::before {
    margin-bottom: 0.72rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .gallery-viewer__main {
    contain: layout paint;
    overscroll-behavior: auto;
  }

  .gallery-viewer__image,
  .gallery-thumb img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* Mobile archive no-zoom lock */
@media (max-width: 768px), (pointer: coarse) {
  .space-archive-hero,
  .space-archive-hero::before,
  .gallery-viewer__main,
  .gallery-viewer__image,
  .gallery-thumb,
  .gallery-thumb img {
    transform: none !important;
    scale: none !important;
    translate: none !important;
    will-change: auto !important;
  }

  .gallery-viewer__image,
  .gallery-thumb img {
    transition-property: opacity !important;
  }
}

/* Mobile archive sequential gallery */
@media (max-width: 768px) {
  html.is-mobile-archive-entering {
    scroll-behavior: auto !important;
  }

  html.is-mobile-archive-entering .space-archive-hero {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  html.is-mobile-archive-entered .space-archive-hero {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.62s cubic-bezier(0.22, 0.86, 0.2, 1),
      transform 0.62s cubic-bezier(0.22, 0.86, 0.2, 1);
  }

  .page-gallery-public-archive .space-archive-hero__title,
  .page-gallery-interior-archive .space-archive-hero__title {
    max-width: min(22rem, calc(100vw - 44px));
    font-size: clamp(1.08rem, 4.72vw, 1.36rem);
    line-height: 1.23;
    letter-spacing: -0.025em;
  }

  .page-gallery-public-archive .space-archive-hero__title::before,
  .page-gallery-interior-archive .space-archive-hero__title::before {
    margin-bottom: 0.58rem;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .gallery-stage__top {
    display: block;
    margin-bottom: 18px;
  }

  .page-gallery-public-archive .gallery-stage__copy,
  .page-gallery-interior-archive .gallery-stage__copy {
    max-width: min(19rem, calc(100vw - 32px));
  }

  .page-gallery-interior-archive .gallery-stage__copy {
    max-width: 100%;
    text-align: center;
  }

  .gallery-stage__tabs {
    display: none;
  }

  .page-gallery-interior-archive .gallery-stage__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 22rem);
    margin: 14px auto 0;
    padding: 22px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .page-gallery-interior-archive .gallery-stage__tabs::before {
    content: "ROOM DIRECTORY";
    grid-column: 1 / -1;
    align-self: center;
    margin: -12px 2px 0;
    text-align: center;
    font-family: "Instrument Serif", "Noto Serif KR", serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.32em;
    color: rgba(17, 17, 15, 0.44);
  }

  .page-gallery-interior-archive .gallery-stage__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(17, 17, 15, 0.12);
    border-radius: 999px;
    background: rgba(244, 239, 231, 0.38);
    color: rgba(17, 17, 15, 0.56);
    box-shadow: none;
    transform: none;
  }

  .page-gallery-interior-archive .gallery-stage__tab::after {
    display: none;
  }

  .page-gallery-interior-archive .gallery-stage__tab.is-active {
    border-color: rgba(17, 17, 15, 0.88);
    background:
      linear-gradient(135deg, #24231f, #11110f);
    color: #fffaf0;
    box-shadow: 0 9px 18px rgba(17, 17, 15, 0.12);
    transform: translateY(-1px);
  }

  .page-gallery-interior-archive .gallery-stage__tab-num,
  .page-gallery-interior-archive .gallery-stage__tab-label {
    display: none;
  }

  .page-gallery-interior-archive .gallery-stage__tab-room {
    display: block;
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
  }

  .gallery-stage__number {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .gallery-stage__eyebrow {
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.11em;
  }

  .gallery-stage__desc {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.62;
  }

  .gallery-thumbs {
    margin-inline: -4px;
    padding: 0 4px 6px;
  }

  .gallery-thumb {
    flex-basis: min(30vw, 112px);
    border-radius: 7px;
  }
}

/* Mobile swipe-only viewer controls */
.gallery-viewer__swipe-cue {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) {
  .gallery-viewer__nav {
    display: none !important;
  }

  .gallery-viewer__main {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior: auto;
  }

  .gallery-viewer__main:active {
    cursor: grabbing;
  }

  .gallery-viewer__swipe-cue {
    position: absolute;
    top: calc(18px + var(--safe-top));
    right: calc(18px + var(--safe-right));
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(248, 245, 239, 0.34);
    border-radius: 999px;
    background: rgba(15, 14, 12, 0.18);
    color: rgba(248, 245, 239, 0.9);
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .gallery-viewer__swipe-text {
    font-family: var(--font--primary);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
  }

  .gallery-viewer__swipe-track {
    position: relative;
    width: 32px;
    height: 1px;
    overflow: hidden;
    background: rgba(248, 245, 239, 0.28);
  }

  .gallery-viewer__swipe-track::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 12px;
    height: 3px;
    border-radius: 999px;
    background: rgba(248, 245, 239, 0.9);
    animation: gallerySwipeCue 1.7s cubic-bezier(0.22, 0.86, 0.2, 1) infinite;
  }

  @keyframes gallerySwipeCue {
    0% {
      transform: translateX(0);
      opacity: 0.25;
    }
    35% {
      opacity: 1;
    }
    80%,
    100% {
      transform: translateX(20px);
      opacity: 0.25;
    }
  }}

/* Final archive hero typography lock: match main overview hero */
.page-gallery-public-archive .space-archive-hero__title,
.page-gallery-interior-archive .space-archive-hero__title {
  max-width: 34rem !important;
  margin: 0 !important;
  font-family: var(--font--primary) !important;
  font-size: clamp(1.65rem, 1.2rem + 1vw, 2.25rem) !important;
  line-height: 1.45 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  text-shadow: 0 8px 22px rgba(8, 10, 16, 0.26), 0 1px 0 rgba(8, 10, 16, 0.18) !important;
  word-break: keep-all;
  text-wrap: balance;
}

.page-gallery-public-archive .space-archive-hero__title::before,
.page-gallery-interior-archive .space-archive-hero__title::before {
  content: "LA PORTE BLANC SEOHYEON";
  display: block !important;
  margin: 0 0 clamp(1.6rem, 4vh, 2.8rem) !important;
  font-family: var(--font--primary) !important;
  font-size: 0.74rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2em !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.96) !important;
  text-transform: uppercase;
  text-shadow: 0 8px 22px rgba(8, 10, 16, 0.22), 0 1px 0 rgba(8, 10, 16, 0.14) !important;
}

@media (max-width: 768px) {
  .page-gallery-public-archive .space-archive-hero__title,
  .page-gallery-interior-archive .space-archive-hero__title {
    max-width: min(24rem, calc(100vw - 40px)) !important;
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.32 !important;
    letter-spacing: -0.02em !important;
  }

  .page-gallery-public-archive .space-archive-hero__title::before,
  .page-gallery-interior-archive .space-archive-hero__title::before {
    margin-bottom: 1.3rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.18em !important;
  }}

/* ============================================================
   인테리어 호실 탭(데스크탑) — 크기 확대 + Pretendard 톤 통일
   (모바일 ≤768px는 기존 tab-room 칩 유지)
   ============================================================ */
@media (min-width: 769px) {
  .page-gallery-interior-archive .gallery-stage__tab {
    min-height: 48px;
    padding: 0 26px;
  }
  .page-gallery-interior-archive .gallery-stage__tab-label {
    font-size: clamp(15px, 0.8rem + 0.45vw, 18px);
    font-weight: 700;
    letter-spacing: 0.05em;
  }
}