/* ==========================================================
   AN THOI - SPACE GALLERY (KHÔNG GIAN QUÁN)
   - Interactive Draggable Polaroid Board with Hanging Lanterns
   - Matching brand identity: Deep Forest Green + Warm Lantern Amber
   ========================================================== */

.space-sec {
  position: relative;
  background: linear-gradient(180deg, #0e271f 0%, #0a1f18 40%, #061510 100%);
  color: var(--ivory, #fffdf7);
  padding-block: clamp(60px, 8vw, 100px);
  overflow: hidden;
  border-top: 1px solid rgba(242, 183, 5, 0.18);
  border-bottom: 1px solid rgba(242, 183, 5, 0.18);
}

/* Ambient background glow */
.space-sec::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(242, 183, 5, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* ===== 1. TOP WIRE & EYEBROW ===== */
.space-sec__top {
  position: relative;
  margin-bottom: clamp(24px, 3.5vw, 42px);
}

.space-sec__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.space-eyebrow {
  font-family: var(--f-body, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold, #f2b705);
  white-space: nowrap;
  flex-shrink: 0;
}

.space-wire {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(242, 183, 5, 0.6) 0%, rgba(242, 183, 5, 0.3) 70%, rgba(242, 183, 5, 0.08) 100%);
  position: relative;
}

.space-wire::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold, #f2b705);
  box-shadow: 0 0 8px var(--gold, #f2b705);
}

/* ===== 2. HEADER: LANTERNS (LEFT) + INFO (RIGHT) ===== */
.space-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
  position: relative;
  margin-top: -1px;
}

/* Lantern Tabs */
.space-tabs {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
}

.space-tab {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  outline: none;
  transform-origin: 50% 0;
  will-change: transform;
  transition: opacity 0.3s;
}

.space-tab:focus-visible {
  outline: 2px solid var(--gold, #f2b705);
  outline-offset: 6px;
  border-radius: 6px;
}

.space-tab:hover {
  filter: brightness(1.1);
}

/* 3 ĐÈN LỒNG LẮC NHẸ TỰ NHIÊN (CÁC CHỮ LẮC THEO TỪ ĐỈNH DÂY TREO) */
.space-tab:nth-child(1) {
  animation: lanternSway1 5.4s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

.space-tab:nth-child(2) {
  animation: lanternSway2 6.2s cubic-bezier(0.445, 0.05, 0.55, 0.95) -2.1s infinite;
}

.space-tab:nth-child(3) {
  animation: lanternSway3 5.7s cubic-bezier(0.445, 0.05, 0.55, 0.95) -3.6s infinite;
}

@keyframes lanternSway1 {
  0% {
    transform: rotate(-2.8deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
  100% {
    transform: rotate(-2.8deg);
  }
}

@keyframes lanternSway2 {
  0% {
    transform: rotate(2.3deg);
  }
  50% {
    transform: rotate(-2.3deg);
  }
  100% {
    transform: rotate(2.3deg);
  }
}

@keyframes lanternSway3 {
  0% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
  100% {
    transform: rotate(-2.5deg);
  }
}

/* Hanging string from wire */
.space-tab__cord {
  width: 1.5px;
  height: 22px;
  background: rgba(242, 183, 5, 0.4);
  transition: background 0.35s, height 0.35s;
}

.space-tab--active .space-tab__cord {
  background: var(--gold, #f2b705);
  box-shadow: 0 0 6px rgba(242, 183, 5, 0.6);
}

/* Lantern SVG Wrapper */
.space-tab__lantern {
  position: relative;
  width: 56px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.space-tab__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Tua rua đáy đèn lồng đung đưa mềm mại */
.space-tab .lantern-tassel {
  transform-origin: 28px 66px;
}

.space-tab:nth-child(1) .lantern-tassel {
  animation: tasselSway1 5.4s cubic-bezier(0.445, 0.05, 0.55, 0.95) 0.25s infinite;
}

.space-tab:nth-child(2) .lantern-tassel {
  animation: tasselSway2 6.2s cubic-bezier(0.445, 0.05, 0.55, 0.95) -1.85s infinite;
}

.space-tab:nth-child(3) .lantern-tassel {
  animation: tasselSway3 5.7s cubic-bezier(0.445, 0.05, 0.55, 0.95) -3.35s infinite;
}

@keyframes tasselSway1 {
  0% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
  100% { transform: rotate(-3.5deg); }
}

@keyframes tasselSway2 {
  0% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

@keyframes tasselSway3 {
  0% { transform: rotate(-3.2deg); }
  50% { transform: rotate(3.2deg); }
  100% { transform: rotate(-3.2deg); }
}

/* Inactive Lantern Styling */
.space-tab .lantern-body {
  fill: transparent;
  stroke: rgba(255, 253, 247, 0.45);
  stroke-width: 1.4;
  transition: all 0.4s var(--ease, ease);
}

.space-tab .lantern-rib {
  stroke: rgba(255, 253, 247, 0.35);
  stroke-width: 1.1;
  fill: none;
  transition: stroke 0.4s;
}

.space-tab .lantern-cap,
.space-tab .lantern-tassel {
  stroke: rgba(255, 253, 247, 0.4);
  fill: rgba(255, 253, 247, 0.4);
  transition: all 0.4s;
}

/* Hover on inactive lantern */
.space-tab:not(.space-tab--active):hover .lantern-body {
  stroke: rgba(242, 183, 5, 0.85);
}
.space-tab:not(.space-tab--active):hover .lantern-rib {
  stroke: rgba(242, 183, 5, 0.6);
}
.space-tab:not(.space-tab--active):hover .lantern-cap,
.space-tab:not(.space-tab--active):hover .lantern-tassel {
  stroke: var(--gold, #f2b705);
  fill: var(--gold, #f2b705);
}

/* Active Lantern Glowing State */
.space-tab--active .space-tab__lantern {
  filter: drop-shadow(0 0 16px rgba(242, 183, 5, 0.95)) drop-shadow(0 0 36px rgba(255, 145, 0, 0.6));
  animation: lanternGlowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes lanternGlowPulse {
  0% {
    filter: drop-shadow(0 0 14px rgba(242, 183, 5, 0.9)) drop-shadow(0 0 32px rgba(255, 140, 0, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(242, 183, 5, 1)) drop-shadow(0 0 44px rgba(255, 160, 0, 0.75));
  }
}

.space-tab--active .lantern-body {
  fill: url(#spaceLanternGrad);
  stroke: #ffec8b;
  stroke-width: 1.5;
}

.space-tab--active .lantern-rib {
  stroke: rgba(255, 235, 160, 0.65);
  stroke-width: 1.2;
}

.space-tab--active .lantern-cap,
.space-tab--active .lantern-tassel {
  stroke: #ffd752;
  fill: #ffd752;
}

/* Lantern Labels */
.space-tab__labels {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.space-tab__num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 253, 247, 0.4);
  transition: color 0.3s;
}

.space-tab--active .space-tab__num {
  color: var(--gold, #f2b705);
}

.space-tab__name {
  font-family: var(--f-head, "Playfair Display", Georgia, serif);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

/* Inactive title has subtle outline / hollow effect like mockup */
.space-tab:not(.space-tab--active) .space-tab__name {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 253, 247, 0.55);
}

.space-tab:not(.space-tab--active):hover .space-tab__name {
  -webkit-text-stroke: 1px var(--gold, #f2b705);
}

.space-tab--active .space-tab__name {
  color: #ffffff;
  font-weight: 700;
  -webkit-text-stroke: 0px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* ===== 3. RIGHT SIDE: DESCRIPTION & CTA ===== */
.space-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 620px;
  margin-left: auto;
  padding-top: 6px;
}

.space-desc {
  font-family: var(--f-body, sans-serif);
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.78;
  color: rgba(255, 253, 247, 0.88);
  margin-bottom: 22px;
  min-height: 58px;
  transition: opacity 0.3s var(--ease, ease), transform 0.3s var(--ease, ease);
}

.space-desc.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.space-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.space-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body, sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold, #f2b705);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s var(--ease, ease);
}

.space-booking-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease, ease);
}

.space-booking-btn:hover {
  color: #ffde70;
  transform: translateX(2px);
}

.space-booking-btn:hover svg {
  transform: translateX(4px);
}

.space-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.space-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 253, 247, 0.55);
  letter-spacing: 0.03em;
}

.space-hint svg {
  width: 15px;
  height: 15px;
  color: var(--gold, #f2b705);
  opacity: 0.85;
}

.space-reset-btn {
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: rgba(255, 253, 247, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
}

.space-reset-btn:hover {
  background: rgba(242, 183, 5, 0.18);
  border-color: var(--gold, #f2b705);
  color: var(--gold, #f2b705);
}

.space-reset-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.4s var(--ease, ease);
}

.space-reset-btn:hover svg {
  transform: rotate(-180deg);
}

/* ===== 4. THE INTERACTIVE PHOTO BOARD (STAGE) ===== */
.space-board-wrap {
  position: relative;
  margin-top: clamp(24px, 3.5vw, 36px);
}

.space-board {
  position: relative;
  width: 100%;
  height: clamp(520px, 66vh, 680px);
  border-radius: 20px;
  overflow: hidden;
  background-color: #071510;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 54px),
    radial-gradient(circle at var(--lantern-glow-x, 15%) -10%, rgba(242, 183, 5, 0.22) 0%, rgba(242, 183, 5, 0.06) 45%, transparent 75%);
  border: 1px solid rgba(242, 183, 5, 0.22);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.8),
    0 24px 60px rgba(0, 0, 0, 0.5);
  transition: background 0.6s var(--ease, ease);
  user-select: none;
  -webkit-user-select: none;
}

/* Lantern Light Cone coming down onto the board */
.space-board__spotlight {
  position: absolute;
  top: 0;
  left: var(--lantern-glow-x, 15%);
  transform: translateX(-50%);
  width: 480px;
  height: 380px;
  background: radial-gradient(ellipse at 50% 0%, rgba(242, 183, 5, 0.24) 0%, rgba(242, 183, 5, 0.05) 55%, transparent 75%);
  pointer-events: none;
  transition: left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: blur(20px);
}

/* ===== 5. POLAROID / FRAMED PHOTO CARDS ===== */
.space-card {
  position: absolute;
  will-change: transform, left, top;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 5;
  transition: box-shadow 0.25s, transform 0.25s;
}

.space-card__inner {
  background: #fcfbf8;
  border-radius: 12px;
  padding: 10px 10px 14px 10px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.48),
    0 4px 12px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}

/* Photo Container */
.space-card__photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px; /* "mỗi tấm ảnh bo góc 1 chút" */
  background: #18221e;
}

.space-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  pointer-events: none;
  transition: transform 0.4s var(--ease, ease);
}

/* Subtle zoom hint on photo hover */
.space-card__zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 32, 25, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.space-card__zoom-hint svg {
  width: 16px;
  height: 16px;
}

.space-card:hover .space-card__zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.space-card:hover .space-card__photo img {
  transform: scale(1.03);
}

/* Polaroid Bottom Label */
.space-card__caption {
  padding-top: 10px;
  padding-inline: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.space-card__tag {
  font-family: var(--f-body, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: #8c7b6c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.space-card__title {
  font-family: var(--f-head, "Playfair Display", Georgia, serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #241d16;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Aspect Ratio / Sizing variants based on photo proportion */
.space-card--portrait {
  width: 255px;
}
.space-card--portrait .space-card__photo {
  height: 320px;
}

.space-card--landscape {
  width: 335px;
}
.space-card--landscape .space-card__photo {
  height: 230px;
}

.space-card--square {
  width: 275px;
}
.space-card--square .space-card__photo {
  height: 275px;
}

/* Dragging Active State */
.space-card.is-dragging {
  cursor: grabbing !important;
  z-index: 9999 !important;
  transition: none !important;
}

.space-card.is-dragging .space-card__inner {
  transform: scale(1.048);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.65),
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(242, 183, 5, 0.25);
}

/* Entrance Animation when switching tabs */
.space-card.is-entering {
  animation: cardFlyIn 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes cardFlyIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92) rotate(var(--rot, 0deg));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--rot, 0deg));
  }
}

/* ===== 6. LIGHTBOX MODAL (BẤM ĐỂ XEM LỚN) ===== */
.space-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.space-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.space-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.space-lightbox__dialog {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.space-lightbox.is-open .space-lightbox__dialog {
  transform: scale(1);
}

.space-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 253, 247, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}

.space-lightbox__close:hover {
  background: var(--gold, #f2b705);
  border-color: var(--gold, #f2b705);
  color: #0d211a;
  transform: rotate(90deg);
}

.space-lightbox__media {
  position: relative;
  max-width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(242, 183, 5, 0.25);
  background: #091a14;
}

.space-lightbox__img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.space-lightbox__footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: 8px;
  color: #fff;
}

.space-lightbox__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.space-lightbox__badge {
  background: rgba(242, 183, 5, 0.2);
  color: var(--gold, #f2b705);
  border: 1px solid rgba(242, 183, 5, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.space-lightbox__title {
  font-family: var(--f-head, "Playfair Display", Georgia, serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.space-lightbox__counter {
  font-size: 0.88rem;
  color: rgba(255, 253, 247, 0.65);
}

/* Nav arrows */
.space-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(12, 32, 25, 0.75);
  border: 1px solid rgba(242, 183, 5, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 3;
}

.space-lightbox__nav:hover {
  background: var(--gold, #f2b705);
  color: #0d211a;
  transform: translateY(-50%) scale(1.1);
}

.space-lightbox__nav--prev {
  left: -64px;
}

.space-lightbox__nav--next {
  right: -64px;
}

/* ===== 7. RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .space-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .space-info {
    max-width: 100%;
    margin-left: 0;
  }
  .space-card--portrait {
    width: 220px;
  }
  .space-card--portrait .space-card__photo {
    height: 275px;
  }
  .space-card--landscape {
    width: 280px;
  }
  .space-card--landscape .space-card__photo {
    height: 195px;
  }
  .space-card--square {
    width: 240px;
  }
  .space-card--square .space-card__photo {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .space-tabs {
    gap: clamp(10px, 3vw, 18px);
    justify-content: space-around;
    width: 100%;
  }
  .space-tab__lantern {
    width: 44px;
    height: 66px;
  }
  .space-tab__name {
    font-size: clamp(0.95rem, 3.4vw, 1.15rem);
  }
  .space-board {
    height: clamp(450px, 58vh, 500px);
  }
  .space-card--portrait {
    width: 175px;
  }
  .space-card--portrait .space-card__photo {
    height: 220px;
  }
  .space-card--landscape {
    width: 220px;
  }
  .space-card--landscape .space-card__photo {
    height: 150px;
  }
  .space-card--square {
    width: 185px;
  }
  .space-card--square .space-card__photo {
    height: 185px;
  }
  .space-card__title {
    font-size: 0.78rem;
  }
  .space-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }
  .space-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .space-hint {
    font-size: 0.8rem;
  }

  /* Lightbox on mobile */
  .space-lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    background: rgba(12, 32, 25, 0.85);
    border: 1px solid rgba(242, 183, 5, 0.4);
  }
  .space-lightbox__dialog {
    max-width: 94vw;
    max-height: 86vh;
  }
  .space-lightbox__media {
    max-height: 64vh;
  }
  .space-lightbox__img {
    max-height: 64vh;
  }
  .space-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .space-lightbox__nav--prev {
    left: 6px;
  }
  .space-lightbox__nav--next {
    right: 6px;
  }
  .space-lightbox__footer {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .space-lightbox__title {
    font-size: 0.96rem;
  }
  .space-lightbox__badge {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
  .space-lightbox__counter {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .space-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
  }
  .space-sec__eyebrow-row {
    gap: 12px;
  }
  .space-tabs {
    gap: 8px;
  }
  .space-tab__cord {
    height: 16px;
  }
  .space-tab__lantern {
    width: 38px;
    height: 56px;
  }
  .space-tab__num {
    font-size: 0.7rem;
  }
  .space-tab__name {
    font-size: clamp(0.88rem, 3.8vw, 1rem);
  }
  .space-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    min-height: auto;
    margin-bottom: 16px;
  }
  .space-board {
    height: 440px;
    border-radius: 14px;
  }
  .space-card--portrait {
    width: 155px;
  }
  .space-card--portrait .space-card__photo {
    height: 190px;
  }
  .space-card--landscape {
    width: 195px;
  }
  .space-card--landscape .space-card__photo {
    height: 135px;
  }
  .space-card--square {
    width: 165px;
  }
  .space-card--square .space-card__photo {
    height: 165px;
  }
  .space-card__inner {
    padding: 7px 7px 10px 7px;
    border-radius: 10px;
  }
  .space-card__caption {
    padding-top: 6px;
    gap: 4px;
  }
  .space-card__tag {
    font-size: 0.65rem;
  }
  .space-card__title {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-tab,
  .space-tab:nth-child(1),
  .space-tab:nth-child(2),
  .space-tab:nth-child(3),
  .space-tab .lantern-tassel {
    animation: none !important;
  }
}
