/* Names and context stay below the photograph, in the reading flow. */
body #main figure > figcaption.photo-caption,
body #main .archive-collections .photo-grid figure > figcaption {
  display:block;
  margin:12px 0 0;
  padding:0;
  max-width:64ch;
  font-family:var(--sans);
  font-size:14px;
  line-height:1.55;
  letter-spacing:0;
  text-align:left;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
body #main .photo-caption-title {display:block;color:#dce3e5;font-weight:500}
body #main .photo-caption-detail {display:block;margin-top:4px;color:#aebbc0;font-weight:400;font-size:13px;line-height:1.55}
body #main .archive-collections .photo-grid[data-view=gallery]>figure:has(.photo-caption) {margin-bottom:24px}
body #main .archive-collections .archive-group--documents .photo-grid[data-view=gallery]>figure:has(.photo-caption) {margin-bottom:0}
@media(max-width:500px){
 body #main .archive-collections .photo-grid[data-view=gallery]>figure:has(.photo-caption) {margin-bottom:28px}
 body #main .archive-collections .archive-group--documents .photo-caption {font-size:13px;line-height:1.5;margin-top:10px}
 body #main .archive-collections .archive-group--documents .photo-caption-detail {font-size:12px}
}

/* Place documentary photographs with the biography event they illustrate. */
body #main .life-event-photo {margin:22px 0 4px;max-width:520px}
body #main .life-event-photo:has([data-photo="p147"]) {max-width:410px}
body #main .life-event-photo .photo-open {display:block;width:100%;background:none}
body #main .life-event-photo img {display:block;width:100%;height:auto;max-height:none;object-fit:contain}
body #main .life-event-photo figcaption {font-size:13px;line-height:1.55;margin:10px 0 0}
body #main .recognition-ledger>article {grid-template-columns:66px minmax(0,1fr) minmax(250px,380px);gap:28px;align-items:start;padding:28px 0}
body #main .recognition-copy {min-width:0;max-width:52ch}
body #main .recognition-copy p {margin:10px 0 0}
body #main .recognition-copy .recognition-document {display:inline-block;margin-top:14px}
body #main .recognition-evidence {display:flex;align-items:flex-start;gap:18px;min-width:0}
body #main .recognition-photo {margin:0;min-width:0;max-width:100%}
body #main .recognition-photo .photo-open {display:block;width:fit-content;max-width:100%;background:none}
body #main .recognition-photo img {display:block;width:auto;height:auto;max-width:100%;max-height:260px;object-fit:contain;background:none}
body #main .recognition-photo figcaption {max-width:38ch;font-size:12px;line-height:1.5;margin-top:10px}
body #main .recognition-evidence--pair>figure {flex:1 1 0}
body #main .recognition-evidence--trophy>figure:first-child {flex:.55 1 0}
body #main .recognition-archive-link {display:inline-block;margin-top:24px}
@media(max-width:900px){
 body #main .recognition-ledger>article {grid-template-columns:60px minmax(0,1fr);gap:12px 20px}
 body #main .recognition-evidence {grid-column:2;max-width:440px}
}
@media(max-width:500px){
 body #main .recognition-ledger>article {display:block;padding:22px 0}
 body #main .recognition-ledger time {display:block;margin-bottom:10px}
 body #main .recognition-copy {max-width:none}
 body #main .recognition-evidence {margin-top:18px;gap:14px}
 body #main .recognition-photo img {max-height:280px}
 body #main .recognition-evidence--pair .recognition-photo img {max-height:220px}
 body #main .life-event-photo {margin-top:18px}
}
/* Client archive additions: keep full frames and readable captions. */
body #main .life-service-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:32px}
body #main .life-service-photo {min-width:0;margin:0}
body #main .life-service-photo:first-child {grid-column:1/-1;max-width:680px}
body #main .life-service-photo:last-child {max-width:250px}
body #main .life-service-photo .photo-open,body #main .life-service-photo img {width:100%;height:auto;max-height:none;object-fit:contain}
body #main .school-vinnytsia {grid-column:1/-1;width:100%;max-width:360px;justify-self:center}
body #main #alina.family-at-home {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);align-items:start;gap:36px}
body #main .alina-photo-pair {display:grid;gap:24px;min-width:0}
body #main .alina-photo-pair figure {margin:0;width:100%;max-width:none}
body #main .alina-photo-pair .photo-open,body #main .alina-photo-pair img {width:100%;height:auto;max-height:none;object-fit:contain}
body #main #alina .alina-strawberries {max-width:180px;margin:28px 0 0}
body #main #alina .alina-strawberries .photo-open,body #main #alina .alina-strawberries img {width:100%;height:auto;object-fit:contain}
body #main .band-live header {max-width:760px;margin-bottom:28px}
body #main .band-live h2 {font:500 clamp(24px,3vw,36px)/1.25 var(--sans);margin:12px 0}
body #main .band-live-film {max-width:960px;margin:0 auto 36px}
body #main .band-live-film video {display:block;width:100%;height:auto;aspect-ratio:848/464;background:#080a0c}
body #main .band-live-film figcaption,body #main .band-memory-grid figcaption,body #main .life-service-gallery figcaption,body #main .alina-photo-pair figcaption {font:400 14px/1.55 var(--sans);color:#aebbc0;margin-top:12px}
body #main .band-memory-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:32px;align-items:start;max-width:1048px;margin:auto}
body #main .band-memory-grid figure {margin:0;min-width:0}
body #main .band-memory-grid .photo-open,body #main .band-memory-grid img {width:100%;height:auto;max-height:none;object-fit:contain}
body #main .band-memory-grid .band-by-water {grid-column:2;max-width:340px}
@media(max-width:700px){
 body #main #alina.family-at-home,body #main .life-service-gallery,body #main .band-memory-grid {display:flex;flex-direction:column;gap:28px}
 body #main .alina-photo-pair {width:100%;max-width:360px}
 body #main .life-service-photo {width:100%}
 body #main .band-memory-grid .band-by-water {width:100%;max-width:300px;align-self:center}
}

/* A complete landscape frame of the family at Yamaha Jazz Club. */
body #main .band-yamaha {width:100%;max-width:680px;margin:28px auto 0;scroll-margin-top:128px}
body #main .band-yamaha .photo-open,body #main .band-yamaha img {display:block;width:100%;height:auto;max-height:none;object-fit:contain}

/* Client-marked lower edge: remove excess carpet, keeping both people and shoes. */
body #main :is(.home-practice-first-lady,.alina-office) .photo-open[data-photo="p193"] {
 display:block;width:100%;height:auto;min-height:0;overflow:hidden;
}
body #main :is(.home-practice-first-lady,.alina-office) .photo-open[data-photo="p193"]>img {
 aspect-ratio:865/1190!important;object-fit:cover;object-position:50% 0;
}

/* Lugano 2026: a dated international encounter, with complete source frames. */
body #main .lugano-forum {scroll-margin-top:120px;border-bottom:1px solid #343b43}
body #main .lugano-forum>header {margin-bottom:32px;max-width:1000px}
body #main .lugano-forum .eyebrow {margin:0 0 12px;font-size:12px}
body #main .lugano-forum h2 {font:500 clamp(28px,3.5vw,48px)/1.18 var(--sans);letter-spacing:-.035em}
body #main .lugano-intro {display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.35fr);gap:48px;align-items:start}
body #main .lugano-copy p {font-size:17px;line-height:1.75;color:var(--muted);margin:0 0 20px;max-width:58ch}
body #main .lugano-copy .lugano-meeting {color:var(--ink)}
body #main .lugano-copy h3 {font:500 23px/1.3 var(--sans);margin:28px 0 14px}
body #main .lugano-forum figure {min-width:0;margin:0}
body #main .lugano-forum :is(.photo-open,img) {display:block;width:100%;height:auto;min-height:0;max-height:none;object-fit:contain}
body #main .lugano-forum figcaption {font:400 13px/1.6 var(--sans);color:var(--muted);margin:12px 0 0}
body #main .lugano-sources {display:flex;flex-wrap:wrap;gap:14px 24px;margin-top:26px}
body #main .lugano-sources a {font-size:13px;line-height:1.6;text-decoration:underline;text-underline-offset:5px;color:var(--ink)}
body #main .lugano-sources a:hover {color:var(--accent)}
body #main .lugano-gallery {display:grid;grid-template-columns:1fr 1.12fr .88fr;gap:32px;max-width:1080px;margin:44px auto 0;align-items:start;scroll-margin-top:120px}
body #main .home-forum-link {margin-top:22px;padding-top:20px;border-top:1px solid #343b43}
@media(max-width:1000px){
 body #main .lugano-intro {display:flex;flex-direction:column;gap:28px}
 body #main .lugano-feature {order:-1;width:100%}
 body #main .lugano-copy p {font-size:16px}
 body #main .lugano-gallery {gap:22px}
}
@media(max-width:700px){
 body #main .lugano-forum>header {margin-bottom:24px}
 body #main .lugano-intro {display:flex;flex-direction:column;gap:28px}
 body #main .lugano-feature {order:-1}
 body #main .lugano-copy p {font-size:16px;line-height:1.75}
 body #main .lugano-copy h3 {font-size:22px}
 body #main .lugano-gallery {grid-template-columns:1fr;gap:32px;margin-top:32px;max-width:420px}
 body #main .lugano-programme {max-width:280px;justify-self:center}
}

/* Royce joined the family in October 2026; preserve all three original frames. */
#main .royce-story{margin-top:44px;padding-top:36px;border-top:1px solid var(--line);scroll-margin-top:140px}
#main .royce-story header{max-width:700px;margin-bottom:28px}
#main .royce-story h3{font-size:clamp(24px,2.7vw,36px);line-height:1.3;margin:0 0 15px}
#main .royce-story p{color:var(--muted);margin:0;font-size:17px;line-height:1.8}
#main .royce-gallery{display:grid;grid-template-columns:.75fr 1.333333fr .885156fr;gap:20px;align-items:start}
#main .royce-gallery figure{margin:0;min-width:0}
#main .royce-gallery .photo-open,#main .royce-gallery img{width:100%;height:auto;max-height:none;object-fit:contain}
@media(max-width:700px){
 #main .royce-story{scroll-margin-top:115px}
 #main .royce-gallery{grid-template-columns:minmax(0,1fr);gap:28px;max-width:400px;margin-inline:auto}
 #main .royce-story p{font-size:16px}
}
