.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:2px solid var(--border);border-radius:50%;background:var(--surface);color:var(--accent);font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s ease,transform .2s ease;box-shadow:var(--shadow)}.gallery-prev{left:8px}.gallery-next{right:8px}.gallery-next:hover,.gallery-prev:hover{background:var(--accent-soft);border-color:var(--accent);transform:translateY(-50%) scale(1.05)}.gallery-next:active,.gallery-prev:active{transform:translateY(-50%) scale(.98)}.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}