.site-shell-gallery{min-height:100dvh}.site-shell-gallery>main,.site-shell-gallery .route-transition{flex:1;min-width:0}.gallery-page{padding-bottom:72px;position:relative}.gallery-index{max-width:var(--container);margin-inline:auto;padding:32px 24px 48px}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:3px;display:grid}.gallery-card{aspect-ratio:3/4;cursor:pointer;background:var(--color-surface-muted);color:#fff;width:100%;padding:0;display:block;position:relative;overflow:hidden}.gallery-card img,.gallery-card video{object-fit:cover;object-position:var(--cover-x,50%) var(--cover-y,50%);width:100%;height:100%;transition:opacity .2s;display:block}.gallery-card:hover img{opacity:.92}.gallery-card:focus-visible{outline:2px solid var(--color-accent);outline-offset:6px}.gallery-viewer{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:24px}.gallery-viewer-toolbar{z-index:5;background:var(--color-background);justify-content:center;align-items:center;margin:0 auto 16px;padding:0;display:flex;position:relative}.gallery-viewer-toolbar>span{font-variant-numeric:tabular-nums;color:var(--color-text-tertiary);font-size:11px}.gallery-icon{width:44px;height:44px;color:var(--color-text-primary);cursor:pointer;touch-action:manipulation;background:0 0;flex:0 0 44px;place-items:center;padding:10px;display:inline-grid}.gallery-icon svg{width:21px;height:21px}.gallery-icon:hover{color:var(--color-accent)}.gallery-carousel{padding-inline:44px;position:relative;container-type:inline-size}.gallery-story{height:var(--gallery-stage-height);scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;gap:4px;margin:0;padding:0;list-style:none;display:flex;overflow:auto hidden}.gallery-story::-webkit-scrollbar{display:none}.gallery-story-frame{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 100%;place-items:center;min-width:0;height:100%;display:grid;overflow:hidden}.gallery-story figure{width:min(100%, calc(var(--gallery-stage-height) * var(--media-ratio)));margin:0;position:relative}.gallery-carousel:has(.gallery-story-frame:not([inert]) [aria-busy=true])>.gallery-pagination{visibility:hidden}.gallery-pagination{pointer-events:none;justify-content:space-between;align-items:center;padding:0;display:flex;position:absolute;inset:0}.gallery-pagination .gallery-icon{pointer-events:auto;background:var(--color-surface-muted);width:32px;height:32px;color:var(--color-text-secondary);border-radius:50%;flex-basis:32px;padding:6px;transition:background .16s,opacity .16s}.gallery-pagination .gallery-icon:hover{background:var(--color-surface-muted);color:var(--color-text-primary)}.gallery-pagination .gallery-icon:disabled{visibility:hidden;pointer-events:none}.gallery-counter{pointer-events:none;color:#fff;font-variant-numeric:tabular-nums;background:#000000a6;border-radius:20px;padding:5px 10px;font-size:12px;line-height:1.5;position:absolute;top:12px;right:12px}@media (width<=760px),(hover:none){.gallery-pagination{display:none}.gallery-carousel{padding-inline:0}}.gallery-media{background:var(--color-surface-muted);width:100%;position:relative;overflow:hidden}.gallery-media>img,.gallery-media>video{object-fit:contain;width:100%;height:100%;display:block}.gallery-media>video{z-index:1;position:relative}.gallery-media-loading{background:linear-gradient(110deg, transparent 25%, #fff3 45%, transparent 65%) var(--color-surface-muted);pointer-events:none;background-size:240% 100%;animation:1.8s ease-in-out infinite gallery-loading;position:absolute;inset:0}.gallery-media:has(video) .gallery-media-loading{z-index:2;background-color:#0000;bottom:48px}.gallery-empty{text-align:center;align-content:center;justify-items:center;min-height:70dvh;padding:30px;display:grid}.gallery-empty h1{font-size:28px;font-weight:500}.gallery-empty p{color:var(--color-text-secondary);font-size:14px}.gallery-empty a{text-underline-offset:4px;font-size:13px;text-decoration:underline}.gallery-media-fallback{width:100%;height:100%;color:var(--color-text-secondary);background:var(--color-surface-muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:20px;font-size:13px;display:flex}.gallery-media-fallback button{cursor:pointer;padding:10px}@media (width>=1500px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=760px){.gallery-index{padding:32px 4px 48px}.gallery-grid{gap:2px}.gallery-viewer-toolbar{margin-bottom:12px;padding:0}.gallery-viewer{padding-inline:16px}}@keyframes gallery-loading{0%{background-position:150% 0}to{background-position:-150% 0}}@media (prefers-reduced-motion:reduce){.gallery-card img{transition:none}.gallery-media-loading{animation:none}}.gallery-media,.gallery-viewer .deferred-video{border-radius:0}.gallery-editor-preview .gallery-viewer-toolbar{top:0}.gallery-heading{text-align:center;min-width:0;padding:4px}.gallery-heading h1{margin:0 0 5px;font-size:14px;font-weight:500;line-height:1.4}.gallery-heading p{color:var(--color-text-secondary);flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;margin:0;font-size:11px;line-height:1.5;display:flex}.gallery-credits{width:100%;color:var(--color-text-secondary);margin:16px auto 0;font-size:12px}.gallery-credits p{flex-wrap:wrap;gap:8px 16px;margin:8px 0;display:flex}.gallery-credits a{color:var(--color-text-primary);text-underline-offset:4px}.gallery-credits .gallery-description{white-space:pre-wrap;margin-bottom:24px;line-height:1.8;display:block}@media (width<=760px){.gallery-viewer-toolbar{margin:0 0 12px;padding-inline:0}}.gallery-card{border-radius:0}.gallery-model-handles{flex-wrap:wrap;justify-content:center;gap:4px 12px;font-size:12px;line-height:1.7;display:flex}.gallery-page:has(.gallery-index){padding-bottom:0}.gallery-story{cursor:grab;-webkit-user-select:none;user-select:none}.gallery-story.is-dragging{cursor:grabbing;scroll-snap-type:none}.gallery-viewer .case-video-controls,.gallery-viewer .case-video-controls button{border-radius:0}.site-shell-gallery>main,.site-shell-gallery .route-transition{flex-direction:column;display:flex}.gallery-page{flex:1}.gallery-page:has(.gallery-viewer){align-items:center;padding-block:16px;display:flex}.gallery-index>.collection-title{margin-bottom:28px}.gallery-carousel{--gallery-stage-height:var(--gallery-available-height,min(75svh, calc(100cqw / var(--gallery-ratio))))}.gallery-heading .gallery-location{color:var(--color-text-primary)}@media (width<=760px){.site-shell-gallery:has(.gallery-page .gallery-viewer)>.site-footer{display:none}.gallery-page:has(.gallery-viewer){padding-block:0 max(8px, env(safe-area-inset-bottom))}.gallery-page .gallery-viewer-toolbar{margin-bottom:6px}.gallery-page .gallery-heading{padding:0}.gallery-page .gallery-heading h1{margin-bottom:3px}.gallery-page .gallery-credits{margin-top:6px}.gallery-page .gallery-model-handles{line-height:1.5}}
