/* Ejoeun Dental | Gallery Salon finish | 2026-10-31
   An accessible exhibition-wide visual layer. All 23 artworks retain their
   original src, alt, order and links; the clinic's medical statements,
   booking/phone dock, anchor navigation and image-dialog behavior are intact. */
:root {
  --salon-forest:#214735;
  --salon-ink:#244435;
  --salon-gold:#a48a5b;
  --salon-paper:#fffdf8;
  --salon-border:#d9cfbb;
}
.gallery-header {
  border-bottom:1px solid #d9c9a9;
  box-shadow:0 4px 17px rgba(24,51,37,.052);
}
.gallery-header .gallery-logo {
  color:#234a37;
  letter-spacing:-.06em;
}
.gallery-hero {
  gap:clamp(13px,2.5vw,29px);
  margin-top:clamp(15px,2.6vw,32px);
  margin-bottom:clamp(41px,5vw,66px);
  align-items:center;
}
.gallery-hero-content {
  padding:clamp(26px,3.7vw,50px);
  border:1px solid #d7c6a9;
  border-top:4px solid #b49a6b;
  border-radius:4px 16px 4px 16px;
  background:
    radial-gradient(ellipse at 100% 4%,rgba(198,185,149,.22),transparent 45%),
    linear-gradient(145deg,#fffefa,#f7f4ec);
  box-shadow:0 16px 40px rgba(24,48,36,.052);
}
.gallery-hero h1 {
  color:#244634;
  line-height:1.37;
  letter-spacing:-.057em;
  text-wrap:balance;
}
.gallery-hero h1 em { color:#937243; }
.gallery-hero-content>p:not(.gallery-kicker) {
  color:#4e6554;
  line-height:1.91;
}
.gallery-hero-image {
  box-sizing:border-box;
  padding:clamp(8px,1.1vw,14px);
  overflow:visible;
  border:1px solid #cbb68c;
  border-radius:3px;
  outline:1px solid rgba(154,127,81,.28);
  outline-offset:4px;
  background:#e9dfcb;
  box-shadow:0 22px 46px rgba(32,52,39,.12);
}
.gallery-hero-image img {
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:3 / 2;
  object-fit:contain;
  object-position:center;
  border:1px solid #e4d5bb;
  border-radius:1px;
  background:#fbf7ef;
}
.gallery-hero-image>span {
  position:static;
  display:block;
  margin:0;
  padding:12px 7px 5px;
  border:none;
  background:transparent;
  color:#765e39;
  font-size:10px;
  letter-spacing:.13em;
  text-align:center;
}
.gallery-hero .gallery-hero-actions>a {
  border-color:#cbbb9c;
  box-shadow:none;
  min-height:83px;
  line-height:1.6;
}
.gallery-hero .gallery-hero-actions>a:focus-visible,
.gallery-exhibition-index>a:focus-visible {
  outline:3px solid #aa8548;
  outline-offset:3px;
}
.gallery-exhibition-index {
  border-color:#d5c7ae;
  background:#d5c7ae;
  box-shadow:0 12px 30px rgba(31,58,39,.055);
}
.gallery-exhibition-index>.gallery-exhibition-label {
  background:linear-gradient(145deg,#1d4735,#295541);
}
.gallery-exhibition-index>a {
  background:#fffdf7;
  color:#244b36;
}
.gallery-exhibition-index>a:hover {
  background:#f4f7ef;
}
.gallery-section-intro h2,
.gallery-patient-studies__intro h2 {
  color:var(--salon-ink);
  letter-spacing:-.052em;
  line-height:1.47;
  text-wrap:balance;
}
.gallery-section-intro>p:last-child,
.gallery-patient-studies__intro p:not(.gallery-kicker) {
  color:#526858;
  line-height:1.89;
}
#paintings .gallery-art-grid { gap:clamp(18px,2.3vw,30px); }
#paintings .gallery-piece {
  border:1px solid #d7c6aa;
  border-top:4px solid #b8a075;
  background:#fffefa;
  box-shadow:0 12px 31px rgba(29,55,37,.07);
}
#paintings .gallery-piece:nth-child(even) {
  border-top-color:#89a48a;
}
#paintings #art-portrait-cat-watercolor {
  border-top-color:#ab8350;
}
#paintings .gallery-piece .gallery-art-frame {
  padding:clamp(9px,1.2vw,14px);
  background:linear-gradient(140deg,#e8ddc8,#f5ede0);
}
#paintings .gallery-piece .gallery-art-frame>img {
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
  border:5px solid #fffaf0;
  box-shadow:0 7px 17px rgba(36,55,41,.08);
}
#paintings .gallery-piece figcaption {
  padding:clamp(18px,2vw,25px);
  background:linear-gradient(145deg,#fffefa,#f9f7f0);
}
#paintings .gallery-piece .gallery-index,
.gallery-patient-studies__index {
  color:#80673f;
  letter-spacing:.085em;
}
#paintings .gallery-piece figcaption>h3,
.gallery-patient-studies__piece h3 {
  color:#254b36;
  line-height:1.51;
  text-wrap:balance;
}
#paintings .gallery-piece figcaption>p,
.gallery-patient-studies__piece p {
  color:#526959;
  line-height:1.87;
}
#paintings .gallery-piece .gallery-links :is(a,button) {
  min-height:48px;
  border-radius:5px;
}
#education.gallery-education {
  border-top:1px solid #ded2ba;
  border-bottom:1px solid #ded2ba;
  background:
    radial-gradient(ellipse at 100% 0,rgba(216,202,169,.22),transparent 45%),
    linear-gradient(165deg,#f4f0e7,#fbfaf6 60%,#f1f5ee);
}
#education .gallery-note--watercolor,
.gallery-patient-studies__piece {
  border:1px solid #d7cbb8;
  border-top:4px solid #b29a6e;
  border-radius:4px 14px 4px 14px;
  background:#fffdf8;
  box-shadow:0 12px 31px rgba(29,55,37,.065);
}
#education .gallery-watercolor-card:nth-child(2) .gallery-note--watercolor,
.gallery-patient-studies__piece:nth-child(even) {
  border-top-color:#8ca88f;
}
#education .gallery-note--watercolor>img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3 / 2;
  object-fit:contain;
  object-position:center;
  background:#efe8dc;
}
#education .gallery-note--watercolor>span {
  background:#fffdf8;
}
#education .gallery-note--watercolor strong {
  color:#254c38;
  line-height:1.52;
}
#education .gallery-watercolor-actions :is(a,button) {
  min-height:47px;
  border-radius:5px;
}
.gallery-patient-studies {
  max-width:1280px;
}
.gallery-patient-studies__grid {
  gap:clamp(13px,1.9vw,24px);
}
.gallery-patient-studies__frame {
  padding:clamp(9px,1vw,13px);
  background:linear-gradient(140deg,#eae0ce,#f6f1e8);
  border-bottom-color:#d7cbb6;
}
.gallery-patient-studies__frame img {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border:4px solid #fffaf0;
  background:#f7f2e8;
}
.gallery-patient-studies__piece figcaption {
  background:linear-gradient(145deg,#fffefa,#f9f8f2);
}
.gallery-patient-studies__actions :is(a,button) {
  min-height:48px;
  border-radius:5px;
  line-height:1.6;
}
.gallery-patient-studies__jump>a {
  border-color:#d7ceb9;
  border-radius:5px 11px 5px 11px;
  background:#fffdf8;
}
.gallery-patient-studies__jump>a:focus-visible,
.gallery-patient-studies__actions :is(a,button):focus-visible,
#education .gallery-watercolor-actions :is(a,button):focus-visible {
  outline:3px solid #aa8243;
  outline-offset:3px;
}
.gallery-patient-studies__note,
#education .gallery-education__disclaimer {
  background:#fffdf8;
  color:#536857;
  border-color:#d6ccb8;
  line-height:1.88;
}
@media(min-width:1050px) {
  .gallery-hero { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
}
@media(max-width:850px) {
  .gallery-hero {
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }
  .gallery-hero-content {
    border:1px solid #d7c6a9;
    border-top:4px solid #b49a6b;
    border-radius:5px 14px 5px 14px;
  }
  .gallery-hero-image {
    width:min(100%,720px);
    margin-inline:auto;
  }
  .gallery-hero-image img {
    height:auto;
    max-height:none;
    aspect-ratio:3 / 2;
    object-fit:contain;
  }
}
@media(max-width:650px) {
  .gallery-header-inner { gap:12px; }
  .gallery-hero {
    margin:13px auto 39px;
    padding-inline:14px;
    gap:17px;
  }
  .gallery-hero-content {
    padding:24px 19px;
  }
  .gallery-hero h1 {
    font-size:clamp(30px,7.5vw,37px);
    line-height:1.4;
  }
  .gallery-hero-image {
    width:100%;
    padding:7px;
    outline-offset:2px;
    box-shadow:0 13px 30px rgba(29,55,40,.085);
  }
  .gallery-hero-image>span {
    padding:9px 4px 4px;
    font-size:9px;
  }
  .gallery-hero .gallery-hero-actions {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .gallery-hero .gallery-hero-actions>a {
    min-height:84px;
    padding:11px;
    font-size:12px;
  }
  .gallery-section,
  #education.gallery-education,
  .gallery-patient-studies {
    padding-left:15px;
    padding-right:15px;
  }
  .gallery-section-intro { margin-bottom:25px; }
  #paintings .gallery-art-grid,
  #education .gallery-education-grid,
  .gallery-patient-studies__grid {
    grid-template-columns:minmax(0,1fr);
    gap:15px;
  }
  #paintings .gallery-piece .gallery-art-frame {
    padding:8px;
  }
  #paintings .gallery-piece .gallery-art-frame>img {
    height:auto;
    max-height:none;
    aspect-ratio:auto;
    object-fit:contain;
    border-width:3px;
  }
  #paintings .gallery-piece figcaption,
  .gallery-patient-studies__piece figcaption {
    padding:17px 16px 20px;
  }
  #paintings .gallery-piece figcaption>h3,
  .gallery-patient-studies__piece h3 {
    font-size:clamp(19px,5vw,22px);
  }
  #paintings .gallery-piece .gallery-links {
    gap:8px;
  }
  #paintings .gallery-piece .gallery-links :is(a,button),
  .gallery-patient-studies__actions :is(a,button) {
    min-height:48px;
    padding:10px 8px;
    font-size:13px;
  }
  .gallery-patient-studies__frame {
    aspect-ratio:auto;
    padding:8px;
  }
  .gallery-patient-studies__frame img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:auto;
    max-height:none;
    border-width:3px;
  }
  .gallery-patient-studies__jump {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
}
@media(max-width:390px) {
  .gallery-hero .gallery-hero-actions {
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  .gallery-hero .gallery-hero-actions>a {
    min-height:63px;
    padding:10px 13px;
  }
  .gallery-hero h1 { font-size:29px; }
  .gallery-patient-studies__actions {
    grid-template-columns:minmax(0,1fr);
  }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-hero .gallery-hero-actions>a,
  #paintings .gallery-piece,
  #education .gallery-note--watercolor,
  .gallery-patient-studies__piece {
    transition:none;
    transform:none;
  }
}
@media(forced-colors:active) {
  .gallery-hero-content,
  .gallery-hero-image,
  .gallery-hero-image>span,
  #paintings .gallery-piece,
  #paintings .gallery-piece .gallery-art-frame,
  #paintings .gallery-piece figcaption,
  #education.gallery-education,
  #education .gallery-note--watercolor,
  .gallery-patient-studies__piece,
  .gallery-patient-studies__frame {
    color:CanvasText;
    background:Canvas;
    border-color:CanvasText;
    outline-color:CanvasText;
    box-shadow:none;
  }
}


/* 2026-10-31 | Mobile full-room gallery lightbox
   Present the existing 23 images in a full-height, scrollable exhibition
   room on phones. The actual artwork retains its natural uncropped bounds.
   Dialog navigation, mobile gestures, source links and the visible patient
   education note all remain usable without introducing a new script. */
@media(max-width:700px){
  .gallery-dialog{
    box-sizing:border-box;
    position:fixed;
    inset:0;
    width:100%;
    max-width:100vw;
    height:100vh;
    max-height:100vh;
    height:100dvh;
    max-height:100dvh;
    margin:0;
    padding:calc(11px + env(safe-area-inset-top,0px))
      max(13px,env(safe-area-inset-right,0px))
      calc(15px + env(safe-area-inset-bottom,0px))
      max(13px,env(safe-area-inset-left,0px));
    border:0;
    border-radius:0;
    background:linear-gradient(153deg,#faf7ee,#f4f5ec);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .gallery-dialog .gallery-dialog-head{
    top:calc(-11px - env(safe-area-inset-top,0px));
    padding:10px 2px 12px;
    margin-bottom:9px;
    border-bottom:1px solid #d8c9ae;
    background:rgba(250,247,237,.97);
    backdrop-filter:blur(9px);
  }
  .gallery-dialog .gallery-dialog-heading{
    min-width:0;
    word-break:keep-all;
  }
  .gallery-dialog .gallery-dialog-section{
    color:#766145;
    font-size:11px;
    line-height:1.55;
  }
  .gallery-dialog .gallery-dialog-heading>strong{
    color:#254b36;
    font-size:clamp(17px,4.2vw,21px);
    line-height:1.52;
    word-break:keep-all;
  }
  .gallery-dialog .gallery-dialog-head>button{
    flex-shrink:0;
    min-height:48px;
    padding:10px 13px;
    border-color:#c8b89b;
    background:#fffdf8;
    color:#244d37;
    border-radius:5px 11px 5px 11px;
    font-size:14px;
    font-weight:800;
  }
  .gallery-dialog .gallery-dialog-rooms{
    gap:7px;
    margin:0 0 13px;
  }
  .gallery-dialog .gallery-dialog-rooms>button{
    min-width:0;
    min-height:52px;
    padding:8px 4px;
    border-radius:5px 11px 5px 11px;
    background:#fffdf7;
    border-color:#d4c8b2;
  }
  .gallery-dialog .gallery-dialog-rooms>button[aria-current="true"]{
    background:#28543e;
    color:#fffefa;
    border-color:#28543e;
  }
  .gallery-dialog #gallery-dialog-image,
  .gallery-dialog.gallery-dialog--care #gallery-dialog-image{
    box-sizing:border-box;
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    max-height:58vh;
    max-height:58dvh;
    margin:0 auto;
    padding:7px;
    border:1px solid #c6b493;
    border-radius:3px;
    background:#eee4d2;
    object-fit:contain;
    object-position:center;
    box-shadow:0 12px 26px rgba(26,48,36,.09);
  }
  .gallery-dialog .gallery-dialog-description{
    box-sizing:border-box;
    max-width:64ch;
    margin:12px auto 5px;
    padding:0 5px;
    color:#49614d;
    font-size:clamp(13px,3.5vw,15px);
    line-height:1.85;
    word-break:keep-all;
    overflow-wrap:anywhere;
  }
  .gallery-dialog .gallery-dialog-controls{
    position:sticky;
    bottom:calc(-15px - env(safe-area-inset-bottom,0px));
    z-index:2;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    gap:7px;
    margin:13px 0 8px;
    padding:10px 4px calc(11px + env(safe-area-inset-bottom,0px));
    border-top:1px solid #d7ccb8;
    border-bottom:1px solid #e4ddcd;
    background:rgba(250,247,238,.97);
    backdrop-filter:blur(9px);
  }
  .gallery-dialog .gallery-dialog-controls>button{
    min-width:0;
    min-height:50px;
    padding:9px 7px;
    font-size:clamp(12px,3.2vw,14px);
    font-weight:800;
    line-height:1.5;
    border-radius:5px 10px 5px 10px;
  }
  .gallery-dialog #gallery-dialog-position{
    color:#526b55;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
    text-align:center;
  }
  .gallery-dialog .gallery-dialog-art-actions{
    gap:8px;
    margin:14px auto 10px;
  }
  .gallery-dialog .gallery-dialog-art-actions>a{
    min-height:49px;
    line-height:1.65;
  }
  .gallery-dialog #gallery-dialog-help{
    max-width:43ch;
    margin:12px auto;
    padding-bottom:8px;
    color:#526658;
    font-size:12px;
    line-height:1.8;
    word-break:keep-all;
  }
}
@media(max-width:700px) and (max-height:530px){
  .gallery-dialog #gallery-dialog-image,
  .gallery-dialog.gallery-dialog--care #gallery-dialog-image{
    max-height:40vh;
    max-height:40dvh;
  }
}
@media(forced-colors:active){
  .gallery-dialog .gallery-dialog-controls,
  .gallery-dialog .gallery-dialog-head,
  .gallery-dialog #gallery-dialog-image,
  .gallery-dialog .gallery-dialog-rooms>button{
    background:Canvas;
    color:CanvasText;
    border-color:CanvasText;
    box-shadow:none;
  }
  .gallery-dialog .gallery-dialog-heading>strong,
  .gallery-dialog .gallery-dialog-section,
  .gallery-dialog .gallery-dialog-description{
    color:CanvasText;
  }
}


/* 2026-10-31 | Gallery-to-care caption and frame alignment.
   Match the clinic's four patient-guide exhibition rooms while keeping
   every original artwork, gallery order, alt text and zoom interaction. */
.gallery-hero-content,
#paintings .gallery-piece,
#education .gallery-note--watercolor,
.gallery-patient-studies__piece {
  border-radius:5px 14px 5px 14px;
}
.gallery-section-intro h2,
.gallery-patient-studies__intro h2 {
  max-width:29ch;
  letter-spacing:-.055em;
  text-wrap:balance;
}
#paintings .gallery-piece figcaption,
.gallery-patient-studies__piece figcaption {
  border-top:1px solid #ded3bf;
}
#paintings .gallery-piece figcaption>h3,
.gallery-patient-studies__piece h3 {
  font-family:'Noto Serif KR','Apple SD Gothic Neo','Malgun Gothic',serif;
  font-weight:700;
  letter-spacing:-.04em;
  line-height:1.55;
}
#paintings .gallery-piece figcaption>p,
.gallery-patient-studies__piece p {
  max-width:62ch;
  line-height:1.86;
  overflow-wrap:anywhere;
}
#education .gallery-note--watercolor>span {
  border-top:1px solid #ded3bf;
}
#paintings .gallery-piece .gallery-art-frame,
.gallery-patient-studies__frame {
  border-bottom:1px solid #ccba98;
}
#paintings .gallery-piece .gallery-art-frame>img,
#education .gallery-note--watercolor>img,
.gallery-patient-studies__frame img {
  object-fit:contain;
  object-position:center;
}
#paintings .gallery-piece .gallery-links :is(a,button),
#education .gallery-watercolor-actions :is(a,button),
.gallery-patient-studies__actions :is(a,button) {
  box-sizing:border-box;
  min-height:48px;
  line-height:1.55;
  font-weight:700;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.gallery-care-bridge__links>a:focus-visible,
#paintings .gallery-piece .gallery-links :is(a,button):focus-visible,
#education .gallery-watercolor-actions :is(a,button):focus-visible,
.gallery-patient-studies__actions :is(a,button):focus-visible {
  outline:3px solid #a17c40;
  outline-offset:3px;
}
@media(max-width:650px) {
  #paintings .gallery-piece figcaption,
  .gallery-patient-studies__piece figcaption {
    padding:18px 16px 21px;
  }
  #paintings .gallery-piece .gallery-links :is(a,button),
  #education .gallery-watercolor-actions :is(a,button),
  .gallery-patient-studies__actions :is(a,button) {
    min-height:49px;
  }
}
@media(forced-colors:active) {
  #paintings .gallery-piece figcaption,
  .gallery-patient-studies__piece figcaption,
  #education .gallery-note--watercolor>span {
    color:CanvasText;
    background:Canvas;
    border-color:CanvasText;
  }
}

/* 2026-10-31 | Exhibition label system for all three rooms. */
/* Align the full gallery with the homepage: warm paper, thin frame,
   un-cropped source paintings, readable labels and consistent actions.
   Preserve all 23 original image sources, zoom UI and clinical routes. */
.gallery-hero .gallery-hero-content > h1,
.gallery-section-intro > h2,
.gallery-patient-studies__intro > h2 {
  letter-spacing:-.055em;
  line-height:1.48;
  text-wrap:balance;
}
.gallery-hero .gallery-hero-content > p:not(.gallery-kicker),
.gallery-section-intro > p,
.gallery-patient-studies__intro > p {
  line-height:1.92;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.gallery-hero .gallery-hero-image {
  border:1px solid #c9b99c;
  border-radius:4px;
  padding:clamp(8px,1.1vw,13px);
  background:#eae2d2;
  box-shadow:0 14px 32px rgba(30,54,40,.09);
}
.gallery-hero .gallery-hero-image > img {
  box-sizing:border-box;
  width:100%;
  height:auto;
  aspect-ratio:3 / 2;
  object-fit:contain;
  object-position:center;
  border:1px solid #e3d9c6;
  background:#f7f1e7;
}
.gallery-hero .gallery-hero-image > span {
  line-height:1.6;
  letter-spacing:.11em;
}
#paintings .gallery-piece,
#education .gallery-note--watercolor,
.gallery-patient-studies__piece {
  border-radius:4px;
  border-color:#d6c6aa;
  background:#fffefa;
  box-shadow:0 9px 25px rgba(30,54,39,.065);
}
#paintings .gallery-piece .gallery-art-frame,
#education .gallery-note--watercolor > img,
.gallery-patient-studies__frame {
  background:#ece5d9;
  border-color:#d4c3a7;
}
#paintings .gallery-piece .gallery-art-frame > img,
#education .gallery-note--watercolor > img,
.gallery-patient-studies__frame > img {
  object-fit:contain;
  object-position:center;
}
#paintings .gallery-piece figcaption,
#education .gallery-note--watercolor > span,
.gallery-patient-studies__piece figcaption {
  background:#fffefa;
  border-color:#e2d9c9;
}
#paintings .gallery-piece figcaption > h3,
#education .gallery-note--watercolor strong,
.gallery-patient-studies__piece figcaption > h3 {
  color:#214a35;
  font-family:"Noto Serif KR","Apple SD Gothic Neo",serif;
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.53;
  text-wrap:balance;
}
#paintings .gallery-piece figcaption > p,
.gallery-patient-studies__piece figcaption > p {
  color:#4d6352;
  font-size:clamp(14px,1.15vw,16px);
  line-height:1.9;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
#paintings .gallery-piece .gallery-index,
#education .gallery-note--watercolor small,
.gallery-patient-studies__piece .gallery-patient-studies__index {
  color:#846b46;
  font-weight:800;
  letter-spacing:.1em;
}
#paintings .gallery-piece .gallery-links,
#education .gallery-watercolor-actions,
.gallery-patient-studies__actions {
  gap:9px;
}
#paintings .gallery-piece .gallery-links :is(a,button),
#education .gallery-watercolor-actions :is(a,button),
.gallery-patient-studies__actions :is(a,button) {
  box-sizing:border-box;
  min-width:0;
  min-height:48px;
  border-radius:5px;
  font-weight:750;
  line-height:1.55;
  text-align:center;
  overflow-wrap:anywhere;
  word-break:keep-all;
}
@media(max-width:650px) {
  .gallery-hero .gallery-hero-image {
    padding:7px;
    box-shadow:0 8px 19px rgba(31,52,38,.055);
  }
  .gallery-hero .gallery-hero-image > img {
    width:100%;
    height:auto;
    aspect-ratio:3/2;
    object-fit:contain;
  }
  #paintings .gallery-piece,
  #education .gallery-note--watercolor,
  .gallery-patient-studies__piece {
    box-shadow:none;
  }
  #paintings .gallery-piece figcaption,
  .gallery-patient-studies__piece figcaption,
  #education .gallery-note--watercolor > span {
    padding:18px 16px 21px;
  }
  #paintings .gallery-piece .gallery-links :is(a,button),
  #education .gallery-watercolor-actions :is(a,button),
  .gallery-patient-studies__actions :is(a,button) {
    min-height:49px;
  }
}
@media(forced-colors:active) {
  .gallery-hero .gallery-hero-image,
  .gallery-hero .gallery-hero-image > img,
  #paintings .gallery-piece,
  #education .gallery-note--watercolor,
  .gallery-patient-studies__piece,
  #paintings .gallery-piece figcaption,
  #education .gallery-note--watercolor > span,
  .gallery-patient-studies__piece figcaption {
    color:CanvasText;
    background:Canvas;
    border-color:CanvasText;
    box-shadow:none;
  }
  #paintings .gallery-piece figcaption > h3,
  #education .gallery-note--watercolor strong,
  .gallery-patient-studies__piece figcaption > h3 {
    color:CanvasText;
  }
}


/* Exhibition room transitions | 2026-10-31
   Paintings remain unchanged; this pass improves orientation and reading
   contrast between the three existing rooms of the 23-work gallery. */
.gallery-section-intro,
.gallery-patient-studies__intro {
  box-sizing:border-box;
  position:relative;
  max-width:960px;
  margin-bottom:clamp(20px,2.8vw,36px);
  padding:clamp(16px,2.5vw,28px) clamp(19px,2.8vw,32px);
  border-left:3px solid #b59a68;
  background:linear-gradient(95deg,rgba(250,248,239,.94),rgba(255,254,250,0));
}
.gallery-education .gallery-section-intro,
.gallery-patient-studies__intro {
  border-left-color:#8ea58d;
}
.gallery-section-intro > .gallery-kicker,
.gallery-patient-studies__intro > .gallery-kicker {
  color:#806b4a;
  letter-spacing:.14em;
}
.gallery-section-intro > h2,
.gallery-patient-studies__intro > h2 {
  color:#244b36;
  letter-spacing:-.052em;
  line-height:1.45;
  text-wrap:balance;
}
.gallery-section-intro > p:not(.gallery-kicker),
.gallery-patient-studies__intro > p:not(.gallery-kicker) {
  max-width:72ch;
  color:#4b6251;
  line-height:1.87;
  word-break:keep-all;
}
#paintings .gallery-art-frame > img,
#education .gallery-note--watercolor > img,
.gallery-patient-studies__frame > img {
  transition:filter .18s ease;
}
.gallery-header a:focus-visible,
.gallery-section a:focus-visible,
.gallery-patient-studies a:focus-visible,
.gallery-section button:focus-visible,
.gallery-patient-studies button:focus-visible {
  outline:3px solid #986e38;
  outline-offset:3px;
}
.gallery-piece[id],.gallery-patient-studies__piece[id] { scroll-margin-top:90px; }
@media (max-width:650px) {
  .gallery-section-intro,
  .gallery-patient-studies__intro {
    padding:15px 15px 16px;
    border-left-width:2px;
    margin-bottom:20px;
  }
  .gallery-section-intro > h2,.gallery-patient-studies__intro > h2 {
    line-height:1.5;
  }
}
@media (prefers-reduced-motion:reduce) {
  #paintings .gallery-art-frame > img,
  #education .gallery-note--watercolor > img,
  .gallery-patient-studies__frame > img { transition:none; }
}
@media (forced-colors:active) {
  .gallery-section-intro,.gallery-patient-studies__intro {
    border-color:CanvasText;
    background:Canvas;
  }
  .gallery-section-intro :is(h2,p),.gallery-patient-studies__intro :is(h2,p) { color:CanvasText; }
}


/* 2026-10-31 | Patient art room complete catalog.
   Existing artwork sources, zoom dialog, image descriptions and clinical links
   are unchanged. All ten works are now directly addressable in one catalog. */
.gallery-patient-studies__jump {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(8px,1.1vw,13px);
  margin:clamp(18px,2.6vw,30px) 0 clamp(23px,3vw,36px);
  padding:clamp(15px,2vw,25px);
  border:1px solid #d9cdb9;
  border-top:3px solid #ae9672;
  border-radius:4px 14px 4px 14px;
  background:linear-gradient(130deg,#fffefa,#f3f7ef);
  box-shadow:0 10px 25px rgba(36,58,41,.043);
}
.gallery-patient-studies__jump>.gallery-patient-studies__jump-heading{
  display:flex;
  grid-column:1/-1;
  align-items:baseline;
  flex-wrap:wrap;
  gap:5px 17px;
  margin-bottom:3px;
}
.gallery-patient-studies__jump-heading>small{
  color:#826a45;
  font:750 10px/1.6 system-ui,sans-serif;
  letter-spacing:.11em;
}
.gallery-patient-studies__jump-heading>strong{
  color:#264b38;
  font:700 clamp(19px,2vw,24px)/1.55 "Noto Serif KR","Apple SD Gothic Neo",serif;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.gallery-patient-studies__jump>a{
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  flex-direction:column;
  min-width:0;
  min-height:94px;
  gap:6px;
  padding:clamp(11px,1.3vw,17px);
  border:1px solid #ded3c2;
  border-top:2px solid #af9874;
  border-radius:4px 11px 4px 11px;
  background:#fffefa;
  box-shadow:none;
  text-align:left;
  text-decoration:none;
}
.gallery-patient-studies__jump>a:nth-of-type(even){
  border-top-color:#91aa95;
}
.gallery-patient-studies__jump>a>small{
  color:#806c4d;
  font:750 10px/1.5 system-ui,sans-serif;
  letter-spacing:.02em;
}
.gallery-patient-studies__jump>a>strong{
  color:#2a503c;
  font-family:"Noto Serif KR","Apple SD Gothic Neo",serif;
  font-size:clamp(13px,1.18vw,15px);
  font-weight:750;
  line-height:1.57;
  letter-spacing:-.027em;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.gallery-patient-studies__jump>a:focus-visible{
  outline:3px solid #957140;
  outline-offset:3px;
}
@media(hover:hover) and (pointer:fine){
  .gallery-patient-studies__jump>a:hover{
    border-color:#99b198;
    background:#f2f8f0;
  }
}
@media(max-width:1020px){
  .gallery-patient-studies__jump{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:650px){
  .gallery-patient-studies__jump{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:16px 0 23px;
    padding:14px 11px;
    box-shadow:none;
  }
  .gallery-patient-studies__jump>.gallery-patient-studies__jump-heading{
    flex-direction:column;
    gap:3px;
    margin-bottom:5px;
  }
  .gallery-patient-studies__jump-heading>strong{
    font-size:19px;
  }
  .gallery-patient-studies__jump>a{
    min-height:80px;
    padding:11px 10px;
    gap:4px;
  }
  .gallery-patient-studies__jump>a>small{font-size:10px}
  .gallery-patient-studies__jump>a>strong{
    font-size:13px;
    line-height:1.6;
  }
}
@media(max-width:350px){
  .gallery-patient-studies__jump{
    grid-template-columns:minmax(0,1fr);
  }
  .gallery-patient-studies__jump>a{
    min-height:57px;
  }
}
@media(prefers-reduced-motion:reduce){
  .gallery-patient-studies__jump>a{transition:none}
}
@media(forced-colors:active){
  .gallery-patient-studies__jump,
  .gallery-patient-studies__jump>a{
    border-color:CanvasText;
    background:Canvas;
    color:CanvasText;
    box-shadow:none;
  }
  .gallery-patient-studies__jump-heading :is(strong,small),
  .gallery-patient-studies__jump>a :is(strong,small){
    color:CanvasText;
  }
}

/* 2026-11-02 | Gallery mobile-first viewing refinement
   Bring art closer to the first mobile viewport without hiding any of the
   23 exhibits or changing image, zoom, booking, or patient-education links. */
@media (max-width:650px) {
  .gallery-hero {
    gap:14px;
    margin-bottom:clamp(26px,7vw,38px);
  }
  .gallery-hero .gallery-hero-content {
    padding:21px 17px 20px;
  }
  .gallery-hero .gallery-hero-content > h1 {
    font-size:clamp(29px,7.5vw,36px);
    line-height:1.38;
    margin-block:10px 12px;
    text-wrap:balance;
  }
  .gallery-hero .gallery-hero-content > p:not(.gallery-kicker) {
    font-size:14px;
    line-height:1.78;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions {
    gap:7px;
    margin-top:17px;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a {
    min-height:67px;
    gap:2px;
    padding:9px 11px;
    border-left-width:3px;
    border-radius:4px 9px 4px 9px;
    font-size:12px;
    line-height:1.46;
    box-shadow:none;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a::before {
    font-size:9px;
    line-height:1.35;
    letter-spacing:.075em;
  }
  .gallery-hero .gallery-hero-image {
    padding:7px;
    box-shadow:0 10px 24px rgba(29,55,40,.07);
  }
  .gallery-exhibition-index > a {
    scroll-margin-top:92px;
  }
  #paintings .gallery-piece,
  #education .gallery-watercolor-card,
  .gallery-patient-studies__piece {
    scroll-margin-top:94px;
  }
}
@media (max-width:390px) {
  .gallery-hero .gallery-hero-content > .gallery-hero-actions {
    grid-template-columns:minmax(0,1fr);
    gap:6px;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a {
    min-height:56px;
    padding:8px 12px;
  }
}
@media (hover:hover) and (pointer:fine) {
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a:hover {
    border-color:#a88e60;
    box-shadow:0 6px 15px rgba(29,55,40,.06);
  }
}
@media (forced-colors:active) {
  .gallery-hero .gallery-hero-content,
  .gallery-hero .gallery-hero-image,
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a {
    border-color:CanvasText;
    background:Canvas;
    color:CanvasText;
    box-shadow:none;
  }
}


/* 2026-11-02 | Selected-artwork salon wayfinding.
   A light gallery-wall highlight when a visitor uses a work or room link.
   No duplicate art, change to gallery lightbox behavior, or hidden content. */
#paintings .gallery-piece[id],
.gallery-patient-studies__piece[id],
#education.gallery-education,
#paintings.gallery-section,
#patient-studies.gallery-patient-studies {
  scroll-margin-top:clamp(96px,10vw,118px);
}
#paintings .gallery-piece:target,
.gallery-patient-studies__piece:target {
  border-color:#9c8459;
  background:#fffefa;
  box-shadow:0 0 0 3px rgba(174,142,82,.19),0 16px 32px rgba(30,54,39,.085);
}
#paintings .gallery-piece:target .gallery-index,
.gallery-patient-studies__piece:target .gallery-patient-studies__index {
  color:#1f573e;
  text-decoration:underline;
  text-decoration-color:#af925d;
  text-underline-offset:5px;
  text-decoration-thickness:2px;
}
.gallery-exhibition-index>a {
  text-decoration:none;
  text-underline-offset:5px;
}
.gallery-exhibition-index>a:focus-visible,
#paintings .gallery-piece .gallery-links :is(a,button):focus-visible,
.gallery-patient-studies__actions :is(a,button):focus-visible {
  outline:3px solid #956e31;
  outline-offset:3px;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .gallery-exhibition-index>a,
  #paintings .gallery-piece,
  .gallery-patient-studies__piece {
    transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
  }
  .gallery-exhibition-index>a:hover {
    background:#f5f4eb;
  }
}
@media(max-width:650px) {
  #paintings .gallery-piece[id],
  .gallery-patient-studies__piece[id],
  #education.gallery-education,
  #paintings.gallery-section,
  #patient-studies.gallery-patient-studies {
    scroll-margin-top:104px;
  }
  #paintings .gallery-piece:target,
  .gallery-patient-studies__piece:target {
    box-shadow:0 0 0 2px rgba(160,130,75,.22);
  }
  .gallery-exhibition-index>a {
    min-height:48px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-exhibition-index>a,
  #paintings .gallery-piece,
  .gallery-patient-studies__piece {
    transition:none;
  }
}
@media(forced-colors:active) {
  #paintings .gallery-piece:target,
  .gallery-patient-studies__piece:target {
    border-color:Highlight;
    background:Canvas;
    color:CanvasText;
    box-shadow:none;
    outline:2px solid Highlight;
    outline-offset:2px;
  }
  #paintings .gallery-piece:target .gallery-index,
  .gallery-patient-studies__piece:target .gallery-patient-studies__index {
    color:CanvasText;
    text-decoration-color:Highlight;
  }
}

/* 2026-11-03 | Quiet exhibition wall, aligned with the clinic homepage.
   Preserve all 23 paintings, existing image sizing and zoom/original links.
   Compact hero wayfinding so artwork appears sooner on small screens. */
:root {
  --gallery-refine-ink: #204838;
  --gallery-refine-edge: #ded8ca;
  --gallery-refine-paper: #fffefa;
}
.gallery-header {
  background: rgba(255,254,249,.97);
  border-bottom: 1px solid var(--gallery-refine-edge);
  box-shadow: 0 3px 17px rgba(27,51,35,.035);
}
.gallery-header .gallery-logo {
  color: var(--gallery-refine-ink);
}
.gallery-header .header-call {
  border-radius: 8px;
  background: #204938;
}
.gallery-hero {
  gap: clamp(14px,2.4vw,26px);
  margin-bottom: clamp(28px,4vw,45px);
}
.gallery-hero .gallery-hero-content {
  border: 1px solid #d8d0bd;
  border-top: 3px solid #aa926b;
  border-radius: 10px;
  background: linear-gradient(135deg,#fffefa,#f4f5ed);
  box-shadow: 0 7px 24px rgba(32,54,41,.04);
}
.gallery-hero .gallery-hero-content > h1 {
  color: var(--gallery-refine-ink);
  font-size: clamp(31px,3.5vw,48px);
  line-height: 1.39;
}
.gallery-hero .gallery-hero-content > p:not(.gallery-kicker) {
  color: #465d4e;
  line-height: 1.85;
}
.gallery-hero .gallery-hero-content > .gallery-hero-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 18px;
  width: 100%;
}
.gallery-hero .gallery-hero-content > .gallery-hero-actions > a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 63px;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #d6d0c0;
  border-left: 3px solid #9aab95;
  border-radius: 7px;
  background: #fffefa;
  box-shadow: none;
  color: #264b3a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
}
.gallery-hero .gallery-hero-content > .gallery-hero-actions > a:first-child {
  background: #204938;
  border-color: #204938;
  color: white;
}
.gallery-hero .gallery-hero-content > .gallery-hero-actions > a::before {
  line-height: 1.2;
  font-size: 10px;
  letter-spacing: .06em;
}
.gallery-hero .gallery-hero-image {
  border: 1px solid #cebea3;
  border-radius: 9px;
  background: #f2eadb;
  box-shadow: 0 10px 28px rgba(26,49,35,.065);
}
.gallery-hero .gallery-hero-image > img {
  object-fit: contain;
}
.gallery-exhibition-index {
  border-color: #ded5c5;
  border-radius: 9px;
  box-shadow: none;
}
.gallery-exhibition-index > a {
  color: #274d39;
  background: var(--gallery-refine-paper);
}
.gallery-section-intro h2,
.gallery-patient-studies__intro h2 {
  color: var(--gallery-refine-ink);
  line-height: 1.44;
}
#paintings .gallery-art-grid {
  gap: clamp(17px,2.35vw,28px);
}
#paintings .gallery-piece,
#education .gallery-note--watercolor,
.gallery-patient-studies__piece {
  border: 1px solid var(--gallery-refine-edge);
  border-top: 3px solid #ad976f;
  border-radius: 9px;
  background: var(--gallery-refine-paper);
  box-shadow: 0 6px 20px rgba(29,52,38,.035);
}
#paintings .gallery-piece:nth-child(even),
#education .gallery-watercolor-card:nth-child(2) .gallery-note--watercolor,
.gallery-patient-studies__piece:nth-child(even) {
  border-top-color: #92a795;
}
#paintings .gallery-piece .gallery-art-frame {
  background: #f1eadd;
  padding: clamp(8px,1.1vw,13px);
}
#paintings .gallery-piece .gallery-art-frame > img {
  object-fit: contain;
}
#paintings .gallery-piece figcaption,
.gallery-patient-studies__piece figcaption {
  background: #fffefa;
}
#paintings .gallery-piece figcaption > p,
.gallery-patient-studies__piece p {
  color: #4c6353;
}
@media(max-width:650px) {
  .gallery-header .gallery-header-inner {
    padding-block: 10px;
  }
  .gallery-hero {
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 24px;
  }
  .gallery-hero .gallery-hero-content {
    padding: 21px 16px;
    border-radius: 9px;
    box-shadow: none;
  }
  .gallery-hero .gallery-hero-content > h1 {
    font-size: clamp(29px,7.4vw,36px);
    line-height: 1.38;
    margin-block: 9px 11px;
  }
  .gallery-hero .gallery-hero-content > p:not(.gallery-kicker) {
    line-height: 1.74;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    margin-top: 14px;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a {
    min-width: 0;
    min-height: 61px;
    padding: 8px 9px;
    font-size: 12px;
    border-radius: 7px;
    line-height: 1.4;
    word-break: keep-all;
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a::before {
    font-size: 9px;
  }
  .gallery-hero .gallery-hero-image {
    padding: 7px;
    border-radius: 8px;
    box-shadow: none;
  }
  #paintings .gallery-piece,
  #education .gallery-note--watercolor,
  .gallery-patient-studies__piece {
    border-radius: 8px;
    box-shadow: none;
  }
}
@media(max-width:350px) {
  .gallery-hero .gallery-hero-content > .gallery-hero-actions {
    grid-template-columns: minmax(0,1fr);
  }
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a {
    min-height: 47px;
  }
}
@media(forced-colors:active) {
  .gallery-hero .gallery-hero-content,
  .gallery-hero .gallery-hero-image,
  .gallery-hero .gallery-hero-content > .gallery-hero-actions > a,
  #paintings .gallery-piece,
  #education .gallery-note--watercolor,
  .gallery-patient-studies__piece {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}


/* Watercolor notes to original patient writing | 2026-11-04
   Each existing original painting keeps its full dimensions, zoom and main
   treatment link. This new restrained label leads to deeper patient reading. */
#education .gallery-watercolor-card>.gallery-watercolor-reading {
  box-sizing:border-box;
  margin:12px 0 0;
  padding:14px 16px;
  border:1px solid #d9dfd1;
  border-left:3px solid #8fa892;
  border-radius:5px 9px 5px 9px;
  background:#f8faf5;
  color:#325641;
  line-height:1.6;
  word-break:keep-all;
}
#education .gallery-watercolor-card>.gallery-watercolor-reading>span {
  display:block;
  margin-bottom:4px;
  color:#7b694d;
  font:800 11px/1.45 system-ui,"Apple SD Gothic Neo",sans-serif;
  letter-spacing:.07em;
}
#education .gallery-watercolor-card>.gallery-watercolor-reading>a {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#255840;
  font-size:clamp(14px,1.18vw,15px);
  font-weight:800;
  line-height:1.65;
  text-decoration:underline;
  text-decoration-color:#b6cbb6;
  text-underline-offset:4px;
  overflow-wrap:anywhere;
}
#education .gallery-watercolor-card>.gallery-watercolor-reading>a:focus-visible {
  outline:3px solid #9d7942;
  outline-offset:3px;
}
@media(hover:hover) and (pointer:fine) {
  #education .gallery-watercolor-card>.gallery-watercolor-reading>a:hover{
    color:#1b6c42;
    text-decoration-color:currentColor;
  }
}
@media(max-width:650px) {
  #education .gallery-watercolor-card>.gallery-watercolor-reading{
    margin-top:9px;
    padding:11px 13px;
  }
  #education .gallery-watercolor-card>.gallery-watercolor-reading>a{
    min-height:48px;
    font-size:14px;
  }
}
@media(forced-colors:active){
  #education .gallery-watercolor-card>.gallery-watercolor-reading {
    background:Canvas;
    color:CanvasText;
    border-color:CanvasText;
  }
  #education .gallery-watercolor-card>.gallery-watercolor-reading>a {
    color:LinkText;
  }
}
@media print {
  #education .gallery-watercolor-card>.gallery-watercolor-reading {
    background:none;
    box-shadow:none;
  }
}
