.gallery-content{padding-top:36px;padding-bottom:76px}
.gallery-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:25px;color:var(--mute);font-size:14px}
.gallery-total{font:10px/1.6 Consolas,monospace;letter-spacing:1.4px;color:var(--blue);white-space:nowrap}
.gallery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px}
.gallery-card{position:relative;display:block;overflow:hidden;isolation:isolate;background:var(--light);border:1px solid var(--line)}
.gallery-card--portrait{grid-column:span 4;aspect-ratio:1069/1600}
.gallery-card--landscape{grid-column:span 6;aspect-ratio:1600/1069}
.gallery-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.65,.3,1)}
.gallery-card:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 65%,#0a1b36a6);opacity:.72;transition:opacity .3s}
.gallery-card:hover img,.gallery-card:focus-visible img{transform:scale(1.035)}
.gallery-card:hover:after,.gallery-card:focus-visible:after{opacity:1}
.gallery-card-bottom{position:absolute;z-index:1;left:20px;right:20px;bottom:20px;display:flex;justify-content:space-between;align-items:center;color:#fff;pointer-events:none}
.gallery-card-number{font:11px/1.6 Consolas,monospace;letter-spacing:1.5px;text-shadow:0 1px 7px #07182d80}
.gallery-expand{display:grid;place-items:center;width:39px;height:39px;border:1px solid #ffffff70;background:#ffffff10;backdrop-filter:blur(5px);font-size:23px;transition:background .25s,border-color .25s,transform .25s}
.gallery-card:hover .gallery-expand{background:var(--blue);border-color:var(--blue);transform:translateY(-2px)}
.gallery-modal{width:min(1420px,calc(100% - 40px));height:calc(100dvh - 40px);max-width:none;max-height:none;padding:0;border:1px solid #b7d0ff30;background:#10243e;color:#fff;overflow:hidden;box-shadow:0 28px 90px #0006}
.gallery-modal::backdrop{background:#061327df;backdrop-filter:blur(7px)}
.gallery-modal[open]{animation:gallery-dialog-in .24s cubic-bezier(.2,.7,.2,1)}
.gallery-modal[open]::backdrop{animation:gallery-backdrop-in .24s ease}
.gallery-viewer{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.gallery-modal-header{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:19px 24px;border-bottom:1px solid #ffffff15}
.gallery-modal-eyebrow{margin:0 0 5px;color:#a4bbd7;font:9px/1.5 Consolas,monospace;letter-spacing:1.6px}
.gallery-modal-header h2{margin:0;font-size:18px;font-weight:400;letter-spacing:0;line-height:1.5}
.gallery-close{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff30;flex-shrink:0;background:#ffffff08;color:white;cursor:pointer;transition:background .2s,border-color .2s}
.gallery-close svg{fill:none;stroke:currentColor;stroke-width:1.4}
.gallery-close:hover{background:#ffffff15;border-color:#ffffff80}
.gallery-stage{position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;padding:22px;overflow:hidden;touch-action:pan-y}
.gallery-stage[aria-busy=true]:after{content:'';position:absolute;left:calc(50% - 14px);top:calc(50% - 14px);width:28px;height:28px;border:2px solid #ffffff25;border-top-color:#b1cdff;border-radius:50%;animation:gallery-loading .8s linear infinite}
.gallery-full-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 10px 40px #0003}
.gallery-full-image:not([src]){visibility:hidden}
.gallery-load-error{color:#c2d2e7;font-size:14px;text-align:center;max-width:400px;margin:20px}
.gallery-modal-footer{display:flex;align-items:center;justify-content:center;gap:25px;border-top:1px solid #ffffff15;padding:14px 24px}
.gallery-navigation{display:flex;align-items:center;gap:17px}
.gallery-navigation button{display:grid;place-items:center;width:40px;height:40px;background:#ffffff06;border:1px solid #ffffff25;color:#fff;font-size:23px;cursor:pointer;transition:background .2s,border-color .2s}
.gallery-navigation button:hover{background:var(--blue);border-color:var(--blue)}
.gallery-navigation button:disabled{opacity:.25;cursor:default;background:transparent;border-color:#ffffff25}
#gallery-counter{min-width:58px;text-align:center;font:12px/1.5 Consolas,monospace;letter-spacing:1px;color:#d8e6fb}
@keyframes gallery-dialog-in{from{opacity:0;transform:translateY(12px) scale(.975)}to{opacity:1;transform:none}}
@keyframes gallery-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes gallery-loading{to{transform:rotate(360deg)}}
@media(max-width:1050px){.gallery-grid{gap:17px}.gallery-card-bottom{left:16px;right:16px;bottom:16px}}
@media(max-width:820px){.gallery-content{padding-top:26px;padding-bottom:45px}.gallery-grid{gap:14px}.gallery-intro{font-size:13px;padding-bottom:20px}.gallery-expand{width:33px;height:33px;font-size:21px}.gallery-modal{width:calc(100% - 20px);height:calc(100dvh - 20px)}.gallery-stage{padding:14px}.gallery-modal-header{padding:14px 16px}.gallery-modal-footer{padding:12px 16px}}
@media(max-width:620px){.gallery-grid{grid-template-columns:minmax(0,1fr);gap:18px}.gallery-card--portrait,.gallery-card--landscape{grid-column:auto}.gallery-intro{align-items:flex-start;gap:14px}.gallery-total{font-size:9px;letter-spacing:1px}.gallery-card-bottom{left:18px;right:18px;bottom:18px}.gallery-expand{width:39px;height:39px}.gallery-modal{width:calc(100% - 14px);height:calc(100dvh - 14px)}.gallery-modal-header{padding:12px;gap:12px}.gallery-modal-header h2{font-size:16px}.gallery-modal-eyebrow{font-size:8px;letter-spacing:1px}.gallery-stage{padding:10px}.gallery-modal-footer{padding:11px 12px;gap:12px}.gallery-navigation{gap:9px}.gallery-navigation button{width:37px;height:37px}.gallery-original{font-size:10px;gap:12px}.gallery-close{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.gallery-card img,.gallery-card:after,.gallery-expand,.gallery-close,.gallery-navigation button,.gallery-original{transition:none}.gallery-modal[open],.gallery-modal[open]::backdrop,.gallery-stage[aria-busy=true]:after{animation:none}}
