/* Little Reef v41 — SIDE B asymmetrical three-photo desktop.
   Additive to v39 reef-nonacademic.css. No global page, navigation or stamp changes. */
body.reef-subpage .sideb-scrapbook {max-width: 1000px; margin-inline: auto;}
body.reef-subpage .sideb-intro {max-width: 60ch; margin: 0 0 16px;}
body.reef-subpage .sideb-shortcuts {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;}
body.reef-subpage .sideb-shortcuts a {display:inline-block;font:400 11px/1.5 'Silkscreen',monospace;text-decoration:none;color:#174475;background:#e8faf9;border:2px solid #18538b;padding:7px 11px;box-shadow:3px 3px 0 #77c7d7;}
body.reef-subpage .sideb-shortcuts a:hover {background:#ffdbe5;}
body.reef-subpage .sideb-desktop {border:3px solid #1b4e82;background:#dcf2ed;box-shadow:6px 6px 0 #82bfcf;min-width:0;}
body.reef-subpage .sideb-desktop-bar {background:#8cd3e9;border-bottom:3px solid #1b4e82;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;font:400 12px/1.35 'Silkscreen',monospace;color:#184a7d;}
body.reef-subpage .sideb-desktop-space {position:relative;height:815px;overflow:hidden;background-color:#dcefeb;background-image:linear-gradient(to right,rgba(36,101,132,.09) 1px,transparent 1px),linear-gradient(to bottom,rgba(36,101,132,.09) 1px,transparent 1px);background-size:28px 28px;}
body.reef-subpage .sideb-photo-file {position:absolute;min-width:0;scroll-margin-top:24px;background:#fffaf0;border:3px solid #20588e;box-shadow:6px 7px 0 rgba(44,102,142,.30);padding:7px;z-index:1;transform:rotate(var(--tilt,0deg));transition:transform .18s ease,box-shadow .18s ease;}
body.reef-subpage .sideb-photo-file:hover,body.reef-subpage .sideb-photo-file:focus-within {transform:rotate(0deg) translateY(-3px);box-shadow:7px 9px 0 rgba(44,102,142,.3);z-index:5;}
body.reef-subpage .sideb-photo-file__top {height:24px;margin:-7px -7px 7px;padding:3px 7px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#8ed4e8;border-bottom:2px solid #20588e;color:#174a7d;font:400 10px/1.4 'Silkscreen',monospace;}
body.reef-subpage .sideb-photo-file__photo {position:relative;isolation:isolate;width:100%;overflow:hidden;border:2px solid #346a98;aspect-ratio:4/3;background:#e5e6e4;}
body.reef-subpage .sideb-photo-file__photo--band {background:#efcbd5;}
body.reef-subpage .sideb-photo-file__photo--birds {background:#c8e4d1;aspect-ratio:5/3;}
body.reef-subpage .sideb-photo-file__photo--retro {background:#c5d8ec;aspect-ratio:16/9;}
body.reef-subpage .sideb-photo-file__photo img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;z-index:2;}
body.reef-subpage .sideb-photo-file__photo img[hidden] {display:none;}
body.reef-subpage .sideb-photo-file__empty {position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;color:#285983;font:400 10px/1.5 'Silkscreen',monospace;text-align:center;}
body.reef-subpage .sideb-photo-file__empty span:first-child {font:400 44px/1 'Silkscreen',monospace;opacity:.75;}
body.reef-subpage .sideb-photo-file__caption {display:flex;flex-direction:column;gap:3px;padding:8px 4px 3px;color:#174a7d;font:400 10px/1.55 'Silkscreen',monospace;overflow-wrap:anywhere;}
body.reef-subpage .sideb-photo-file__caption strong {font:inherit;font-weight:400;font-size:12px;}
body.reef-subpage .sideb-photo-file__caption [lang=ko] {font-family:'Mona12','Apple SD Gothic Neo','Malgun Gothic',sans-serif!important;}
/* Three windows are deliberately offset rather than placed in a three-column grid. */
body.reef-subpage .sideb-photo-file--band {--tilt:-2deg;left:6%;top:35px;width:49%;}
body.reef-subpage .sideb-photo-file--birds {--tilt:2.3deg;right:5%;top:164px;width:38%;z-index:2;}
body.reef-subpage .sideb-photo-file--retro {--tilt:-1.2deg;left:19%;top:500px;width:42%;}
body.reef-subpage .sideb-doodle {position:absolute;pointer-events:none;user-select:none;font-family:'Silkscreen',monospace;color:#bf76aa;}
body.reef-subpage .sideb-doodle--star {top:42px;right:16%;font-size:30px;}
body.reef-subpage .sideb-doodle--shell {top:330px;left:8%;font-size:27px;color:#56a8a8;}
body.reef-subpage .sideb-doodle--music {top:362px;right:10%;font-size:34px;}
body.reef-subpage .sideb-doodle--cursor {bottom:44px;right:8%;font-size:25px;color:#478caa;}
body.reef-subpage .sideb-desktop-footnote {position:absolute;right:4%;bottom:17px;color:#377d94;font:400 10px/1.5 'Silkscreen',monospace;}
@media(max-width:760px) {
  body.reef-subpage .sideb-desktop-space {height:auto;padding:24px 15px 42px;display:flex;flex-direction:column;align-items:stretch;gap:24px;}
  body.reef-subpage .sideb-photo-file {position:relative;top:auto;left:auto;right:auto;width:min(86%,430px);}
  body.reef-subpage .sideb-photo-file--band {align-self:flex-start;}
  body.reef-subpage .sideb-photo-file--birds {align-self:flex-end;width:min(77%,380px);}
  body.reef-subpage .sideb-photo-file--retro {align-self:flex-start;width:min(83%,400px);margin-left:5%;}
  body.reef-subpage .sideb-doodle {display:none;}
  body.reef-subpage .sideb-desktop-footnote {position:static;text-align:center;padding:8px 0 0;}
}
@media(max-width:430px) {
  body.reef-subpage .sideb-desktop-bar {font-size:10px;padding:8px;}
  body.reef-subpage .sideb-desktop-space {padding:20px 12px 30px;gap:19px;}
  body.reef-subpage .sideb-photo-file {width:91%;transform:none;box-shadow:4px 4px 0 rgba(44,102,142,.3);}
  body.reef-subpage .sideb-photo-file--birds {width:86%;}
  body.reef-subpage .sideb-photo-file--retro {width:88%;margin-left:2%;}
  body.reef-subpage .sideb-photo-file__caption {font-size:9px;}
}
@media(prefers-reduced-motion:reduce) {body.reef-subpage .sideb-photo-file {transition:none;}}

/* v43 SIDE B: no section-jump buttons; two bird photos share one window. */
body.reef-subpage .sideb-scrapbook .sideb-shortcuts{display:none!important;}
body.reef-subpage .sideb-scrapbook .sideb-intro{margin-bottom:24px;}
body.reef-subpage .sideb-bird-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;min-width:0;}
body.reef-subpage .sideb-bird-gallery .sideb-photo-file__photo{min-width:0;aspect-ratio:3/4;}
body.reef-subpage .sideb-bird-gallery .sideb-photo-file__empty{font-size:8px;gap:5px;padding:4px;}
body.reef-subpage .sideb-bird-gallery .sideb-photo-file__empty span:first-child{font-size:26px;}
body.reef-subpage .sideb-photo-file--birds{width:42%;right:4%;}
@media(max-width:760px){body.reef-subpage .sideb-photo-file--birds{width:min(82%,420px);}}
@media(max-width:430px){body.reef-subpage .sideb-photo-file--birds{width:89%;}}

/* v44 SIDE B: rebalance photo sizes without changing photo sources or markup.
   Smaller band, larger Cardputer window, taller desktop so nothing is clipped. */
@media (min-width: 761px) {
  body.reef-subpage .sideb-desktop-space {
    height: 940px !important;
  }
  body.reef-subpage .sideb-photo-file--band {
    width: 40% !important;
    left: 7% !important;
    top: 48px !important;
  }
  body.reef-subpage .sideb-photo-file--retro {
    width: 56% !important;
    left: 14% !important;
    top: 535px !important;
  }
}
/* The mobile layout keeps its original staggered vertical flow. */

/* v45 — Korean captions: preserve the Silkscreen English label,
   render Hangul with Mona12 (font name as registered by mona.css). */
body.reef-subpage .sideb-photo-file__caption [lang="ko"],
body.reef-subpage .sideb-photo-file__caption .ko-text {
  font-family:'Mona12','Apple SD Gothic Neo','Malgun Gothic',sans-serif !important;
  font-size:12px;
  line-height:1.5;
  letter-spacing:0;
}

/* v46 — Give the taller Cardputer photo more vertical space.
   Scoped to the retro image so band and bird photos are unchanged. */
body.reef-subpage .sideb-photo-file__photo--retro {
  aspect-ratio: 4 / 3 !important;
}
body.reef-subpage .sideb-photo-file__photo--retro img {
  object-fit: contain !important;
  object-position: center center !important;
}
@media (min-width: 761px) {
  body.reef-subpage .sideb-desktop-space {
    height: 1080px !important;
  }
  body.reef-subpage .sideb-photo-file--retro {
    top: 495px !important;
  }
}
