.gallery.immersive{padding:4px 8px 0;min-height:0}
.immersive .viewer{height:calc(100dvh - 82px);min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 64px;background:transparent;backdrop-filter:none;border:0;border-radius:16px;box-shadow:none;overflow:hidden}
.immersive .viewer>img,.immersive .viewer>video{grid-area:1/1;width:100%;height:100%;min-height:0;background:transparent}
.immersive .shade{display:none}
.gallerycontrols{position:relative;grid-area:2/1;left:auto;bottom:auto;transform:none!important;justify-self:center;align-self:center;max-width:100%;gap:4px;padding:4px;background:transparent;border:0;box-shadow:none;backdrop-filter:none;opacity:.85}
.gallerycontrols>button,.gallerycontrols>a,.gallerycontrols .likebutton,.gallerycontrols .categorytabs button{width:40px;height:42px;border:0;border-radius:12px;background:transparent;transition:transform .14s ease,background .14s ease,color .14s ease;touch-action:manipulation}
.gallerycontrols .categorytabs button{font-size:11px;font-weight:700}
.gallerycontrols .categorytabs button.active,.gallerycontrols .nextbutton{background:#ffffff18;color:white;box-shadow:inset 0 1px #ffffff24}
.gallerycontrols button:active,.gallerycontrols a:active{transform:scale(.88);background:#ffffff30}
.gallerycontrols button:focus-visible,.gallerycontrols a:focus-visible{outline:2px solid #f3a3c1;outline-offset:2px}
.gallerycontrols .likebutton.liked{background:#f48caf16;color:#ff91ae}
.floatingtags span{backdrop-filter:none;background:#1118}
.floatingtags{max-width:92%;overflow:hidden}
.viewer.previewloading:after{content:'';position:absolute;left:calc(50% - 14px);top:45%;width:28px;height:28px;border:2px solid #ffffff20;border-top-color:#ffb2cc;border-radius:50%;animation:previewspin .8s linear infinite;pointer-events:none}
@keyframes previewspin{to{transform:rotate(360deg)}}
.top{backdrop-filter:none}
@media(max-width:600px){.immersive .viewer{height:calc(100dvh - 78px);grid-template-rows:minmax(0,1fr) 58px}.gallerycontrols{gap:0}.gallerycontrols>button,.gallerycontrols>a,.gallerycontrols .likebutton,.gallerycontrols .categorytabs button{width:clamp(32px,10vw,40px)}.top{padding:8px}.brand{gap:6px}.brand b{font-size:13px}.top nav{gap:3px}.top nav a{font-size:11px;padding:7px}.controldivider{display:none}}
@media(prefers-reduced-motion:reduce){.gallerycontrols *{animation:none!important;transition:none!important}}

@media(max-width:600px){.immersive .viewer{height:calc(100dvh - 125px);grid-template-rows:minmax(0,1fr) 100px}.gallerycontrols{flex-wrap:wrap;justify-content:center;max-width:100%}.top{height:auto;min-height:78px;flex-wrap:wrap;gap:8px}}
