/* Scoped to these standalone July 2026 articles. */
.kurashiki-feature .hero-pair{max-width:none;margin:0;gap:12px}
.kurashiki-feature .hero-pair>.photo{aspect-ratio:4/5}
.kurashiki-feature .pair>.photo{overflow:hidden}
.kurashiki-feature .pair img{object-fit:cover}
.kurashiki-feature .wide-photo{width:100%;max-width:1440px;margin:65px auto}
.kurashiki-feature .wide-photo img{width:100%;height:auto}
.kurashiki-feature .single-photo{width:calc(100% - 56px);max-width:700px;margin:65px auto}
.kurashiki-feature .single-photo img{max-height:920px;width:100%;object-fit:cover}
.kurashiki-feature .photo-caption{max-width:900px;width:calc(100% - 56px);margin:-42px auto 64px;font:11px/1.9 var(--sans);color:var(--muted)}
.kurashiki-feature .quote{max-width:650px;width:calc(100% - 56px);margin:56px auto;padding:12px 0 12px 28px;border-left:1px solid #979e93}
.kurashiki-feature .quote p{font:500 23px/1.9 var(--serif);margin:0 0 18px}
.kurashiki-feature .quote cite{font:11px/1.8 var(--sans);font-style:normal;color:var(--muted)}
.kurashiki-feature .reference{display:block;font:11px/1.8 var(--sans);color:var(--muted);margin-top:24px}
.kurashiki-feature .trip-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;width:calc(100% - 48px);max-width:1100px;margin:20px auto 70px;font:12px/1.9 var(--sans)}
.kurashiki-feature .trip-nav a{text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:8px}
.kurashiki-feature section{scroll-margin-top:30px}
.kurashiki-feature.journey .visit-details{margin-top:45px}
.kurashiki-feature.journey .visit-details h2{font-size:clamp(24px,3vw,36px)}
.kurashiki-feature .hero-wide{width:100%;margin:34px 0 0}
.kurashiki-feature .hero-wide{max-width:1600px;margin:0 auto}
.kurashiki-feature .hero-wide img{width:100%;height:auto;object-fit:contain}
.kurashiki-feature.journey .article-title{text-align:center;padding-bottom:38px}
.kurashiki-feature.journey .article-title h1{font-size:clamp(44px,5.6vw,80px)}
.kurashiki-feature.journey .opening{padding-top:25px}
.kurashiki-feature .stay-card{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);max-width:1100px;width:calc(100% - 56px);margin:60px auto;background:#efeee7}
.kurashiki-feature .stay-card .photo{aspect-ratio:3/2;align-self:center;overflow:hidden}
.kurashiki-feature .stay-card img{width:100%;height:100%;object-fit:contain}
.kurashiki-feature .stay-card-copy{align-self:center;padding:clamp(24px,3vw,40px)}
.kurashiki-feature .stay-card-copy h3{font:500 29px/1.65 var(--serif);margin:12px 0 24px}
.kurashiki-feature .stay-card-copy p{font:15px/2.1 var(--serif)}
.kurashiki-feature .stay-card-copy p a{font-size:12px;display:inline-block;margin-top:14px}
.kurashiki-feature .text-link{max-width:650px;width:calc(100% - 56px);margin:40px auto 80px;font-size:13px}
.kurashiki-feature .closing-photo{width:100%;margin:90px 0 0;position:relative}
.kurashiki-feature .closing-photo img{width:100%;height:auto}
.kurashiki-feature .closing-photo figcaption{max-width:900px;width:calc(100% - 56px);margin:25px auto;font:16px/2 var(--serif)}
.kurashiki-feature .editorial-note{max-width:900px;width:calc(100% - 56px);margin:60px auto;font:11px/2 var(--sans);color:var(--muted)}
.kurashiki-feature .sources summary{cursor:pointer;padding:12px 0}
.kurashiki-feature .sources ul{padding-left:18px;line-height:2.2}
.kurashiki-feature .related{max-width:1100px;width:calc(100% - 56px);margin:80px auto 100px;border-top:1px solid var(--line);padding-top:34px}
.kurashiki-feature .related h2{font:500 25px/1.8 var(--serif);margin:0 0 28px}
.kurashiki-feature .related-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.kurashiki-feature .related a{display:block;text-decoration:none}
.kurashiki-feature .related img{width:100%;aspect-ratio:3/2;object-fit:cover}
.kurashiki-feature .related small{display:block;font-size:10px;margin:18px 0 8px;color:var(--muted)}
.kurashiki-feature .related strong{font:500 22px/1.6 var(--serif)}
.kurashiki-feature .related [data-article-title]{white-space:pre-line}
@media(max-width:750px){
 .kurashiki-feature.journey .article-title h1{font-size:clamp(26px,8vw,47px);letter-spacing:.04em;text-wrap:balance}
 .kurashiki-feature.journey .article-title h1{font-size:clamp(32px,8.5vw,47px)}
 .kurashiki-feature .hero-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .kurashiki-feature .hero-pair>.photo{aspect-ratio:2/3}
 .kurashiki-feature .hero-pair img{height:100%;object-fit:cover}
 .kurashiki-feature .hero-wide img{height:auto}
 .kurashiki-feature .wide-photo,.kurashiki-feature .single-photo{margin:40px auto}
 .kurashiki-feature .single-photo{width:calc(100% - 52px)}
 .kurashiki-feature .pair>.landscape{aspect-ratio:3/2}
 .kurashiki-feature .pair>.landscape img{width:100%;height:100%;object-fit:cover}
 .kurashiki-feature .photo-caption{width:calc(100% - 52px);margin:-24px auto 42px;font-size:10px}
 .kurashiki-feature .quote{width:calc(100% - 52px);margin:35px auto;padding-left:19px}
 .kurashiki-feature .quote p{font-size:20px}
 .kurashiki-feature .trip-nav{gap:12px 20px;font-size:11px;margin-bottom:40px}
 .kurashiki-feature .stay-card{grid-template-columns:1fr;width:calc(100% - 36px);margin:40px auto}
 .kurashiki-feature .stay-card .photo{aspect-ratio:3/2}
 .kurashiki-feature .stay-card-copy{padding:25px}
 .kurashiki-feature .stay-card-copy h3{font-size:24px}
 .kurashiki-feature .closing-photo{margin-top:48px}
 .kurashiki-feature .related{margin:50px auto 60px}
 .kurashiki-feature.stay .facility:has(+ .related){margin-bottom:0}
 .kurashiki-feature .related-grid{gap:18px}
 .kurashiki-feature .related strong{font-size:17px}
 .kurashiki-feature .place{white-space:nowrap;font-size:9px}
 .kurashiki-feature.journey .facility h2{font-size:24px}
}

/* Shared stay typography, with horizontal photographs kept in their native frame. */
.kurashiki-feature.stay .hero-wide{max-width:none}
.kurashiki-feature.stay .closing-photo{max-width:none;margin-top:80px}
.kurashiki-feature.stay .source-note{max-width:900px;width:calc(100% - 56px);margin:28px auto 0;color:var(--muted);font-size:11px}
.kurashiki-feature.stay .reflection>span[id]{display:block;scroll-margin-top:30px}
.kurashiki-feature .inline-photo.photo-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.kurashiki-feature .photo-stack .photo img{width:100%;height:auto;object-fit:contain}
@media(max-width:750px){
 .kurashiki-feature.stay .closing-photo{margin-top:45px}
 .kurashiki-feature.stay .source-note{width:calc(100% - 52px);font-size:10px}
}

/* Photo essay: horizontal frames stay horizontal; paired frames always share dimensions. */
.kurashiki-feature .photo-sequence{display:flex;flex-direction:column;gap:12px;max-width:1440px;margin:60px auto}
.kurashiki-feature .photo-sequence .photo-row{margin:0;width:100%;max-width:none}
.kurashiki-feature .photo-sequence .single-photo{width:calc(100% - 56px);max-width:640px;align-self:center;margin:32px auto}
.kurashiki-feature .photo-sequence .single-photo img{height:auto;max-height:none}
.kurashiki-feature .photo-sequence .photo-caption{margin:4px auto 20px}
.kurashiki-feature .photo-sequence .pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kurashiki-feature .photo-sequence .pair>.portrait{aspect-ratio:2/3}
.kurashiki-feature .photo-sequence .pair>.landscape{aspect-ratio:3/2}
.kurashiki-feature .photo-sequence .pair img{width:100%;height:100%;object-fit:cover}
.kurashiki-feature .closing-photo{max-width:1600px;margin-left:auto;margin-right:auto}
@media(max-width:750px){
 .kurashiki-feature .photo-sequence{margin:38px auto;gap:8px}
 .kurashiki-feature .photo-sequence .pair{gap:8px}
 .kurashiki-feature .photo-sequence .single-photo{width:calc(100% - 52px);margin:20px auto}
 .kurashiki-feature .photo-sequence .photo-caption{margin:4px auto 16px}
 .kurashiki-feature .photo-sequence .pair:has(>.landscape){grid-template-columns:minmax(0,1fr)}
}

/* Match each row to its source photographs, including 4:3 camera frames. */
.kurashiki-feature .photo-sequence .pair.native-frames>.photo{aspect-ratio:var(--frame-aspect)}
.kurashiki-feature .photo-sequence .pair.native-frames img{object-fit:contain}
.kurashiki-feature .photo-sequence .pair.mixed-orientation{align-items:start}
.kurashiki-feature .photo-sequence .pair.mixed-orientation>.photo{aspect-ratio:auto}
.kurashiki-feature .photo-sequence .pair.mixed-orientation img{height:auto}
.kurashiki-feature.stay :is(.photo-sequence:has(> #fraeyhuis-entrance), #fraeyhuis-room-photos){
 max-width:1080px;
 margin-inline:auto;
}
.kurashiki-feature .photo-sequence #bruges-chocolate{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:850px){
 .kurashiki-feature .photo-sequence #bruges-goffin-dishes{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Documentary notes are confined to this journey article. */
.journey .fact-note,.journey .weather-note{width:calc(100% - 56px);max-width:650px;margin:44px auto 64px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.journey .fact-note h3,.journey .weather-note h3{font:500 21px/1.65 var(--serif);margin:0 0 16px}
.journey .fact-note p{font:14px/2 var(--sans);margin:0 0 16px}
.journey .note-period{font:11px/1.8 var(--sans);color:var(--muted);letter-spacing:.05em}
.journey .weather-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0 20px}
.journey .weather-days div+div{border-left:1px solid var(--line);padding-left:20px}
.journey .weather-days dt{font:12px/1.8 var(--sans);color:var(--muted)}
.journey .weather-days dd{font:400 clamp(28px,4vw,42px)/1.8 var(--sans);margin:0;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.journey .weather-days dd small{font-size:16px;padding-left:3px;letter-spacing:0}
.journey .data-note{font:11px/1.9 var(--sans);color:var(--muted);margin:12px 0}
.journey .data-source{font:11px/1.9 var(--sans);color:var(--muted);margin:14px 0 0}
.journey .tourism-data{width:calc(100% - 56px);max-width:1100px;margin:0 auto 80px}
.journey .data-intro{max-width:650px;margin:0 auto 35px;font:16px/2.15 var(--serif)}
.journey .data-charts{display:grid;grid-template-columns:1fr 1fr;gap:42px;padding:34px 0 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.journey .data-chart{min-width:0;margin:0}
.journey .data-chart figcaption{font:500 19px/1.6 var(--serif);margin:0 0 12px}
.journey .chart-legend{display:flex;gap:20px;flex-wrap:wrap;font:11px/1.8 var(--sans);margin-bottom:8px}
.journey .chart-legend span:before{content:'';display:inline-block;width:22px;border-top:2px solid var(--series-color);vertical-align:middle;margin-right:7px}
.journey .chart-legend .dashed:before{border-top-style:dashed}
.journey .data-chart svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--sans)}
.journey .foreign-detail{margin:30px 0;max-width:760px;font:14px/2 var(--sans)}
.journey .foreign-detail h3{font:500 19px/1.7 var(--serif);margin:0 0 10px}
.journey .bus-trend{display:flex;flex-wrap:wrap;gap:20px 40px;font:12px/1.8 var(--sans);margin:22px 0}
.journey .bus-trend div{border-left:2px solid #899586;padding-left:14px}
.journey .bus-trend dt{color:var(--muted)}
.journey .bus-trend dd{margin:4px 0 0;font-size:23px;font-variant-numeric:tabular-nums}
.journey .data-table-details{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.journey .data-table-details summary{cursor:pointer;font:12px/1.8 var(--sans);padding:17px 0}
.journey .data-table-scroll{overflow-x:auto;padding-bottom:12px}
.journey .data-table{border-collapse:collapse;width:100%;font:12px/1.8 var(--sans);font-variant-numeric:tabular-nums}
.journey .data-table caption{text-align:left;margin-bottom:15px;color:var(--muted)}
.journey .data-table th,.journey .data-table td{text-align:right;white-space:nowrap;padding:10px 14px;border-bottom:1px solid var(--line)}
.journey .data-table th:first-child{padding-left:0;text-align:left}
.journey .data-table th{font-weight:500}
.journey .data-table tbody tr:last-child{background:#eeeee6}
.journey .article-data-table{margin-block:36px 48px}
.journey .article-data-table h3{margin-bottom:8px}
.journey .article-data-table .data-note{margin-bottom:18px}
.journey .article-data-table .table-references{margin-top:12px;font:11px/1.9 var(--sans);color:var(--muted)}
.journey .article-data-table .data-table tbody tr:last-child{background:transparent}
.journey .article-data-table .data-table th,.journey .article-data-table .data-table td{padding:8px 4px;white-space:normal}
.journey .article-data-table .data-table th:first-child{padding-left:0}
.journey .hourly-visitors h3{text-wrap:balance}
.journey .hourly-visitors .data-chart{margin:20px 0 12px}
.journey .hourly-visitors .dinner-hour{background:#e2e9dd}
.journey .hourly-visitors .dinner-hour :is(th,td){font-weight:650}
.journey .hourly-visitors .data-table tbody th:first-child{padding-left:8px}
.journey #omishima-treasures .data-table th:first-child{width:64%}
.journey #omishima-treasures .data-table :is(th,td):nth-child(2){text-align:left}
.journey #omishima-treasures .data-table :is(th,td):last-child{white-space:nowrap}
.journey .data-methods{max-width:900px;margin-top:24px}
.journey .visitor-counts h3{font:500 23px/1.65 var(--serif);margin:0 0 18px}
.journey .visitor-counts .data-charts{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.journey .visitor-counts-single{max-width:650px}
.journey .visitor-counts-single .data-charts{grid-template-columns:minmax(0,1fr)}
.journey .visitor-counts-single svg{max-width:520px;margin:auto}
.journey .visitor-counts-table{margin-top:24px}
.journey .visitor-counts-table caption{font-weight:500;color:inherit}
.journey .visitor-counts-table caption span{display:block;margin-top:4px;font-weight:400;color:var(--muted)}
@media(max-width:750px){
 .journey .fact-note,.journey .weather-note,.journey .tourism-data{width:calc(100% - 52px)}
 .journey .weather-days{gap:8px}
 .journey .weather-days div+div{padding-left:12px}
 .journey .weather-days dd{font-size:30px}
 .journey .weather-days dd small{font-size:12px}
 .journey .data-charts,.journey .visitor-counts .data-charts{grid-template-columns:1fr;gap:34px}
 .journey .data-chart+ .data-chart{padding-top:28px;border-top:1px solid var(--line)}
 .journey .data-intro{font-size:15px}
 .journey .bus-trend{gap:16px}
 .journey .bus-trend dd{font-size:18px}
 .journey .bus-trend div{padding-left:9px}
 .journey .tourism-data{margin-bottom:50px}
}
@media(max-width:480px){
 .journey .visitor-counts-table .data-table th,.journey .visitor-counts-table .data-table td{padding:8px 5px}
 .journey .visitor-counts-table .data-table th:first-child{padding-left:0}
 .journey .visitor-counts-table .data-table th[scope=col]{white-space:normal}
}

/* CMS editing wrappers retain the article's photographed proportions. */
.kurashiki-feature .photo>.stay-edit-block{display:block}
.kurashiki-feature .hero-wide .photo img,.kurashiki-feature .wide-photo .photo img,.kurashiki-feature .single-photo .photo img,.kurashiki-feature .photo-stack .photo img,.kurashiki-feature .closing-photo .photo img{height:auto;object-fit:contain}
.kurashiki-feature .photo-stack{display:grid;gap:16px}
.kurashiki-feature .feature-edit-label{display:block;max-width:650px;margin:8px auto;font:11px/1.8 var(--sans);color:var(--muted)}
.kurashiki-feature .prose .stay-edit-block p:last-child{margin-bottom:0}
.kurashiki-feature .stay-edit-block{color:inherit;text-decoration:none}

/* Keep the whole heading clickable, including spaces between wrapped lines. */
.kurashiki-feature h1>.stay-edit-block,.kurashiki-feature h2>.stay-edit-block,.kurashiki-feature h3>.stay-edit-block{display:block}

.kurashiki-feature .portrait-stack {
  --photo-gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, calc((800% - 2 * var(--photo-gap)) / 17)) minmax(0, 1fr);
  gap: var(--photo-gap);
}
@media (min-width: 751px) {
  .kurashiki-feature .photo-sequence > .pair + .portrait-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kurashiki-feature .portrait-stack .landscape-stack {
  display: grid;
  gap: var(--photo-gap);
}
.kurashiki-feature .portrait-stack .photo {
  position: relative;
  overflow: hidden;
}
.kurashiki-feature .portrait-stack .landscape {
  aspect-ratio: 3 / 2;
}
.kurashiki-feature .portrait-stack .photo > :is(img, .stay-edit-block) {
  position: absolute;
  inset: 0;
}
.kurashiki-feature .portrait-stack .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 750px) {
  .kurashiki-feature .portrait-stack { --photo-gap: 8px; }
}

.kurashiki-feature .photo-sequence #omishima-camphor {
  max-width: 650px;
}

.kurashiki-feature .photo-sequence:has(+ [data-official-links-chapter]) {
  margin-bottom: 0;
}

.kurashiki-feature [data-official-links-chapter] {
  width: calc(100% - 56px);
  max-width: 650px;
  margin: 24px auto 0;
  scroll-margin-top: min(65vh, 560px);
}

.kurashiki-feature .photo-sequence :is(#omishima-seaside-shop, #omishima-seaside-details) {
  width: calc(100% - 56px);
  max-width: 650px;
  align-self: center;
}

.kurashiki-feature .photo-sequence .single-photo:has(+ #omishima-tamaya-food) {
  margin-bottom: 0;
}

.kurashiki-feature .photo-sequence [data-photo="_52L7670.JPG"] img {
  object-position: 89% center;
}

.kurashiki-feature #omishima-afterword-coffee + .photo-sequence :is(#omishima-seaside-shop, #omishima-seaside-details) {
  width: 100%;
  max-width: none;
}

.kurashiki-feature #omishima-afterword-coffee + .photo-sequence [data-photo="_52L7670.JPG"] img {
  object-position: 58% center;
}

@media (max-width: 750px) {
  .kurashiki-feature [data-official-links-chapter],
  .kurashiki-feature .photo-sequence :is(#omishima-seaside-shop, #omishima-seaside-details) {
    width: calc(100% - 52px);
  }
  .kurashiki-feature .photo-sequence .pair:is(#omishima-winery-limone, #omishima-umisora-pair, #omishima-tamaya-food, #omishima-seaside-shop),
  .kurashiki-feature .photo-sequence #omishima-tamaya-food + .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Level the storefront while preserving the original photograph. */
.kurashiki-feature [data-photo="beitou-visit-21"] {
  container-type: inline-size;
  overflow: hidden;
}
.kurashiki-feature [data-photo="beitou-visit-21"] img[src$="/01M7FAV9FVJ9QRGN4QJM0F0VRN.webp"] {
  transform: translateX(3.4cqw) scale(1.12) skewY(3.1deg) perspective(340cqw) rotateX(-13deg) rotateY(5deg);
}

/* Keep the Beitou landscape pairs aligned, including photos with different proportions. */
.kurashiki-feature .photo-sequence :is(#beitou-morning-views, #beitou-town-cafe-lanterns, #beitou-town-bath-library) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kurashiki-feature .photo-sequence :is(#beitou-morning-views, #beitou-town-cafe-lanterns, #beitou-town-bath-library) > .photo {
  aspect-ratio: 3 / 2;
}
.kurashiki-feature .photo-sequence :is(#beitou-morning-views, #beitou-town-cafe-lanterns, #beitou-town-bath-library) img {
  object-fit: cover;
}

/* Straighten the breakfast-room doorway while keeping the original photo. */
.kurashiki-feature #beitou-breakfast-setting [data-photo="beitou-breakfast-entrance"] {
  container-type: inline-size;
  overflow: hidden;
}
.kurashiki-feature #beitou-breakfast-setting [data-photo="beitou-breakfast-entrance"] img {
  transform: scale(1.055) rotate(0.5deg) skewX(-0.8deg) perspective(700cqw) rotateX(-5deg);
}
