/* Shared stay opening, based on the Kurashiki photo essays. */
body.immersive-article.stay-article{max-width:none;margin:0;padding:0}
body.immersive-article.stay-article::before{display:none}
body.immersive-article.stay-article>.site-header{position:relative;inset:auto;width:100%;height:auto;min-height:100px;margin:0;padding:25px 5vw;background:#213d32;color:#fff;gap:28px;align-items:center}
body.immersive-article.stay-article>.site-header .logo{flex-shrink:0}
body.immersive-article.stay-article>.site-header nav a{display:block}
body.immersive-article.stay-article .article-opening{width:100%;height:auto;max-width:none;min-height:0;margin:0;padding:0;background:transparent}
/* Natural photo height removes the separate green letterbox below the image. */
body.immersive-article.stay-article .article-opening :is(figure,a,.stay-edit-block){height:auto;aspect-ratio:auto}
body.immersive-article.stay-article .article-opening img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain;aspect-ratio:var(--stay-photo-ratio,auto)!important}
@media(min-width:768px){
 body.immersive-article.stay-article .article-opening.portrait-opening img{height:min(85svh,66vw)!important;aspect-ratio:auto!important;object-fit:cover;object-position:center 78%}
}
@media screen {
  body.immersive-article.stay-article #cover [data-photo="beitou-visit-19"] img {
    height: min(84svh, 75vw) !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    object-position: center 88%;
  }
}
@media screen and (max-width: 767px) {
  body.immersive-article.stay-article #cover [data-photo="beitou-visit-19"] img {
    height: min(66svh, 115vw) !important;
    object-position: 57% center;
  }
}
body.immersive-article.stay-article article>.masthead.stay-category-band{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:none;margin:0;padding:25px 5vw;background:#213d32;color:#fff;border:0;gap:20px}
body.immersive-article.stay-article article>.masthead.stay-category-band .series{margin:0;color:inherit;font:500 14px/1.8 var(--serif);letter-spacing:.16em}
body.immersive-article.stay-article .series>a{display:inline-block;padding:3px 0;color:inherit;text-decoration:none}
body.immersive-article.stay-article .series>a:hover{text-decoration:underline;text-underline-offset:5px}
body.immersive-article.stay-article .series>a:focus-visible{outline:1px solid white;outline-offset:6px}
body.immersive-article.stay-article .stay-series-edit{font:11px/1.8 var(--sans);opacity:.8}
body.immersive-article.stay-article .article-title{width:100%;max-width:1260px;margin:0 auto;padding:76px 5vw 70px;text-align:left}
body.immersive-article.stay-article .article-title h1{font:500 clamp(44px,5.6vw,80px)/1.55 var(--serif);letter-spacing:.08em;margin:0 0 26px}
body.immersive-article.stay-article .article-title .subtitle{font:var(--article-lead-size,17px)/2.25 var(--serif);letter-spacing:.035em;margin:0 0 var(--article-lead-credit-gap,32px)}
body.immersive-article.stay-article .article-title .byline{font:12px/1.9 var(--sans);letter-spacing:.04em;margin:0}
.stay-profile{margin-top:28px}
.stay-profile>[data-edit-field="facility_profile"]{display:block}
.stay-profile-rate{margin:24px 0 12px;padding:14px 0 0;border-top:1px solid var(--line);font:13px/1.9 var(--sans)}
.stay-profile-rate dt{font-weight:600}
.stay-profile-rate dd{margin:3px 0 0;white-space:pre-line}
.stay-references{width:calc(100% - 52px);max-width:900px;margin:0 auto clamp(64px,8vw,100px);padding-top:24px;border-top:1px solid var(--line)}
.facility:has(+ .stay-references){margin-bottom:28px}
.facility+.stay-references{padding-top:0;border-top:0}
.stay-references h2{margin:0 0 14px;font:500 14px/1.8 var(--sans);overflow-wrap:anywhere}
.stay-profile-sources{display:grid;gap:12px;margin:0;padding:0;list-style:none;font:14px/1.9 var(--sans);overflow-wrap:anywhere}
.stay-references>[data-edit-field="facility_profile_sources"]{display:inline-block;margin-top:12px}
.visit-details:has(.stay-profile){margin-bottom:0}
.visit-details:has(.stay-profile)>.visit-context{margin-bottom:0}
@media(max-width:767px){
 body.immersive-article.stay-article>.site-header{min-height:100px;padding:22px 24px;gap:20px;align-items:flex-start}
 body.immersive-article.stay-article>.site-header nav{gap:6px 14px;font-size:9px;max-width:64%;line-height:1.8}
 body.immersive-article.stay-article>.site-header nav a{padding:0}
 body.immersive-article.stay-article article>.masthead.stay-category-band{padding:18px 24px}
 body.immersive-article.stay-article article>.masthead.stay-category-band .series{font-size:13px}
 body.immersive-article.stay-article .article-title{padding:44px 26px 42px}
 body.immersive-article.stay-article .article-title h1{font-size:clamp(35px,10.4vw,47px);line-height:1.6;letter-spacing:.06em}
 body.immersive-article.stay-article .article-title .byline{font-size:11px}
}

body.immersive-article.stay-article #cover img[src$="/01M72MNWJW5ENWACY295WVFTJY.jpeg"] {
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
  object-position: center 85%;
}

/* Made in Catherine: frame the bed, windows and pendant in the opening photo. */
body.immersive-article.stay-article #cover img[src$="/01M7H6E5WHP5Y059DAM7N23GYR.01M7H6E5X9BXXRFZ588WGTAHXD.jpeg"] {
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
  object-position: center 61%;
}

/* Fujiya: leave breathing room above the roof and reduce the foreground bridge. */
body.immersive-article.stay-article #cover img[src$="/01M7V871YPWA45C9X605EZB99M.webp"] {
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover;
  object-position: center 30%;
  transform: rotate(-0.8deg) scale(1.025);
}
@media (max-width: 767px) {
  body.immersive-article.stay-article #cover img[src$="/01M7V871YPWA45C9X605EZB99M.webp"] {
    aspect-ratio: 4 / 3 !important;
  }
}

.stay-article [data-newt-hotel] > article > .photo-sequence {
  width: 100%;
}

body.immersive-article.stay-article .nagoma-title {
  container-type: inline-size;
}
body.immersive-article.stay-article .nagoma-title h1 {
  font-size: min(80px, 7cqi);
}
.nagoma-title-line {
  display: block;
}
.nagoma-title-phrase {
  white-space: nowrap;
}
@media (max-width: 767px) {
  body.immersive-article.stay-article .nagoma-title h1 {
    font-size: min(47px, 7cqi);
  }
}

body.immersive-article.stay-article .primard-title {
  container-type: inline-size;
}
body.immersive-article.stay-article .primard-title h1 {
  font-size: min(80px, 6.5cqi);
}
.primard-title-phrase {
  white-space: nowrap;
}
@media (max-width: 767px) {
  body.immersive-article.stay-article .primard-title h1 {
    font-size: min(47px, 10.4vw, 11cqi);
  }
}
