.detail-gallery{scroll-margin-top:74px;padding-top:80px;padding-bottom:80px}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:20px}
.gallery-heading h2{font-size:44px;line-height:1.25;letter-spacing:-1.6px;margin:0}
.gallery-filters{display:flex;align-items:center;gap:28px;flex-shrink:0}
.gallery-filters button{padding:14px 0 13px;min-height:44px;border-bottom:1px solid transparent;color:#59616a;font-size:15px;line-height:1.5}
.gallery-filters button[aria-pressed=true]{border-bottom-color:#171d23;color:#171d23}
.gallery-filters button:hover{color:#111}
.gallery-intro{font-size:14px;line-height:1.8;color:#68717a;margin:0 0 30px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 18px}
.gallery-grid figure{margin:0;min-width:0}
.gallery-grid figure[hidden]{display:none}
.gallery-card{display:block;padding:0;width:100%;aspect-ratio:3/2;overflow:hidden;background:#eff1f3;cursor:zoom-in}
.gallery-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.gallery-card:hover img{transform:scale(1.035)}
.gallery-grid figcaption{font-size:15px;line-height:1.7;color:#515a63;margin-top:13px}
.gallery-count{font-size:14px;line-height:1.8;color:#67717a;margin:26px 0 0}
.gallery-note{font-size:14px;line-height:1.8;color:#67717a;margin:14px 0 0;max-width:950px}
.gallery-open{overflow:hidden}
.gallery-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
dialog.gallery-dialog{position:fixed;inset:0;margin:auto;width:calc(100vw - 48px);max-width:none;height:calc(100dvh - 48px);max-height:none;border:0;border-radius:0;padding:12px 34px 24px;background:#101518;color:#fff;overflow:hidden}
dialog.gallery-dialog[open]{display:grid;grid-template-rows:44px minmax(0,1fr) 64px;gap:12px}
dialog.gallery-dialog::backdrop{background:#0b0d0fc9}
.gallery-toolbar{display:flex;align-items:center;justify-content:flex-end}
.gallery-close{font:30px/1 Arial,sans-serif;min-width:44px;min-height:44px;padding:4px;color:#fff}
.gallery-close:hover{background:#ffffff0c}
.gallery-stage{position:relative;min-height:0;display:flex;align-items:center;justify-content:center}
.gallery-stage img{display:block;width:100%;height:100%;object-fit:contain;touch-action:pan-y pinch-zoom}
.gallery-stage p{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#101518;padding:24px;margin:0}
.gallery-stage p[hidden]{display:none}
.gallery-controls{display:flex;align-items:center;gap:24px;min-width:0}
.gallery-controls button{flex-shrink:0;min-height:44px;padding:12px 0;border-bottom:1px solid #70787e;font-size:14px;line-height:1.5}
.gallery-controls button:hover{border-color:#fff}
.gallery-controls #gallery-current{flex:1;min-width:0;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0;font-size:14px;line-height:1.7}
#gallery-image-count{white-space:nowrap;color:#c4c9cd}
@media(max-width:1050px){.gallery-heading h2{font-size:38px}.gallery-filters{gap:24px}}
@media(max-width:780px){.detail-gallery{padding-top:56px;padding-bottom:56px;scroll-margin-top:100px}.gallery-heading{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:14px}.gallery-heading h2{font-size:34px;letter-spacing:-1px}.gallery-filters{gap:30px}.gallery-intro{margin-bottom:24px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.gallery-grid figcaption{font-size:14px;margin-top:10px}.gallery-note{font-size:14px}dialog.gallery-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:8px 16px 20px}dialog.gallery-dialog[open]{grid-template-rows:44px minmax(0,1fr) auto;gap:12px}.gallery-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.gallery-controls #gallery-current{grid-column:1/-1;grid-row:1;font-size:14px}.gallery-controls button{justify-self:start}.gallery-controls #gallery-next{justify-self:end}.gallery-controls button{font-size:14px}}
@media(max-width:480px){.gallery-grid{grid-template-columns:1fr}.gallery-heading h2{font-size:32px}.gallery-filters button{font-size:15px}.gallery-grid figcaption{font-size:15px}.gallery-controls #gallery-current{gap:14px}#gallery-image-caption{min-width:0;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.gallery-card img{transition:none}.gallery-card:hover img{transform:none}}
