/* Center short galleries; overflowing galleries retain their first screenshot. */
.rk-screenshot-strip{min-width:0;max-width:100%;justify-content:flex-start}
.rk-screenshot-strip a{display:block;flex:0 0 auto;max-width:100%;min-width:0}
.rk-screenshot-strip a:first-child{margin-inline-start:auto}
.rk-screenshot-strip a:last-child{margin-inline-end:auto}
.rk-screenshot-strip img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:340px;margin-inline:auto;object-fit:contain}
/* The native modal isolates focus and keeps the image on the current page. */
.rk-gallery{box-sizing:border-box;border:0;padding:0;background:transparent;color:#fff;width:min(1100px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:visible}
.rk-gallery::backdrop{background:rgba(0,0,0,.88)}
.rk-gallery-frame{position:relative;padding:56px 52px 12px;min-width:0}
.rk-gallery figure{margin:0;text-align:center}
.rk-gallery img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);object-fit:contain;margin:auto;border-radius:6px}
.rk-gallery figcaption{margin:12px 0 0;font-size:14px;line-height:1.4;text-align:center}
.rk-gallery .rk-gallery-error{margin:12px 0 0;color:#fff;font-size:14px}
.rk-gallery button{position:absolute;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(20,20,20,.8);color:#fff;font-size:32px;line-height:1;cursor:pointer}
.rk-gallery button:hover{background:#0054ae}
.rk-gallery button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.rk-gallery-close{top:0;right:0}
.rk-gallery-prev{top:50%;left:0}
.rk-gallery-next{top:50%;right:0}
.rk-gallery [hidden]{display:none!important}
@media(max-width:760px){.rk-screenshot-strip img{max-height:280px}}
@media(max-width:600px){.rk-gallery-frame{padding:54px 0 48px}.rk-gallery-prev{top:auto!important;bottom:0;left:calc(50% - 58px)!important}.rk-gallery-next{top:auto!important;bottom:0;right:calc(50% - 58px)!important}.rk-gallery img{max-height:calc(100vh - 174px);max-height:calc(100dvh - 174px)}}
