/* Room gallery — editorial layout built around the real room photography. */
.room-hero {
  position: relative;
  min-height: min(900px, 88svh);
  padding: 78px 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #061326;
  color: var(--c-ivory);
}

.room-hero-media {
  position: absolute;
  inset: 78px 0 0;
}

.room-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  animation: roomHeroIn 1.25s cubic-bezier(.2,.7,.2,1) both;
}

.room-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 78px 0 0;
  background:
    linear-gradient(90deg, rgba(3,12,25,.74), rgba(3,12,25,.16) 58%, rgba(3,12,25,.03)),
    linear-gradient(0deg, rgba(3,12,25,.63), transparent 44%);
  pointer-events: none;
}

.room-hero-copy {
  position: absolute;
  z-index: 2;
  left: max(var(--px), calc((100vw - 1320px) / 2));
  bottom: clamp(72px, 10vw, 124px);
  max-width: 720px;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}

.room-hero-label {
  display: block;
  margin-bottom: 18px;
  color: var(--c-gold-p);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: .48em;
  text-transform: uppercase;
}

.room-hero h1 {
  color: var(--c-ivory);
  font-size: clamp(29px, 4.1vw, 58px);
  font-weight: 200;
  line-height: 1.55;
  letter-spacing: .09em;
}

.room-hero h1 span { display: block; white-space: nowrap; }

.room-hero-copy p {
  margin-top: 22px;
  color: rgba(255,249,241,.86);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 2;
  letter-spacing: .08em;
}

.room-hero-open {
  position: absolute;
  z-index: 3;
  right: max(var(--px), calc((100vw - 1320px) / 2));
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,249,241,.55);
  background: transparent;
  color: var(--c-ivory);
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 12px;
  letter-spacing: .16em;
  transition: color .25s, border-color .25s;
}

.room-hero-open span { font-size: 18px; font-weight: 200; line-height: 1; }
.room-hero-open b { color: var(--c-gold-p); font-weight: 400; }
.room-hero-open:hover { color: var(--c-gold-p); border-color: var(--c-gold-p); }

.room-intro {
  padding: clamp(84px, 10vw, 142px) var(--px) clamp(72px, 9vw, 118px);
  background:
    radial-gradient(circle at 12% 16%, rgba(45,95,196,.1), transparent 27%),
    var(--c-ivory);
  color: var(--page-ink);
}

.room-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.room-intro h2,
.room-gallery-heading h2 {
  color: var(--page-ink);
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .1em;
}

.room-intro h2 { margin-top: 14px; }
.room-intro-inner > p {
  color: var(--page-copy);
  font-size: 15px;
  line-height: 2.25;
  letter-spacing: .055em;
}

.room-gallery-section {
  padding: clamp(84px, 10vw, 140px) var(--px);
  background: #f4f9fa;
  color: var(--page-ink);
}

.room-gallery-heading {
  max-width: 1320px;
  margin: 0 auto clamp(38px, 5vw, 62px);
  text-align: center;
}

.room-gallery-heading h2 { margin-top: 12px; }
.room-gallery-heading p {
  margin-top: 16px;
  color: var(--page-muted);
  font-size: 13px;
  letter-spacing: .06em;
}

.room-gallery-grid {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
  max-width: 1320px;
  margin: 0 auto;
}

.room-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3.5vw, 52px);
}

.room-photo-pair-portrait { padding: 0 clamp(0px, 4vw, 72px); }
.room-photo { min-width: 0; }
.room-photo button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #dbe9ed;
  box-shadow: 0 22px 54px rgba(16,41,75,.1);
  text-align: left;
}

.room-photo-wide button { aspect-ratio: 3 / 2; }
.room-photo-pair-portrait button { aspect-ratio: 3 / 4; }
.room-photo-pair-detail button { aspect-ratio: 3 / 2; }

.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.65,.3,1), filter .4s ease;
}

.room-photo button::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
}

.room-photo button:hover img,
.room-photo button:focus-visible img { transform: scale(1.025); filter: brightness(.96); }

.room-photo-expand {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(6,19,38,.32);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 200;
  line-height: 1;
  backdrop-filter: blur(7px);
  transition: background .25s, transform .25s;
}

.room-photo button:hover .room-photo-expand { background: rgba(6,19,38,.62); transform: rotate(90deg); }

.room-photo figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 15px;
  padding-top: 16px;
  color: var(--page-ink);
}

.room-photo figcaption span,
.room-photo figcaption small {
  color: #8a642b;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.room-photo figcaption strong {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 300;
  letter-spacing: .08em;
}

.room-photo-note {
  margin: 8px 0 0 40px;
  color: var(--page-muted);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .055em;
}

.room-lightbox[hidden] { display: none; }
.room-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  color: var(--c-ivory);
}

.room-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3,11,24,.96);
  backdrop-filter: blur(12px);
}

.room-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1320px, 100%);
  height: min(860px, calc(100svh - clamp(36px, 8vw, 104px)));
}

.room-lightbox-stage {
  display: grid;
  min-height: 0;
  place-items: center;
}

.room-lightbox-stage img {
  width: 100%;
  height: min(780px, calc(100svh - 170px));
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

.room-lightbox-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  padding-top: 17px;
  color: rgba(255,249,241,.84);
  font-size: 13px;
  letter-spacing: .08em;
}

.room-lightbox-meta span {
  color: var(--c-gold-p);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .18em;
}

.room-lightbox-close,
.room-lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,249,241,.42);
  border-radius: 50%;
  background: rgba(3,11,24,.46);
  color: var(--c-ivory);
  font-family: 'Cormorant Garamond', serif;
  transition: border-color .25s, background .25s;
}

.room-lightbox-close { top: 0; right: 0; width: 44px; height: 44px; font-size: 28px; }
.room-lightbox-arrow { top: 50%; width: 48px; height: 48px; font-size: 35px; transform: translateY(-50%); }
.room-lightbox-prev { left: 12px; }
.room-lightbox-next { right: 12px; }
.room-lightbox-close:hover,
.room-lightbox-arrow:hover { border-color: var(--c-gold-p); background: rgba(3,11,24,.78); }

html.room-lightbox-open,
html.room-lightbox-open body { overflow: hidden; }

@keyframes roomHeroIn {
  from { opacity: .25; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  .room-hero { min-height: 76svh; padding-top: 70px; }
  .room-hero-media { inset: 70px 0 0; }
  .room-hero-shade {
    inset: 70px 0 0;
    background: linear-gradient(0deg, rgba(3,12,25,.78), transparent 68%);
  }
  .room-hero-copy { right: 20px; bottom: 86px; left: 20px; }
  .room-hero-copy { width: auto; max-width: none; }
  .room-hero h1 { font-size: clamp(22px, 6.2vw, 26px); letter-spacing: .025em; }
  .room-hero-copy p { max-width: 100%; margin-top: 14px; font-size: 11.5px; line-height: 1.9; }
  .room-hero-open { right: auto; bottom: 24px; left: 20px; }
  .room-intro h2 { font-size: 20px; letter-spacing: .055em; }
  .room-br-desktop { display: none; }
  .room-photo-pair { grid-template-columns: 1fr; gap: 52px; }
  .room-photo-pair-portrait { padding: 0; }
  .room-photo figcaption { gap: 10px; }
  .room-photo figcaption small { display: none; }
  .room-photo-note { margin-left: 36px; }
  .room-lightbox { padding: 68px 14px 28px; }
  .room-lightbox-panel { height: calc(100svh - 96px); }
  .room-lightbox-stage img { height: calc(100svh - 180px); }
  .room-lightbox-close { top: -52px; }
  .room-lightbox-arrow { top: calc(50% - 22px); width: 42px; height: 42px; }
  .room-lightbox-prev { left: 6px; }
  .room-lightbox-next { right: 6px; }
  .room-lightbox-meta { gap: 14px; padding: 13px 3px 0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .room-hero-media img,
  .room-photo img,
  .room-photo-expand { animation: none; transition: none; }
}
