.closing {padding-bottom:clamp(70px,10svh,120px);}
.closing-photo {width:min(510px,100%);margin:clamp(54px,8svh,94px) 0 0;pointer-events:auto;}
.closing-photo-button {position:relative;display:block;width:100%;padding:9px;border:1px solid rgba(255,255,255,.86);
  border-radius:25px;background:rgba(255,255,255,.5);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  box-shadow:0 25px 62px rgba(80,113,132,.22),inset 0 1px 0 rgba(255,255,255,.9);
  cursor:zoom-in;transform:rotate(-1deg);transition:transform .35s cubic-bezier(.2,.65,.2,1),box-shadow .35s;}
.closing-photo-button:hover {transform:rotate(0) translateY(-4px);box-shadow:0 30px 72px rgba(70,108,132,.27);}
.closing-photo-button:focus-visible {outline:3px solid #5f9cc4;outline-offset:5px;}
.closing-photo-button img {display:block;width:100%;height:auto;aspect-ratio:1.34;object-fit:cover;
  border-radius:17px;box-shadow:inset 0 0 0 1px #fff;}
.closing-photo-expand {position:absolute;right:22px;bottom:22px;display:grid;place-items:center;width:38px;height:38px;
  border-radius:50%;background:rgba(246,252,255,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid #fffd;color:#496d83;font-size:19px;box-shadow:0 5px 18px rgba(35,66,91,.18);}
.closing-photo figcaption {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:18px 5px 0;
  color:#647986;text-align:left;}
.closing-photo figcaption span {font:400 clamp(14px,2.8vw,17px)/1.6 'Songti SC','STSong','SimSun',serif;}
.closing-photo figcaption small {white-space:nowrap;font:400 10px/1.5 var(--display);letter-spacing:.08em;color:#6f91a4;}
.childhood-photo-dialog {position:fixed;inset:0;box-sizing:border-box;width:min(1120px,100vw);height:min(94svh,900px);
  max-width:none;max-height:none;padding:clamp(16px,3vw,30px);border:1px solid rgba(255,255,255,.5);
  border-radius:clamp(22px,3vw,32px);background:linear-gradient(135deg,rgba(246,252,255,.96),rgba(210,231,244,.96));
  box-shadow:0 40px 120px rgba(12,30,48,.45);color:#446275;overflow:hidden;}
.childhood-photo-dialog:not([open]) {display:none;}
.childhood-photo-dialog[open] {display:flex;flex-direction:column;gap:14px;animation:childhood-photo-appear .35s cubic-bezier(.2,.65,.2,1) both;}
.childhood-photo-dialog::backdrop {background:rgba(10,24,38,.76);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
.childhood-photo-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:18px;
  font:400 14px 'Songti SC','STSong','SimSun',serif;letter-spacing:.13em;}
.childhood-photo-dialog-head button {min-height:44px;padding:9px 16px;border:1px solid rgba(95,143,172,.28);
  border-radius:999px;background:rgba(255,255,255,.67);color:#496d83;font:400 12px var(--sans);cursor:pointer;}
.childhood-photo-dialog-head button:focus-visible,#zoom-childhood-photo:focus-visible {outline:3px solid #6aa3c7;outline-offset:3px;}
.childhood-photo-view {flex:1;min-height:0;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;
  border-radius:17px;background:rgba(255,255,255,.34);}
#zoom-childhood-photo {display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;}
#zoom-childhood-photo img {display:block;max-width:100%;max-height:calc(94svh - 162px);width:auto;height:auto;
  border-radius:14px;box-shadow:0 18px 50px rgba(36,67,88,.22);}
.childhood-photo-dialog.zoomed .childhood-photo-view {display:block;}
.childhood-photo-dialog.zoomed #zoom-childhood-photo {max-width:none;width:170%;cursor:zoom-out;}
.childhood-photo-dialog.zoomed #zoom-childhood-photo img {max-width:none;max-height:none;width:100%;}
.childhood-photo-dialog-caption {margin:0;text-align:center;font:400 15px/1.5 'Songti SC','STSong','SimSun',serif;}
.childhood-photo-dialog-caption span {display:block;margin-top:4px;font:400 10px var(--display);letter-spacing:.08em;color:#6d8b9c;}
body.photo-preview-open {overflow:hidden;}
@keyframes childhood-photo-appear {from{opacity:0;transform:translateY(12px) scale(.985);}to{opacity:1;transform:none;}}
@media(max-width:767px) {
  .closing-photo {width:min(360px,89vw);margin-top:60px;}
  .closing-photo figcaption {display:block;text-align:center;}
  .closing-photo figcaption small {display:block;margin-top:5px;}
  .childhood-photo-dialog {width:calc(100vw - 14px);height:calc(100svh - 18px);padding:15px;border-radius:23px;}
  #zoom-childhood-photo img {max-height:calc(100svh - 152px);}
  .childhood-photo-dialog.zoomed #zoom-childhood-photo {width:210%;}
}
@media(prefers-reduced-motion:reduce) {
  .closing-photo-button {transition:none;}
  .childhood-photo-dialog[open] {animation:none;}
}
