/* Public artwork viewer uses the same UI and interaction styling as the private editor. */
.am-ae-lightbox[hidden]{display:none!important}
.am-ae-lightbox{
 position:fixed!important;inset:0;z-index:2147483000!important;
 display:flex;flex-direction:column;width:100vw;height:100vh;height:100dvh;
 background:rgba(6,9,8,.91);color:#fff;isolation:isolate;overflow:hidden;
 overscroll-behavior:contain;font-family:Rubik,Arial,sans-serif;
}
.am-ae-lightbox__top{height:65px;flex:0 0 65px;display:flex;align-items:center;justify-content:space-between;
 gap:16px;padding:10px clamp(14px,3vw,42px);position:relative;z-index:2}
.am-ae-lightbox__title{font:500 14px/1.4 Rubik,Arial,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.am-ae-lightbox__close{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;
 border:0;border-radius:50%;background:#ffffff1b;color:#fff;font:400 32px/1 sans-serif;cursor:pointer}
.am-ae-lightbox__close:hover{background:#ffffff33}
.am-ae-lightbox__stage{position:relative;flex:1;min-height:0;min-width:0;display:flex;
 align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;
 cursor:default}
.am-ae-lightbox__stage.is-zoomed{cursor:grab}
.am-ae-lightbox__stage.is-zoomed:active{cursor:grabbing}
.am-ae-lightbox__image{display:block;object-fit:contain;width:auto;height:auto;
 max-width:calc(100% - 44px);max-height:calc(100% - 18px);
 transform-origin:center center;will-change:transform;opacity:0;pointer-events:none;
 -webkit-user-drag:none;user-select:none}
.am-ae-lightbox__image.is-ready{opacity:1}
.am-ae-lightbox__status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 font-size:13px;color:#ffffffc9;white-space:nowrap;pointer-events:none}
.am-ae-lightbox__status[hidden]{display:none}
.am-ae-lightbox__controls{height:77px;flex:0 0 77px;display:flex;align-items:center;
 justify-content:center;gap:12px;padding:13px 16px calc(13px + env(safe-area-inset-bottom));z-index:2}
.am-ae-lightbox__controls button{display:grid;place-items:center;min-width:43px;height:43px;
 padding:0 10px;border:1px solid #ffffff55;border-radius:10px;background:#ffffff1a;color:#fff;
 font:500 20px/1 Rubik,Arial,sans-serif;cursor:pointer}
.am-ae-lightbox__controls button[data-am-viewer-fit]{font-size:12px}
.am-ae-lightbox__controls button:disabled{opacity:.35;cursor:default}
.am-ae-lightbox__controls input[type=range]{width:min(38vw,240px);accent-color:#fff;height:36px;cursor:pointer}
.am-ae-lightbox__percent{width:48px;text-align:right;color:#ffffffcc;font-size:12px}
.am-ae-lightbox button:focus-visible,.am-ae-lightbox input:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:680px){
 .am-ae-lightbox__top{height:55px;flex-basis:55px;padding:8px 14px}
 .am-ae-lightbox__controls{height:81px;flex-basis:81px;gap:7px}
 .am-ae-lightbox__controls button{min-width:39px;height:40px}
 .am-ae-lightbox__controls input[type=range]{width:min(33vw,180px)}
 .am-ae-lightbox__image{max-width:calc(100% - 14px);max-height:calc(100% - 12px)}
 .am-ae-lightbox__percent{font-size:11px;width:39px}
}
@media(prefers-reduced-motion:reduce){.am-ae-lightbox__image{scroll-behavior:auto}}
.am-ae-lightbox__image{pointer-events:auto}

/* Modal rotation: preview immediately, persist the rotated derivative on close. */
.am-ae-lightbox__rotation[hidden]{display:none!important}
.am-ae-lightbox__rotation{
 display:flex;flex:0 0 auto;align-items:center;justify-content:center;flex-wrap:wrap;
 gap:10px;padding:7px 15px 3px;color:#fff;
}
.am-ae-lightbox__rotation button{min-height:42px;padding:8px 15px;border:1px solid #ffffff77;
 border-radius:8px;background:#ffffff20;color:#fff;font:500 13px/1.3 Rubik,Arial,sans-serif;cursor:pointer}
.am-ae-lightbox__rotation button:hover{background:#ffffff3d}
.am-ae-lightbox__rotation button:disabled{opacity:.4;cursor:wait}
.am-ae-lightbox__save-note{flex-basis:100%;text-align:center;color:#ffffffa8;
 font:400 11px/1.4 Rubik,Arial,sans-serif}
@media(max-width:680px){.am-ae-lightbox__rotation{gap:7px;padding:6px 8px 2px}
.am-ae-lightbox__rotation button{min-height:42px;padding:8px 11px}}


/* Shared fullscreen photo navigation: public artwork, curator view and artist editor. */
.am-ae-lightbox__nav[hidden],.am-ae-lightbox__count[hidden]{display:none!important}
.am-ae-lightbox__nav{
 position:absolute;top:50%;transform:translateY(-50%);z-index:3;
 display:grid;place-items:center;width:48px;height:48px;padding:0;
 border:1px solid #ffffff46;border-radius:50%;
 background:rgba(18,20,19,.56);color:#fff;cursor:pointer;
 transition:background-color .15s ease;
 touch-action:manipulation;
}
.am-ae-lightbox__nav:hover{background:rgba(58,60,59,.9)}
.am-ae-lightbox__nav:disabled{opacity:.35;cursor:wait}
.am-ae-lightbox__nav--previous{left:max(14px,env(safe-area-inset-left))}
.am-ae-lightbox__nav--next{right:max(14px,env(safe-area-inset-right))}
.am-ae-lightbox__nav svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.am-ae-lightbox__count{
 position:absolute;bottom:10px;left:50%;transform:translateX(-50%);
 padding:5px 11px;border-radius:16px;background:#121413a8;color:#fff;
 font:500 12px/1.3 Rubik,Arial,sans-serif;pointer-events:none;
}
@media(max-width:680px){
 .am-ae-lightbox__nav{width:42px;height:42px}
 .am-ae-lightbox__nav--previous{left:max(6px,env(safe-area-inset-left))}
 .am-ae-lightbox__nav--next{right:max(6px,env(safe-area-inset-right))}
 .am-ae-lightbox__nav svg{width:23px;height:23px}
}
@media(prefers-reduced-motion:reduce){.am-ae-lightbox__nav{transition:none}}
