/* Heritage → Future. Follow the current TCM.ch design tokens (Figtree, charcoal, warm neutral surfaces). Blue is reserved for booking CTAs. */
.heritage-story{--heritage-ink:var(--tcm-ink,#171B1A);--heritage-muted:var(--tcm-text-soft,#505453);--heritage-border:var(--tcm-border,#D7D4D0);--heritage-surface:var(--tcm-surface,#F4F2EF);position:relative;background:var(--heritage-surface);color:var(--heritage-ink);padding:clamp(40px,5vw,var(--section-py,80px)) 0;isolation:isolate;font-family:var(--font-sans,'Figtree',sans-serif)}
.heritage-story *{box-sizing:border-box}
.heritage-story .wrap{width:min(1200px,calc(100% - 40px));max-width:1200px;margin-inline:auto}
.heritage-kicker{font:750 11px/1.5 var(--font-sans,system-ui);letter-spacing:.13em;color:var(--heritage-muted);text-transform:uppercase;margin:0 0 14px!important}
.heritage-kicker span{color:var(--tcm-muted,#707472);margin:0 6px}
.heritage-story h2{font-family:var(--font-sans,'Figtree',sans-serif)!important;font-size:var(--fs-h2,clamp(26px,3.5vw,40px))!important;line-height:var(--lh-heading,1.15)!important;font-weight:800!important;letter-spacing:var(--tracking-heading,-.03em)!important;margin:0 0 20px!important;color:var(--heritage-ink)!important}
.heritage-story h2 em{font-style:normal;font-weight:800;color:inherit}
.heritage-story-copy>p:not(.heritage-kicker),.heritage-about-heading>p:not(.heritage-kicker){font:400 clamp(15px,1.35vw,17px)/var(--lh-body,1.6) var(--font-sans,system-ui);color:var(--tcm-text,#353938);margin:0 0 24px;max-width:560px}
.heritage-story-link{display:inline-flex;gap:12px;align-items:center;color:var(--tcm-text,#353938)!important;text-decoration:none!important;font:700 14px/1.4 var(--font-sans,system-ui);border-bottom:1px solid var(--heritage-border);padding-bottom:7px;transition:gap .2s,border-color .2s}
.heritage-story-link:hover{gap:18px;border-color:var(--tcm-ink,#171B1A)}
.heritage-story-inner{display:grid;grid-template-columns:minmax(265px,.82fr) minmax(0,1.18fr);gap:clamp(30px,4vw,72px);align-items:center}
.heritage-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:stretch}
.heritage-tile{min-width:0;overflow:hidden;position:relative;margin:0!important;border-radius:var(--r-card,16px);background:var(--tcm-surface-strong,#E8E6E3);min-height:120px;isolation:isolate}
.heritage-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.heritage-tile:hover img{transform:scale(1.04)}
.heritage-tile figcaption{position:absolute;left:0;right:0;bottom:0;color:#fff;background:linear-gradient(transparent,rgba(7,22,31,.67));padding:32px 14px 12px;font:700 11px/1.35 var(--font-sans,system-ui);letter-spacing:.04em;text-shadow:0 1px 2px #233}
.heritage-tile--art{background:var(--tcm-surface-strong,#E8E6E3);display:grid;place-items:center}
.heritage-tile--korea svg{display:block;width:100%;height:100%;object-fit:cover}
.heritage-tile-art-label{position:absolute;left:16px;top:16px;z-index:2;color:var(--tcm-text,#353938);font:750 10px/1.4 var(--font-sans,system-ui);letter-spacing:.13em}
.heritage-tile--bridge{background:var(--tcm-surface-strong,#E8E6E3);color:var(--tcm-ink,#171B1A);padding:16px;align-content:center}
.heritage-bridge-art{display:flex;align-items:center;justify-content:center;gap:9px;font:750 10px/1.4 var(--font-sans,system-ui);letter-spacing:.16em;color:var(--tcm-text,#353938)}
.heritage-bridge-art i{display:block;width:34px;height:1px;background:var(--tcm-muted,#707472);position:relative}
.heritage-bridge-art i:after{content:'›';position:absolute;right:-2px;top:-9px;font-size:18px;font-style:normal}
.heritage-tile--bridge p{font:800 clamp(17px,2vw,25px)/1.15 var(--font-sans,system-ui)!important;text-align:center;margin:12px 0 0!important;color:var(--tcm-ink,#171B1A)!important}
.heritage-tile--bridge p em{color:var(--tcm-text,#353938);font-style:normal}
.heritage-gallery--home{height:390px;grid-template-rows:repeat(2,1fr)}
.heritage-gallery--home .heritage-tile:first-child{grid-column:span 3;grid-row:span 2}
.heritage-gallery--home .heritage-tile:nth-child(2),.heritage-gallery--home .heritage-tile:nth-child(3),.heritage-gallery--home .heritage-tile:nth-child(4),.heritage-gallery--home .heritage-tile:nth-child(5){grid-column:span 3}
.heritage-gallery--home{grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(4,1fr)}
.heritage-gallery--home .heritage-tile:first-child{grid-column:span 5;grid-row:span 3}
.heritage-gallery--home .heritage-tile:nth-child(2){grid-column:span 4;grid-row:span 2}
.heritage-gallery--home .heritage-tile:nth-child(3){grid-column:span 4;grid-row:span 2}
.heritage-gallery--home .heritage-tile:nth-child(4){grid-column:span 3;grid-row:span 1}
.heritage-gallery--home .heritage-tile:nth-child(5){grid-column:span 2;grid-row:span 1}
.heritage-gallery--home .heritage-tile:nth-child(5) img{object-position:center 25%}
.heritage-story--about{background:var(--tcm-bg,#FFFFFF)}
.heritage-about-heading{max-width:860px;margin:0 auto 36px;text-align:center}
.heritage-about-heading>p:not(.heritage-kicker){max-width:720px;margin:0 auto 18px}
.heritage-gallery--about{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(3,155px);gap:10px}
.heritage-gallery--about .heritage-tile:first-child{grid-column:span 5;grid-row:span 2}
.heritage-gallery--about .heritage-tile:nth-child(2){grid-column:span 4;grid-row:span 1}
.heritage-gallery--about .heritage-tile:nth-child(3){grid-column:span 3;grid-row:span 1}
.heritage-gallery--about .heritage-tile:nth-child(4){grid-column:span 4;grid-row:span 1}
.heritage-gallery--about .heritage-tile:nth-child(5){grid-column:span 3;grid-row:span 1}
.heritage-gallery--about .heritage-tile:nth-child(6){grid-column:span 12;grid-row:span 1}
.heritage-gallery--about .heritage-tile:nth-child(6) img{object-position:center 30%}
.heritage-timeline{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:42px 0 66px!important;padding:24px 0 0!important;border-top:1px solid var(--heritage-border)}
.heritage-timeline li{margin:0!important;padding:0!important;position:relative}
.heritage-timeline li:before{content:'';position:absolute;top:-30px;width:10px;height:10px;border-radius:100%;background:var(--tcm-text-soft,#505453);box-shadow:0 0 0 4px var(--tcm-surface,#F4F2EF)}
.heritage-timeline li>span{font:800 11px var(--font-sans,system-ui);letter-spacing:.1em;color:var(--tcm-text-soft,#505453)}
.heritage-timeline h3,.heritage-values h3{font:750 18px/1.2 var(--font-sans,system-ui)!important;margin:7px 0!important;color:var(--tcm-ink,#171B1A)!important}
.heritage-timeline p,.heritage-values p{font:400 14px/1.6 var(--font-sans,system-ui);color:var(--tcm-text,#353938);margin:0!important}
.heritage-values{border-top:1px solid var(--heritage-border);padding-top:42px}
.heritage-values-intro{margin-bottom:24px}
.heritage-values-intro h2{font-size:clamp(26px,3vw,40px)!important}
.heritage-values-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.heritage-values-grid article{background:var(--tcm-surface,#F4F2EF);border:1px solid var(--heritage-border);border-radius:var(--r-card,16px);padding:22px 20px;min-height:174px}
.heritage-values-grid article>span{font:800 11px var(--font-sans,system-ui);color:var(--tcm-text-soft,#505453)}
.heritage-story--location{padding:clamp(34px,4vw,56px) 0;background:var(--tcm-surface,#F4F2EF)}
.heritage-location-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.96fr);align-items:center;gap:clamp(20px,3.5vw,58px)}
.heritage-story--location h2{font-size:clamp(26px,2.8vw,38px)!important}
.heritage-story--location .heritage-story-copy>p:not(.heritage-kicker){font-size:15px;line-height:1.65;margin-bottom:14px}
.heritage-gallery--compact{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:185px;gap:7px}
.heritage-gallery--compact .heritage-tile{border-radius:var(--radius-sm,10px)}
.heritage-gallery--compact .heritage-tile figcaption{font-size:10px}
.heritage-gallery--compact .heritage-tile--korea svg{min-height:100%}
@media(max-width:850px){.heritage-story-inner,.heritage-location-inner{grid-template-columns:1fr}.heritage-story-inner{gap:25px}.heritage-story-copy>p:not(.heritage-kicker){max-width:700px}.heritage-gallery--home{height:320px}.heritage-values-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heritage-timeline{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:32px}}
@media(max-width:560px){.heritage-story{padding:42px 0}.heritage-story .wrap{width:calc(100% - 32px)}.heritage-story h2{font-size:clamp(27px,8vw,35px)!important}.heritage-gallery--home{height:270px}.heritage-gallery--home .heritage-tile figcaption,.heritage-gallery--about .heritage-tile figcaption{font-size:10px;padding:25px 8px 9px}.heritage-gallery--about{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,135px);gap:6px}.heritage-gallery--about .heritage-tile{grid-column:auto!important;grid-row:auto!important}.heritage-gallery--about .heritage-tile:first-child,.heritage-gallery--about .heritage-tile:nth-child(6){grid-column:span 2!important}.heritage-timeline{margin-bottom:34px!important;gap:20px 14px}.heritage-timeline h3{font-size:16px!important}.heritage-timeline p{font-size:13px}.heritage-values-grid{gap:8px}.heritage-values-grid article{padding:16px 12px;min-height:170px}.heritage-values-grid h3{font-size:16px!important}.heritage-values-grid p{font-size:13px}.heritage-gallery--compact{grid-template-rows:128px;gap:5px}.heritage-gallery--compact .heritage-tile figcaption{display:none}}
@media(prefers-reduced-motion:reduce){.heritage-tile img,.heritage-story-link{transition:none}}

/* Native site behaviour and keyboard accessibility */
.heritage-story-link:focus-visible{outline:var(--focus-ring,3px solid #171B1A);outline-offset:var(--focus-ring-offset,3px)}
.heritage-gallery .heritage-tile{box-shadow:var(--sh-sm,0 1px 3px rgba(0,0,0,.06))}
.heritage-values-grid article{box-shadow:var(--sh-sm,0 1px 3px rgba(0,0,0,.06))}

/* Approved editorial architecture images: retain TCM.ch layout and neutral typography. */
.heritage-tile--licensed figcaption{background:linear-gradient(transparent,rgba(10,18,20,.82));line-height:1.5}


/* Heritage collage v2: layout follows the photographs rather than cropping photos to fixed banners.
   Original Korean corridor: tall portrait. Hwang reception: landscape. No extra themes/fonts/colors. */
.heritage-story .heritage-gallery{
  align-items:stretch;
  grid-auto-flow:row;
  height:auto;
  overflow:visible;
}
.heritage-story .heritage-gallery .heritage-tile{
  min-width:0;
  min-height:0;
  margin:0!important;
  background:var(--tcm-surface-strong,#E8E6E3);
  overflow:hidden;
  display:block;
  position:relative;
}
.heritage-story .heritage-gallery .heritage-tile img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain!important; /* Preserve the whole photo, not just a center crop */
  object-position:50% 50%!important;
  background:var(--tcm-surface-strong,#E8E6E3);
}
.heritage-story .heritage-gallery .heritage-tile--hwang img{object-position:50% 42%!important}
.heritage-story .heritage-gallery .heritage-tile--corridor img{object-position:50% 50%!important}
.heritage-story .heritage-gallery .heritage-tile figcaption{
  z-index:1;
  pointer-events:none;
  font-family:var(--font-sans,'Figtree',sans-serif);
  font-size:clamp(10px,.85vw,12px);
  line-height:1.35;
  letter-spacing:0;
  padding:34px 12px 12px;
}
.heritage-story .heritage-gallery--home,
.heritage-story .heritage-gallery--about{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.97fr);
  gap:10px;
}
.heritage-story .heritage-gallery--home{
  grid-template-rows:clamp(185px,17vw,242px) clamp(136px,12vw,178px);
}
.heritage-story .heritage-gallery--about{
  grid-template-rows:clamp(300px,33vw,430px) clamp(220px,22vw,300px);
}
.heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile{
  grid-area:auto!important;
  aspect-ratio:auto;
}
.heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(1){
  grid-column:1 / span 2!important;
  grid-row:1!important;
}
.heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(2){
  grid-column:1!important;
  grid-row:2!important;
}
.heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(3){
  grid-column:2!important;
  grid-row:2!important;
}
.heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(4){
  grid-column:3!important;
  grid-row:1 / span 2!important;
}
.heritage-story .heritage-gallery--compact{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  grid-template-rows:clamp(155px,16vw,205px);
  gap:8px;
  height:auto;
}
.heritage-story .heritage-gallery--compact .heritage-tile{
  grid-column:auto!important;
  grid-row:auto!important;
}
.heritage-story .heritage-gallery--compact .heritage-tile figcaption{
  font-size:10px;
  padding:26px 9px 9px;
}
@media(max-width:900px){
  .heritage-story .heritage-gallery--home{grid-template-rows:clamp(180px,27vw,230px) clamp(135px,20vw,175px)}
  .heritage-story .heritage-gallery--about{grid-template-rows:clamp(245px,39vw,355px) clamp(175px,27vw,245px)}
}
@media(max-width:640px){
  .heritage-story :is(.heritage-gallery--home,.heritage-gallery--about){
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:auto repeat(2,clamp(118px,38vw,170px))!important;
    gap:7px;
  }
  .heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(1){
    grid-column:1 / -1!important;
    grid-row:1!important;
    aspect-ratio:1.62;
  }
  .heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(2){
    grid-column:1!important;
    grid-row:2!important;
  }
  .heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(3){
    grid-column:1!important;
    grid-row:3!important;
  }
  .heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile:nth-child(4){
    grid-column:2!important;
    grid-row:2 / span 2!important;
  }
  .heritage-story :is(.heritage-gallery--home,.heritage-gallery--about) .heritage-tile figcaption{
    display:block;
    font-size:10px;
    padding:18px 8px 8px;
    line-height:1.2;
  }
  .heritage-story .heritage-gallery--compact{
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:auto clamp(115px,31vw,165px)!important;
    gap:7px;
  }
  .heritage-story .heritage-gallery--compact .heritage-tile:first-child{
    grid-column:1 / -1!important;
    grid-row:1!important;
    aspect-ratio:1.6;
  }
  .heritage-story .heritage-gallery--compact .heritage-tile:nth-child(2){
    grid-column:1!important;
    grid-row:2!important;
  }
  .heritage-story .heritage-gallery--compact .heritage-tile:nth-child(3){
    grid-column:2!important;
    grid-row:2!important;
  }
  .heritage-story .heritage-gallery--compact .heritage-tile figcaption{
    display:block;
    font-size:9px;
    padding:15px 7px 7px;
  }
  .heritage-story .heritage-gallery img{transform:none!important}
}
@media(prefers-reduced-motion:reduce){
  .heritage-story .heritage-gallery .heritage-tile img{transition:none!important}
}

/* Heritage story explanation: readable editorial copy, never large overlays on photographs. */
.heritage-story .heritage-photo-context{
  display:flex;align-items:flex-start;gap:clamp(14px,3vw,32px);
  border-bottom:1px solid var(--tcm-border,#D7D4D0);
  padding:18px 4px 24px;margin:0 0 18px;
  font-family:var(--font-sans,'Figtree',sans-serif);
  color:var(--tcm-text,#353938);
}
.heritage-story .heritage-photo-context strong{
  flex:0 0 clamp(160px,24%,255px);
  font-size:14px;font-weight:800;line-height:1.5;
  color:var(--tcm-ink,#171B1A);
}
.heritage-story .heritage-photo-context p{
  max-width:820px;margin:0!important;
  font-size:14px;line-height:1.65;
  color:var(--tcm-text-soft,#505453);
}
.heritage-story .heritage-family-bridge{
  display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.25fr);
  gap:clamp(16px,4vw,55px);align-items:start;
  border:1px solid var(--tcm-border,#D7D4D0);
  border-radius:var(--r-card,16px);
  background:var(--tcm-surface,#F4F2EF);
  padding:clamp(20px,3vw,38px);
  margin:0 0 50px;
}
.heritage-story .heritage-family-bridge h3{
  margin:0!important;
  font-family:var(--font-sans,'Figtree',sans-serif)!important;
  color:var(--tcm-ink,#171B1A)!important;
  font-size:clamp(21px,2.25vw,29px)!important;
  font-weight:800!important;letter-spacing:-.025em;
  line-height:1.2;
}
.heritage-story .heritage-family-bridge>p{
  max-width:720px;margin:0!important;
  font-family:var(--font-sans,'Figtree',sans-serif);
  font-size:clamp(14px,1.3vw,16px);line-height:1.7;
  color:var(--tcm-text,#353938);
}
@media(max-width:700px){
  .heritage-story .heritage-photo-context{display:block;padding:16px 0 22px;margin-bottom:8px}
  .heritage-story .heritage-photo-context strong{display:block;font-size:13px;margin-bottom:6px}
  .heritage-story .heritage-photo-context p{font-size:13px;line-height:1.65}
  .heritage-story .heritage-family-bridge{
    display:block;padding:20px 18px;margin:0 0 34px;
  }
  .heritage-story .heritage-family-bridge h3{margin-bottom:14px!important}
  .heritage-story .heritage-family-bridge>p{font-size:14px;line-height:1.65}
}

/* 21.11.2026: larger local legacy gallery. Keep TCM.ch Figtree/neutral tokens and booking.
   Unlike the old three miniature landscape tiles, this shows a featured Korea
   photo with two substantial supporting photos. */
@media(min-width:901px){
  .heritage-story--location .heritage-location-inner{
    grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);
    gap:clamp(24px,3.6vw,52px);
    align-items:center;
  }
  .heritage-story--location .heritage-gallery--compact{
    grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);
    grid-template-rows:repeat(2,clamp(145px,11.7vw,170px));
    column-gap:10px;
    row-gap:10px;
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile{
    min-width:0;
    min-height:0;
    grid-column:auto!important;
    grid-row:auto!important;
    border-radius:var(--r-card,16px);
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile:first-child{
    grid-column:1!important;
    grid-row:1 / span 2!important;
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile:nth-child(2){
    grid-column:2!important;
    grid-row:1!important;
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile:nth-child(3){
    grid-column:2!important;
    grid-row:2!important;
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile figcaption{
    font-size:clamp(11px,.86vw,13px);
    line-height:1.3;
    padding:30px 12px 11px;
  }
  .heritage-story--location .heritage-story-copy h2{
    font-size:clamp(28px,2.65vw,37px)!important;
    line-height:1.14!important;
  }
}
/* Keep the entire image visible in the distinctive wide Hwang
   reception, while using uncluttered edge-to-edge fills for compact 
   modern location photography. Existing mobile two-row collage remains. */
.heritage-story--location .heritage-gallery--compact .heritage-tile--hwang img{
  object-fit:contain!important;
}
.heritage-story--location .heritage-gallery--compact .heritage-tile--today img{
  object-fit:cover!important;
  object-position:50% 50%!important;
}
@media(min-width:641px) and (max-width:900px){
  .heritage-story--location .heritage-location-inner{
    grid-template-columns:1fr;
    gap:24px;
  }
  .heritage-story--location .heritage-gallery--compact{
    grid-template-columns:1.15fr 1fr 1fr;
    grid-template-rows:clamp(210px,32vw,270px);
    gap:9px;
  }
}
@media(max-width:640px){
  .heritage-story--location .heritage-gallery--compact{
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:auto clamp(145px,37vw,188px)!important;
    gap:8px;
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile:first-child{
    aspect-ratio:1.55;
  }
  .heritage-story--location .heritage-gallery--compact .heritage-tile figcaption{
    display:block;
    font-size:clamp(10px,2.5vw,12px);
    line-height:1.25;
    padding:25px 10px 10px;
  }
}
