/* Scoped to ordinary image-post lightboxes; album, story and video viewers keep their own controls. */
.lightbox-content[data-gk-post-image-zoom] .sun_img_innr { display:flex; width:100%; overflow:hidden; }
.lightbox-content[data-gk-post-image-zoom] [data-gk-post-zoom-viewport] {
    display:flex !important; align-items:center; justify-content:center; position:relative;
    width:100%; height:100%; min-width:0; min-height:0; overflow:hidden; isolation:isolate;
}
.lightbox-content[data-gk-post-image-zoom] [data-gk-post-zoom-viewport].gk-post-zoom-ready {
    touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; cursor:zoom-in;
}
.lightbox-content[data-gk-post-image-zoom] [data-gk-post-zoom-viewport].gk-post-zoom-active { cursor:grab; }
.lightbox-content[data-gk-post-image-zoom] [data-gk-post-zoom-viewport].gk-post-zoom-dragging { cursor:grabbing; }
.lightbox-content[data-gk-post-image-zoom] [data-gk-post-zoom-viewport] > img {
    flex:0 0 auto; width:auto; height:auto; max-width:100%; max-height:100%; margin:auto;
    transform-origin:center; will-change:auto; transition:transform 140ms ease-out; pointer-events:none;
}
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-active > img { will-change:transform; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-dragging > img { transition:none; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools {
    position:absolute; inset-inline-start:max(12px,env(safe-area-inset-left)); top:max(12px,env(safe-area-inset-top));
    z-index:1040; display:flex; align-items:center; padding:3px; border-radius:13px;
    background:rgba(18,20,26,.82); border:1px solid rgba(255,255,255,.2); box-shadow:0 3px 16px rgba(0,0,0,.24);
    color:#fff; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); direction:ltr;
    opacity:.65; transition:opacity 180ms ease,background-color 180ms ease;
}
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools.gk-post-zoom-awake { opacity:1; background:#12141a; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools[hidden] { display:none !important; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools button {
    display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0;
    border:0; border-radius:9px; background:transparent; color:#fff !important; cursor:pointer;
    font:600 12px/1 system-ui,sans-serif; letter-spacing:0; touch-action:manipulation;
}
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools .gk-post-zoom-reset { width:54px; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools button:hover:not(:disabled) { background:rgba(255,255,255,.16); }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools button:focus-visible { outline:2px solid #c4acff; outline-offset:-3px; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools button:disabled { opacity:.42; cursor:default; }
.lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (prefers-reduced-motion:reduce) {
    .lightbox-content[data-gk-post-image-zoom] .gk-post-zoom-tools { transition:none; }
    .lightbox-content[data-gk-post-image-zoom] [data-gk-post-zoom-viewport] > img { transition:none; }
}
