/* Ejoeun Dental | Patient Studies exhibition | 2026-10-29.
   Separate original assets; all source pages and SEO links remain intact. */
.gallery-patient-studies{
  position:relative;
  margin:0 auto;
  padding:clamp(47px,6vw,78px) clamp(16px,4vw,34px) clamp(56px,7vw,90px);
  max-width:1300px;
  scroll-margin-top:96px;
}
.gallery-patient-studies::before{
  content:"";position:absolute;top:0;left:clamp(16px,4vw,34px);right:clamp(16px,4vw,34px);
  border-top:1px solid #dacdb4;
}
.gallery-patient-studies__intro{
  max-width:820px;margin:0 auto 31px;text-align:center;
}
.gallery-patient-studies__intro .gallery-kicker{color:#8d805d}
.gallery-patient-studies__intro h2{
  font:700 clamp(28px,4vw,43px)/1.4 "Noto Serif KR","Apple SD Gothic Neo","Malgun Gothic",serif;
  letter-spacing:-.045em;color:#224535;margin:12px auto 15px;word-break:keep-all;
}
.gallery-patient-studies__intro p:not(.gallery-kicker){
  color:#566b5a;line-height:1.9;font-size:clamp(14px,1.6vw,16px);
  word-break:keep-all;max-width:780px;margin:0 auto;
}
.gallery-patient-studies__grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,2vw,22px);align-items:stretch;
}
.gallery-patient-studies__piece{
  display:flex;flex-direction:column;min-width:0;margin:0;
  background:#fffefa;border:1px solid #dfdccd;border-top:3px solid #b6a27c;
  border-radius:7px 17px 7px 17px;overflow:hidden;
  box-shadow:0 13px 32px rgba(33,63,45,.065);
}
.gallery-patient-studies__frame{
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;background:linear-gradient(130deg,#ebeadd,#f7f2e5);
  border-bottom:1px solid #e6dfcb;
  padding:clamp(6px,1vw,10px);
  aspect-ratio:1.55;
}
.gallery-patient-studies__frame img{
  display:block;width:100%;height:100%;object-fit:contain;
  border:1px solid rgba(162,151,124,.25);
}
.gallery-patient-studies__piece figcaption{
  display:flex;flex:1;flex-direction:column;align-items:flex-start;
  gap:9px;padding:clamp(17px,2vw,24px);word-break:keep-all;
}
.gallery-patient-studies__index{
  font-size:10px;letter-spacing:.12em;color:#8b7959;font-weight:800;
}
.gallery-patient-studies__piece h3{
  font:700 clamp(18px,2.1vw,23px)/1.45 "Noto Serif KR","Apple SD Gothic Neo","Malgun Gothic",serif;
  color:#274938;letter-spacing:-.04em;margin:0;
}
.gallery-patient-studies__piece p{
  color:#596e60;font-size:14px;line-height:1.8;margin:0 0 4px;
}
.gallery-patient-studies__actions{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-top:auto;width:100%;padding-top:7px;
}
.gallery-patient-studies__actions a,.gallery-patient-studies__actions button{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-height:45px;min-width:0;flex:1 1 125px;padding:9px 11px;
  border:1px solid #cbd8ca;border-radius:9px;
  background:#f2f7ef;color:#275843;
  font:750 13px/1.5 system-ui,"Apple SD Gothic Neo",sans-serif;
  text-decoration:none;text-align:center;cursor:pointer;
}
.gallery-patient-studies__actions a:first-child{
  color:#fff;background:#28553f;border-color:#28553f;
}
.gallery-patient-studies__actions :is(a,button):hover{
  filter:brightness(.95);
}
.gallery-patient-studies__actions :is(a,button):focus-visible{
  outline:3px solid #ae844b;outline-offset:3px;
}
.gallery-patient-studies__note{
  max-width:860px;margin:27px auto 0;padding:17px 21px;
  background:#f5f7ef;border:1px solid #dee4d6;border-radius:11px;
  font-size:14px;color:#506353;line-height:1.83;word-break:keep-all;
}
@media(max-width:980px){
 .gallery-patient-studies__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:630px){
 .gallery-patient-studies{padding:39px 12px 54px;}
 .gallery-patient-studies__grid{grid-template-columns:minmax(0,1fr);gap:14px;}
 .gallery-patient-studies__frame{aspect-ratio:1.8;padding:7px;}
 .gallery-patient-studies__piece figcaption{padding:17px 16px;}
 .gallery-patient-studies__piece h3{font-size:20px;}
 .gallery-patient-studies__actions :is(a,button){min-height:48px;}
 .gallery-patient-studies__note{padding:15px;}
}
@media(prefers-reduced-motion:reduce){.gallery-patient-studies{scroll-margin-top:0}}
@media print{
 .gallery-patient-studies__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .gallery-patient-studies__piece{break-inside:avoid;box-shadow:none;}
 .gallery-patient-studies__actions{display:none!important;}
}
@media(forced-colors:active){
 .gallery-patient-studies__piece,.gallery-patient-studies__actions a,
 .gallery-patient-studies__actions button,.gallery-patient-studies__note{
  background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none;
 }
 .gallery-patient-studies__index,.gallery-patient-studies__piece h3,
 .gallery-patient-studies__piece p{color:CanvasText;}
}


/* Progressive enhancement: direct original links work even without JavaScript.
   Only show modal controls when the interactive gallery has initialized. */
.gallery-patient-studies__actions .gallery-zoom{display:none}
.gallery-js .gallery-patient-studies__actions .gallery-zoom{display:inline-flex}
.gallery-patient-studies__jump{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;margin:0 0 24px;
}
.gallery-patient-studies__jump>a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  min-width:0;min-height:74px;padding:10px 8px;
  border:1px solid #d4dfd0;border-radius:10px;background:#f3f7ef;
  color:#285540;text-decoration:none;line-height:1.5;text-align:center;
  word-break:keep-all;
}
.gallery-patient-studies__jump>a small{
  color:#927e58;font-size:10px;font-weight:800;letter-spacing:.04em;
}
.gallery-patient-studies__jump>a strong{
  font-size:14px;font-weight:750;
}
.gallery-patient-studies__jump>a:hover{background:#e9f1e7;border-color:#92ad94}
.gallery-patient-studies__jump>a:focus-visible{
  outline:3px solid #ae844b;outline-offset:3px;
}
.gallery-patient-studies__piece{scroll-margin-top:110px}
.gallery-patient-studies__piece:target{
  border-color:#a78c5e;
  box-shadow:0 1px 0 #c8b481,0 17px 40px rgba(35,63,44,.13);
}
.gallery-patient-studies__actions .gallery-patient-studies__original{
  background:#fffefa;border-color:#d4dccf;color:#315d46;
}
@media(max-width:650px){
 .gallery-patient-studies__jump{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}
 .gallery-patient-studies__jump>a{min-height:63px;padding:8px 5px}
 .gallery-patient-studies__jump>a strong{font-size:13px}
}
@media print{.gallery-patient-studies__jump{display:none!important}}
@media(forced-colors:active){
 .gallery-patient-studies__jump>a,.gallery-patient-studies__piece:target{
  background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none;
 }
 .gallery-patient-studies__jump>a small{color:CanvasText}
}


/* Mobile patient gallery: clinical reading is the primary action.
   The unchanged original and optional image-zoom actions become a quiet,
   two-button second row; without JavaScript the original still fills the row. */
@media (max-width:630px) {
  .gallery-patient-studies__actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    padding-top:8px;
  }
  .gallery-patient-studies__actions > a:first-child {
    grid-column:1 / -1;
    justify-content:space-between;
    width:100%;
    min-height:51px;
    padding:12px 15px;
    border-radius:5px 12px 5px 12px;
    background:#214d39;
    border-color:#214d39;
    color:#fffefa;
    font-size:14px;
    font-weight:800;
    text-align:left;
    word-break:keep-all;
  }
  .gallery-patient-studies__actions > .gallery-patient-studies__original {
    grid-column:1 / -1;
    min-width:0;
    min-height:46px;
    padding:10px 7px;
    font-size:12.5px;
  }
  .gallery-js .gallery-patient-studies__actions > .gallery-patient-studies__original {
    grid-column:auto;
  }
  .gallery-js .gallery-patient-studies__actions > .gallery-zoom {
    grid-column:auto;
    min-width:0;
    min-height:46px;
    padding:10px 7px;
    font-size:12.5px;
    line-height:1.5;
  }
  .gallery-patient-studies__piece figcaption {
    gap:8px;
  }
}
@media (forced-colors:active) {
  .gallery-patient-studies__actions > a:first-child {
    color:CanvasText;
    background:Canvas;
    border-color:CanvasText;
  }
}


/* 2026-10-31 | Patient paintings salon wall: two spacious columns.
   All ten original art files, captions, clinical links, original-file links
   and dialog controls remain untouched. The work itself gets more room. */
@media(min-width:981px){
  .gallery-patient-studies__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:clamp(21px,2.7vw,32px);
  }
}
.gallery-patient-studies{
  background:
    radial-gradient(ellipse at 95% 8%,rgba(203,215,181,.21),transparent 34%),
    radial-gradient(ellipse at 5% 87%,rgba(227,210,165,.2),transparent 36%);
}
.gallery-patient-studies__piece{
  border:1px solid #cfc3aa;
  border-top:4px solid #b5a074;
  border-radius:4px 17px 4px 17px;
  background:#fffdf8;
  box-shadow:0 13px 32px rgba(34,59,41,.07);
}
.gallery-patient-studies__piece:nth-child(even){
  border-top-color:#84a08a;
}
.gallery-patient-studies__frame{
  box-sizing:border-box;
  aspect-ratio:1.65;
  min-height:0;
  padding:clamp(11px,1.25vw,16px);
  border-bottom:1px solid #d8c9ae;
  background:linear-gradient(155deg,#ede5d5,#f7f2e8);
}
.gallery-patient-studies__frame>img{
  display:block;
  box-sizing:border-box;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  padding:clamp(4px,.55vw,8px);
  border:1px solid rgba(187,171,137,.4);
  background:#fcf9f1;
  box-shadow:0 7px 19px rgba(35,54,38,.05);
}
.gallery-patient-studies__piece figcaption{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  flex:1;
  gap:9px;
  padding:clamp(19px,2.25vw,28px);
  background:linear-gradient(145deg,#fffdf7,#faf8f1);
}
.gallery-patient-studies__piece .gallery-patient-studies__index{
  width:max-content;
  max-width:100%;
  padding-bottom:8px;
  border-bottom:1px solid #d2bd94;
  color:#826943;
  font:800 11px/1.5 system-ui,sans-serif;
  letter-spacing:.12em;
}
.gallery-patient-studies__piece h3{
  margin:3px 0 0;
  color:#254b38;
  font-size:clamp(20px,1.95vw,26px);
  line-height:1.55;
  text-wrap:balance;
}
.gallery-patient-studies__piece figcaption>p{
  margin:0 0 8px;
  color:#536857;
  font-size:15px;
  line-height:1.88;
  word-break:keep-all;
}
.gallery-patient-studies__actions{
  gap:8px;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid #e4decd;
}
.gallery-patient-studies__actions :is(a,button){
  min-height:48px;
  border-radius:5px 10px 5px 10px;
  font-size:13px;
  line-height:1.55;
}
.gallery-patient-studies__actions>a:first-child{
  border-color:#26583e;
  background:#26583e;
  color:#fffdf6;
}
.gallery-patient-studies__actions :is(a,button):focus-visible{
  outline:3px solid #a9803d;
  outline-offset:3px;
}
@media(max-width:980px){
  .gallery-patient-studies__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
  }
}
@media(max-width:630px){
  .gallery-patient-studies__grid{
    grid-template-columns:minmax(0,1fr);
    gap:15px;
  }
  .gallery-patient-studies__frame{
    aspect-ratio:1.65;
    padding:8px;
  }
  .gallery-patient-studies__piece figcaption{
    padding:18px 16px 20px;
  }
  .gallery-patient-studies__piece h3{
    font-size:21px;
  }
  .gallery-patient-studies__piece figcaption>p{
    font-size:14px;
    line-height:1.82;
  }
  .gallery-patient-studies__actions{
    gap:8px;
  }
  .gallery-patient-studies__actions :is(a,button){
    min-height:48px;
  }
}
@media(forced-colors:active){
  .gallery-patient-studies,
  .gallery-patient-studies__piece,
  .gallery-patient-studies__frame,
  .gallery-patient-studies__frame>img,
  .gallery-patient-studies__piece figcaption,
  .gallery-patient-studies__actions>a:first-child{
    color:CanvasText;
    background:Canvas;
    border-color:CanvasText;
    box-shadow:none;
  }
  .gallery-patient-studies__piece .gallery-patient-studies__index,
  .gallery-patient-studies__piece :is(h3,p){
    color:CanvasText;
  }
}
@media print{
  .gallery-patient-studies__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-patient-studies__piece{break-inside:avoid;box-shadow:none}
}
