html:has(body[data-view="gallery"]){scrollbar-gutter:auto}
body[data-view="gallery"]{padding:0}
body[data-view="gallery"] .site-copyright{display:none}
#site-page>.gallery-view{flex:none}
.gallery-view{height:100svh;min-height:0;display:grid;place-items:center;padding:124px 0 24px;overflow:hidden;outline:none}
.gallery-player{position:relative;width:100%;height:100%;min-height:0;display:grid;grid-template-rows:44px minmax(0,1fr);gap:14px}
.gallery-meta{display:grid;grid-template-columns:88px 1fr 88px;align-items:center;padding-inline:clamp(16px,5.2vw,88px)}
.gallery-controls{grid-column:3;display:flex;justify-content:flex-end}
.gallery-counter{grid-column:2;margin:0;text-align:center;color:#747a70;font-size:12px;line-height:1.4;letter-spacing:.045em;font-variant-numeric:tabular-nums}
.gallery-toggle,.gallery-audio{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#747a70;cursor:pointer}
@media (hover: hover) and (pointer: fine){
.gallery-toggle:hover,.gallery-audio:hover{color:#ff5900}}
.gallery-toggle:focus-visible,.gallery-audio:focus-visible,.gallery-retry:focus-visible{outline:2px solid #ff5900;outline-offset:2px}
.gallery-audio-on,.gallery-audio[aria-pressed="true"] .gallery-audio-off{display:none}
.gallery-audio[aria-pressed="true"] .gallery-audio-on{display:block}
.gallery-toggle .gallery-play-icon,.gallery-toggle[aria-pressed="true"] .gallery-pause-icon{display:none}
.gallery-toggle[aria-pressed="true"] .gallery-play-icon{display:block}
.gallery-stage{position:relative;min-height:0;overflow:hidden;padding-bottom:56px}
.gallery-frame{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;display:grid;place-items:center;outline:none}
.gallery-frame>.gallery-selected,.gallery-preview{position:absolute;left:50%;top:calc(50% - 24px);display:block;object-fit:contain;transform-origin:center}
.gallery-selected{z-index:2}
.gallery-enlarge{position:absolute;left:50%;top:calc(50% - 24px);z-index:3;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
.gallery-enlarge:focus-visible{outline:2px solid #ff5900;outline-offset:4px}
.gallery-enlarge[aria-disabled="true"]{pointer-events:none}
.gallery-preview{padding:0;border:0;background:transparent;cursor:pointer;opacity:.72;transition:opacity .2s}
.gallery-preview:focus-visible{opacity:1}
@media (hover: hover) and (pointer: fine){
.gallery-preview:hover{opacity:1}}
.gallery-preview:focus-visible{outline:2px solid #ff5900;outline-offset:-2px}
.gallery-preview>img,.gallery-preview>video,.gallery-preview>canvas{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.gallery-caption{position:absolute;left:0;width:100%;margin:0;text-align:center;font-size:12px;line-height:1.4;color:#22271f;pointer-events:none;font-weight:400;text-transform:none;letter-spacing:normal}
.gallery-selected-caption{left:50%;top:50%;z-index:2;font-size:14px}
.gallery-work-title,.gallery-work-author{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gallery-work-author{margin-top:3px;font-size:11px;color:#747a70}
.gallery-nav{position:absolute;bottom:0;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#ff5900;cursor:pointer}
.gallery-previous{left:calc(50% - 52px)}.gallery-forward{right:calc(50% - 52px)}
@media (hover: hover) and (pointer: fine){
.gallery-nav:hover{color:#d94c00}}.gallery-nav[aria-disabled="true"]{opacity:.35;cursor:default}
.gallery-nav:focus-visible{outline:2px solid #ff5900;outline-offset:-2px}
.gallery-message{margin:0;max-width:360px;text-align:center;color:#747a70;font-size:13px;line-height:1.6}
.gallery-retry{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);min-height:44px;padding:8px 12px;border:0;border-bottom:1px solid #d8ddd5;background:#fff;color:#747a70;font:inherit;font-size:12px;cursor:pointer}
@media(max-width:960px){.gallery-view{padding-top:88px}}
@media(max-width:650px){.gallery-view{padding-bottom:20px}.gallery-player{gap:8px}}
@media(max-width:650px){.gallery-caption{font-size:10px}.gallery-selected-caption{font-size:12px}.gallery-work-author{font-size:10px}}
@media(max-height:500px){.gallery-view{padding-top:88px;padding-bottom:16px}.gallery-player{grid-template-rows:36px minmax(0,1fr);gap:4px}.gallery-meta{height:36px}}
body.gallery-zoom-open{overflow:hidden}
.gallery-lightbox{position:fixed;inset:0;width:100%;height:100svh;max-width:none;max-height:none;margin:0;padding:64px clamp(20px,4vw,72px) 24px;border:0;outline:none;background:rgba(250,250,247,.97);color:#22271f}
.gallery-lightbox:not([open]){display:none}
.gallery-lightbox[open]{display:grid;grid-template-rows:minmax(0,max-content) auto;align-content:center;justify-items:center;gap:16px}
.gallery-lightbox::backdrop{background:rgba(250,250,247,.8);backdrop-filter:blur(8px)}
.gallery-lightbox-close{position:absolute;right:16px;top:12px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#ff5900;cursor:pointer}
.gallery-lightbox-close:focus-visible{outline:2px solid #ff5900;outline-offset:2px}
.gallery-lightbox-media{display:grid;place-items:center;min-width:0;min-height:0}
.gallery-lightbox-media>img,.gallery-lightbox-media>video{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.gallery-lightbox-caption{position:static;margin:0 auto;max-width:900px;max-height:28svh;overflow:auto;text-align:center;text-transform:none;font-size:14px;line-height:1.5;letter-spacing:normal;font-weight:400}
.gallery-lightbox-caption .gallery-work-title,.gallery-lightbox-caption .gallery-work-author{white-space:normal;overflow:visible;text-overflow:clip}
.gallery-lightbox-caption .gallery-work-author{font-size:12px}
@media(max-width:650px){.gallery-lightbox{padding:64px 16px 20px;gap:12px}.gallery-lightbox-caption{font-size:13px}}
@media(max-height:500px){.gallery-lightbox{padding-top:52px;padding-bottom:12px;gap:8px}.gallery-lightbox-caption{font-size:12px}.gallery-lightbox-close{top:4px}}
