/* Name artwork stays in the DOM: native buttons, images, and a native modal. */
.name-gallery{padding-block:56px 88px}#gallery-title{font-size:clamp(2.6rem,4.4vw,4.4rem)}.gallery-stage{position:relative;border-radius:var(--radius-card);background:var(--color-mint);padding:28px;overflow:hidden}.gallery-stage:focus-visible{outline:3px solid var(--color-brand);outline-offset:5px}.gallery-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.gallery-card{display:flex;flex-direction:column;min-width:0;background:var(--color-paper);border:1px solid var(--color-border);border-radius:18px;padding:14px;text-align:left;box-shadow:var(--shadow-soft)}.gallery-card:hover{border-color:var(--color-brand)}.gallery-art{position:relative;height:190px;display:flex;align-items:center;justify-content:center}.gallery-art img{width:100%;height:100%;object-fit:contain}.gallery-art img,.gallery-full-art img{-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}.gallery-card-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 4px 2px;font-size:.9rem}.gallery-card-caption strong{font-weight:500}.gallery-card-caption>span{color:var(--color-muted)}
.is-carousel .gallery-stage{height:440px;padding:0;perspective:1200px;touch-action:pan-y}.is-carousel .gallery-track{display:block;position:absolute;inset:0;transform-style:preserve-3d}.is-carousel .gallery-card{position:absolute;top:50%;left:50%;width:300px;margin-left:-150px;margin-top:-156px;transform:translateX(calc(var(--gallery-offset)*265px)) translateZ(calc(var(--gallery-depth)*-110px)) rotateY(calc(var(--gallery-offset)*-16deg));transition:transform .55s ease,opacity .4s ease;opacity:calc(1 - var(--gallery-depth)*.18)}.is-carousel .gallery-art{height:235px}.is-carousel .gallery-card[aria-current="true"]{border-color:var(--color-brand)}
.gallery-visible:not(.gallery-background) .gallery-card[aria-current="true"] .gallery-art{animation:gallery-float 6s ease-in-out infinite}@keyframes gallery-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.gallery-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px;padding-top:22px}.gallery-controls .icon-button{border:1px solid var(--color-border);background:var(--color-paper)}.gallery-position{min-width:150px;text-align:center;font-size:.85rem;color:var(--color-muted)}.gallery-controls .text-link{margin-left:20px;font-size:.85rem}.gallery-note{margin-top:16px;font-size:.75rem;color:var(--color-muted);text-align:center}.gallery-empty{background:var(--color-mint);padding:40px;border-radius:var(--radius-card);color:var(--color-muted)}
.gallery-dialog{width:min(1060px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-paper);color:var(--color-text);overflow:auto}.gallery-dialog::backdrop{background:color-mix(in srgb,var(--color-forest),transparent 25%)}.gallery-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.gallery-dialog-heading h2{font-size:clamp(1.6rem,3vw,2.4rem);margin-top:8px}.gallery-dialog-heading .icon-button{font-size:1.7rem;flex-shrink:0}.gallery-full-art{position:relative;min-height:160px;display:flex;justify-content:center;align-items:center;background:var(--color-paper)}.gallery-full-art img{max-width:100%;width:auto;height:auto;max-height:65dvh;object-fit:contain}.gallery-dialog-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:24px}.gallery-dialog-controls>span{font-size:.8rem;color:var(--color-muted)}
@media(max-width:1000px){.gallery-track{grid-template-columns:repeat(3,minmax(0,1fr))}.is-carousel .gallery-card{width:270px;margin-left:-135px;transform:translateX(calc(var(--gallery-offset)*240px)) translateZ(calc(var(--gallery-depth)*-110px)) rotateY(calc(var(--gallery-offset)*-16deg));}}
@media(max-width:700px){.name-gallery{padding-block:20px 58px}.gallery-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-stage{padding:16px}.gallery-art{height:150px}.is-carousel .gallery-stage{height:350px;perspective:900px}.is-carousel .gallery-card{width:230px;margin-left:-115px;margin-top:-130px;padding:12px;transform:translateX(calc(var(--gallery-offset)*220px)) translateZ(calc(var(--gallery-depth)*-90px)) rotateY(calc(var(--gallery-offset)*-12deg));}.is-carousel .gallery-art{height:185px}.gallery-controls{gap:10px}.gallery-controls .text-link{margin-left:0}.gallery-position{min-width:120px;font-size:.75rem}.gallery-dialog{padding:18px}.gallery-dialog-controls .text-link{font-size:.8rem}.gallery-full-art img{max-height:60dvh}}
@media(prefers-reduced-motion:reduce){.name-gallery *{animation:none!important;transition:none!important;scroll-behavior:auto}}
