.gallery {
  --ga-cream: #f4ead6;
  --ga-gold: #cead75;
  --ga-soft: #b3beb7;
  --ga-rule: rgb(220 211 164 / .2);
  position: relative;
  isolation: isolate;
  width: 100%;
  color: var(--ga-cream);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 49% 42%, #23443e 0, #132d29 41%, transparent 72%),
    #0a1b19;
}
.gallery[hidden],.gallery [hidden] { display: none!important }
.gallery *, .gallery *::before, .gallery *::after { box-sizing: border-box }
.gallery button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent }
.gallery button:focus-visible { outline: 2px solid #ffe0a9; outline-offset: 5px }
.gallery button svg { width: 20px; height: 20px; display: block; flex-shrink: 0 }
.gallery .ga-shell {
  --edge: clamp(18px,5vw,84px); position: relative; width: min(100%,1900px); margin: auto; padding: 0 var(--edge);
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--header-h,74px) - var(--footer-h,40px));
}
.gallery .ga-top { display: flex; align-items: center; justify-content: space-between; padding-top: clamp(18px,3.4vh,40px); gap: 15px }
.gallery .ga-back,.gallery .ga-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; letter-spacing: .045em; min-height: 38px }
.gallery .ga-back { color: #d1d7c8; text-align: left }
.gallery .ga-back svg { width: 18px }
.gallery .ga-add { color: var(--ga-cream); padding: 0 15px; border-radius: 24px; border: 1px solid #657365; background: rgb(23 48 41 / .52) }
.gallery .ga-add svg { width: 16px }
.gallery .ga-back:hover, .gallery .ga-add:hover { color: #ffdda6 }
.gallery .ga-heading {
  color: var(--ga-cream); text-align: center; font: normal clamp(40px,5vw,78px)/1.05 Georgia,'Times New Roman',serif;
  letter-spacing: -.057em; text-shadow: none; padding: 0; margin: clamp(-34px,-2vw,-12px) 0 0;
  pointer-events: none; white-space: nowrap;
}
.gallery .ga-heading em { font: italic 1em/1 Georgia,'Times New Roman',serif; color: var(--ga-gold); letter-spacing: -.065em }
.gallery .ga-heading em::before { content: none }
.gallery .ga-gallery {
  position: relative; display: grid; align-items: center; flex: 1;
  grid-template-columns: clamp(40px,4vw,54px) minmax(0,1fr) clamp(40px,4vw,54px);
  width: min(100%,1570px); margin: 0 auto;
}
.gallery .ga-step {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #69766a; color: var(--ga-cream);
  background: #142a25; z-index: 4; transition: color .18s,border-color .18s,background .18s;
}
.gallery .ga-step:hover { color: #ffe2a4; border-color: #c9ac79; background: #284039 }
.gallery .ga-step svg { width: 22px; height: 22px }
.gallery .ga-deck {
  --ga-print-w: min(65%, 75vh, 740px);
  position: relative; width: 100%; height: clamp(315px,57svh,665px); min-width: 0; perspective: 1100px;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.gallery .ga-deck::before {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: 3%; height: 14%;
  background: radial-gradient(ellipse, rgb(0 8 6 / .48),transparent 67%); pointer-events: none;
}
.gallery .ga-drift {
  width: 100%; height: 100%; position: relative;
  transform: translate(var(--ga-dx,0px),var(--ga-dy,0px)) rotateX(var(--ga-rx,0deg)) rotateY(var(--ga-ry,0deg));
  transition: transform .25s ease-out;
}
.gallery .ga-print {
  --ga-offset: 0%; --ga-angle: -2deg; --ga-scale: 1; --ga-lift: 0%;
  display: grid; grid-template-rows: minmax(0,1fr) auto; position: absolute;
  left: 50%; top: 49%; width: var(--ga-print-w); aspect-ratio: 1.49; margin: 0; padding: clamp(7px,.95vw,16px);
  background: #f1e8d4; color: #463e31; border: 1px solid #cbbfa5;
  border-radius: 1px; box-shadow: 0 13px 30px #02100c8c,0 2px 6px #02100c73;
  transform: translate(-50%,-50%) translate(var(--ga-offset),var(--ga-lift)) rotate(var(--ga-angle)) scale(var(--ga-scale));
  transition: transform .48s cubic-bezier(.22,.76,.18,1), filter .35s, opacity .35s;
  white-space: normal; text-align: left;
}
.gallery .ga-print[data-position=center] { z-index: 3; cursor: zoom-in }
.gallery .ga-print[data-position=before] { --ga-offset: -48%; --ga-angle: -12deg; --ga-scale: .67; --ga-lift: 6%; z-index: 1; filter: brightness(.61) saturate(.78) }
.gallery .ga-print[data-position=after] { --ga-offset: 48%; --ga-angle: 11deg; --ga-scale: .67; --ga-lift: 5%; z-index: 1; filter: brightness(.66) saturate(.78) }
.gallery .ga-print:is([data-position=before],[data-position=after]):hover { filter: brightness(.85) }
.gallery .ga-print img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; pointer-events: none; background: #d9d0bf }
.gallery .ga-paper-caption {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: .025em; font: italic clamp(12px,1.4vw,23px)/1.2 Georgia,'Songti SC','SimSun',serif;
  padding: clamp(5px,.85vw,14px) 2px 0; color: #675b46;
}
.gallery .ga-tray {
  width: min(100%,1250px); margin: 0 auto; padding: 19px 0 max(24px,env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(92px,1fr) minmax(0,3fr) minmax(75px,1fr); align-items: center; gap: 20px;
  border-top: 1px solid var(--ga-rule);
}
.gallery .ga-details { min-width: 0 }
.gallery .ga-details h2,.gallery .ga-details p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gallery .ga-details h2 { margin: 0; padding: 0; font: 500 clamp(18px,2.05vw,29px)/1.3 'Songti SC','Noto Serif CJK SC','SimSun',serif; letter-spacing: .09em; color: var(--ga-cream) }
.gallery .ga-details p { margin: 4px 0 0; font: normal 13px/1.5 'Microsoft YaHei',sans-serif; color: var(--ga-soft); letter-spacing: .05em }
.gallery .ga-details p:empty { display:none }
.gallery .ga-strip {
  display: flex; align-items: center; justify-self: center; max-width: 100%; gap: 7px;
  overflow-x: auto; padding: 6px 3px; scroll-padding: 4px; scrollbar-width: thin; scrollbar-color: #806f4d transparent;
}
.gallery .ga-strip button {
  flex: 0 0 auto; width: clamp(45px,5.2vw,78px); aspect-ratio: 1.42;
  border: 1px solid #55665e; border-radius: 2px; padding: 2px; opacity: .63;
  transition: border-color .16s,opacity .16s;
}
.gallery .ga-strip button:hover,.gallery .ga-strip button[aria-current=true] { opacity: 1; border-color: #e3c797 }
.gallery .ga-strip img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1px }
.gallery .ga-pager { justify-self: end; color: var(--ga-gold); white-space: nowrap; font: italic clamp(18px,1.7vw,26px)/1.2 Georgia,serif; font-variant-numeric: tabular-nums }
.gallery .ga-lightbox {
  position:fixed; inset: 0; padding: 0; border: 0; color: var(--ga-cream);
  width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0;
  background: radial-gradient(ellipse at 50% 50%,#20372f,#0a1512 81%);
}
.gallery .ga-lightbox[open] { display: flex; flex-direction: column; padding: max(16px,env(safe-area-inset-top)) clamp(16px,4.5vw,85px) max(20px,env(safe-area-inset-bottom)); animation: ga-open .22s ease-out }
.gallery .ga-lightbox::backdrop { background: rgb(7 17 11 / .96) }
.gallery .ga-light-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 12px; gap: 10px; flex-shrink: 0 }
.gallery [data-light-name] { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; letter-spacing: .04em }
.gallery [data-close] { display: grid; place-items: center; height: 42px; width: 42px; flex-shrink: 0; border: 1px solid #68776b; border-radius: 50% }
.gallery .ga-light-image { width: 100%; min-height: 0; flex: 1; display: grid; place-items: center }
.gallery [data-full] { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; min-height: 0; min-width: 0 }
@keyframes ga-open { from { opacity: 0 } to { opacity: 1 } }
@media (min-width:751px) and (max-height:680px) {
  .gallery .ga-top { padding-top: 12px }
  .gallery .ga-heading { font-size: 43px }
  .gallery .ga-deck { height: clamp(260px,53svh,390px); --ga-print-w: min(60%,65vh,590px) }
  .gallery .ga-tray { padding: 10px 0 14px }
}
@media (max-width:750px) {
  .gallery .ga-shell { padding-inline: max(18px,4vw) }
  .gallery .ga-top { padding-top: 17px }
  .gallery .ga-heading { margin: clamp(20px,4svh,42px) 0 0; font-size: clamp(45px,11vw,70px) }
  .gallery .ga-gallery { display: flex; align-items: center; padding-bottom: 36px }
  .gallery .ga-step { position: absolute; top: auto; bottom: 2%; width: 39px; min-height: 39px }
  .gallery .ga-step[data-prev] { left: 0 }
  .gallery .ga-step[data-next] { right: 0 }
  .gallery .ga-deck { --ga-print-w: min(84%,480px); height: clamp(270px,72vw,421px) }
  .gallery .ga-print { --ga-angle: -2deg; padding: 6px; top: 50%; aspect-ratio: 1.29 }
  .gallery .ga-print[data-position=before] { --ga-offset: -38%; --ga-scale: .68 }
  .gallery .ga-print[data-position=after] { --ga-offset: 38%; --ga-scale: .68 }
  .gallery .ga-paper-caption { font-size: clamp(13px,3.1vw,19px); padding: 6px 1px 1px }
  .gallery .ga-tray { margin-top: 15px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 14px 0 24px }
  .gallery .ga-strip { grid-row: 2; grid-column: 1 / -1; justify-self: start; gap: 7px; padding-bottom: 6px }
  .gallery .ga-strip button { width: 51px }
  .gallery .ga-details h2 { font-size: 23px }
  .gallery .ga-details p { font-size: 13px }
  .gallery .ga-pager { grid-row: 1; grid-column: 2; font-size: 21px }
}
@media (prefers-reduced-motion: reduce) {
  .gallery .ga-drift { transform:none }
  .gallery * { animation-duration: .01ms!important; transition-duration: .01ms!important }
}
