.stage{height:280svh;background:#8fb9d3}
#gallery{height:100svh;min-height:0;isolation:isolate;background:#388fcb}
#gallery header{z-index:4;letter-spacing:-2px}
#gallery footer{z-index:4;pointer-events:none;border-color:#cbd2d4}
#gallery .rail{top:var(--ky);left:var(--kx);width:min(24vw,34svh);transform:translateX(-50%);rotate:none;z-index:2}
#gallery .rail:nth-of-type(1){--kx:36%;--ky:24%}
#gallery .rail:nth-of-type(2){--kx:14%;--ky:9%}
#gallery .rail:nth-of-type(3){--kx:82%;--ky:22%}
#gallery .rail:nth-of-type(4){--kx:61%;--ky:6%}
#gallery .rope{display:none}
#gallery .card{transform-origin:50% 0;will-change:transform;touch-action:none;cursor:grab}
#gallery .pic{aspect-ratio:3/4;background:transparent;filter:none;object-fit:contain}
#gallery .card small{position:absolute;width:100%;bottom:-5px;text-align:center;letter-spacing:.04em;color:#495459}
#gallery .badge-face,#gallery .card:hover .badge-face{transform:none;transition:none}
#gallery .badge-note{display:none}
#gallery .card:focus-visible{outline-offset:8px;border-radius:4px}
#gallery .cut .card{opacity:.15}
.kite-strings{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.kite-strings path{fill:none;stroke:#ffffff;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.65}
#viewer .pic{background:transparent;filter:none;aspect-ratio:3/4}
#viewer .inner{aspect-ratio:3/4}
#detail>img{filter:none}
@media(max-width:600px){
 #gallery{min-height:0}
 #gallery .rail{width:min(48vw,25svh);top:var(--ky);left:var(--kx)}
 #gallery .rail:nth-of-type(1){--kx:73%;--ky:14%}
 #gallery .rail:nth-of-type(2){--kx:25%;--ky:7%}
 #gallery .rail:nth-of-type(3){--kx:75%;--ky:49%}
 #gallery .rail:nth-of-type(4){--kx:27%;--ky:43%}
 #gallery .card small{font-size:9px}
 #gallery footer{bottom:16px;font-size:8px;letter-spacing:0}
}

#gallery .badge-frame{transform-origin:50% 60%;will-change:transform}
#gallery .holding .card{cursor:grabbing}
#gallery .floor .card small{opacity:0}
#gallery .card small{color:#233f50;text-shadow:0 1px 5px #ffffff80}
#gallery footer{color:#233f50;border-color:#ffffff55}

#gallery::before{content:"";position:absolute;inset:0 0 -35%;z-index:-2;background:#388fcb url("images/kite-sky.png") center/cover no-repeat;transform:translateY(var(--sky-shift,0%));will-change:transform;pointer-events:none}
#gallery::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(137,194,230,.05) 0%,rgba(185,221,242,.48) 35%,#e7f3fb 72%,#fff 100%);opacity:var(--sky-fade,0);pointer-events:none}

/* Both faces are transparent kite silhouettes, never rectangular cards. */
#viewer .inner{width:min(80vw,52svh);transform-origin:50% 50%}
#viewer .inner .pic{width:100%;height:100%;object-fit:contain;backface-visibility:hidden;-webkit-backface-visibility:hidden}
#viewer .kite-back{display:block;padding:0;background:transparent;transform:rotateY(180deg);filter:none}
#viewer::backdrop{background:rgba(221,239,250,.62);backdrop-filter:blur(5px)}
#viewer .hint{color:#233f50;margin:12px 0 0}
#viewer .close{color:#233f50}

#gallery header .site-logo{display:block;width:44px;height:44px;object-fit:contain;filter:none}
@media(max-width:600px){#gallery header .site-logo{width:36px;height:36px}}

.language-switch{position:fixed;right:24px;top:20px;z-index:100;display:flex;gap:4px;background:#ffffffdc;border-radius:24px;padding:4px;font:12px/1.4 Arial,sans-serif}.language-switch a{padding:7px 11px;text-decoration:none;border-radius:20px;color:#415264}.language-switch a[aria-current]{background:#263e50;color:white}body:has(.lab-page) .lab-nav{padding-right:100px}@media(max-width:600px){.language-switch{right:12px;top:10px}.language-switch a{padding:6px 9px}body:has(.lab-page) .lab-nav>span{display:none}}
