.gallery{width:100%;max-width:100%;box-sizing:border-box}.gallery-main{position:relative;border-radius:var(--radius);background:var(--pastel-cream);margin-bottom:8px;user-select:none;-webkit-user-select:none;max-width:100%;box-sizing:border-box}.gallery-main,.gallery-viewport{aspect-ratio:1;overflow:hidden;touch-action:pan-y;width:100%}.gallery-viewport{height:100%}.gallery-container{display:flex;touch-action:pan-y;margin-left:0;height:100%}.gallery-slide{flex:0 0 100%;min-width:0;position:relative}.gallery-slide-inner{width:100%;height:100%;position:relative}.gallery-image{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}.gallery-swipe-hint{bottom:8px;left:50%;transform:translateX(-50%);font-size:.75rem;color:hsla(0,0%,100%,.9);text-shadow:0 1px 2px rgba(0,0,0,.3)}.gallery-nav,.gallery-swipe-hint{position:absolute;pointer-events:none}.gallery-nav{inset:0;z-index:2}.gallery-nav>*{pointer-events:auto}.gallery-next,.gallery-prev{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid hsla(0,0%,100%,.72);border-radius:50%;background:hsla(0,0%,100%,.68);color:var(--accent);font-size:0;line-height:0;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;text-align:center;font-family:inherit;font-weight:600;transition:background .2s ease,transform .2s ease;box-shadow:var(--shadow);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.gallery-chevron{display:block;font-size:24px;line-height:1;transform:translateY(-2px)}.gallery-chevron-next{transform:translate(.5px,-2px)}.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-next:hover,.gallery-prev:hover{background:hsla(0,0%,100%,.8);border-color:var(--accent);transform:translateY(-50%) scale(1.05)}.gallery-next:active,.gallery-prev:active{transform:translateY(-50%) scale(.98)}@media (hover:none),(pointer:coarse){.gallery-nav{display:none}.gallery-next,.gallery-prev{position:static;top:auto;left:auto;right:auto;transform:none;width:40px;height:40px;min-width:40px;min-height:40px;background:hsla(0,0%,100%,.58);border:1px solid hsla(0,0%,100%,.72);box-shadow:0 4px 14px rgba(0,0,0,.2);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.gallery-next:hover,.gallery-prev:hover{transform:scale(1.05);background:hsla(0,0%,100%,.7)}.gallery-next:active,.gallery-prev:active{transform:scale(.96)}.gallery-chevron{font-size:22px}.gallery-thumbs{display:none}}.gallery-dots{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);display:flex;gap:8px;justify-content:center;z-index:2;pointer-events:auto}.gallery-dot{width:8px;height:8px;border-radius:50%;border:none;padding:0;background:var(--pastel-cream);cursor:pointer;transition:background .2s,transform .2s}.gallery-dot:hover{background:var(--accent-soft)}.gallery-dot.active{background:var(--accent);transform:scale(1.2)}.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:0;margin-bottom:0}.thumb{flex-shrink:0;width:64px;height:64px;border-radius:var(--radius-sm);overflow:hidden;border:2px solid transparent;padding:0;background:var(--surface);cursor:pointer;transition:border-color .2s}.thumb.active{border-color:var(--accent)}.thumb-img{width:100%;height:100%;object-fit:cover;object-position:top center}.gallery-lightbox{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;touch-action:none}.gallery-lightbox-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border:1px solid hsla(0,0%,100%,.45);border-radius:999px;background:hsla(0,0%,8%,.55);color:#fff;font-size:14px;font-weight:700;cursor:pointer}.gallery-lightbox-stage{width:min(96vw,760px);max-height:82vh;display:flex;align-items:center;justify-content:center;overflow:hidden}.gallery-lightbox-image{width:100%;height:auto;max-height:82vh;object-fit:contain;transform-origin:center center;transition:transform .14s ease;will-change:transform}.gallery-lightbox-counter{margin-top:14px;margin-bottom:0;color:hsla(0,0%,100%,.95);font-size:12px;font-weight:600;letter-spacing:.02em}