/* Lightbox styles from https://rimma.cz/assets/css/site.css?v=20260613-2 */
.lightbox { align-items: center; display: flex; inset: 0; justify-content: center; padding: 56px 80px; position: fixed; z-index: 1100; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { background: rgba(8, 15, 30, .94); border: 0; cursor: zoom-out; inset: 0; position: absolute; }
.lightbox-dialog { align-items: center; display: flex; flex-direction: column; height: 100%; justify-content: center; max-width: 1500px; position: relative; width: 100%; z-index: 1; }
.lightbox-image { display: block; max-height: calc(100vh - 150px); max-width: 100%; object-fit: contain; user-select: none; }
.lightbox-caption { color: white; font-size: .9rem; margin: 14px 0 0; max-width: 800px; text-align: center; }
.lightbox-counter { color: rgba(255,255,255,.7); font-size: .78rem; left: 22px; position: fixed; top: 20px; }
.lightbox-close, .lightbox-nav { align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: white; cursor: pointer; display: flex; justify-content: center; transition: background .15s; z-index: 2; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.lightbox-close { border-radius: 50%; font-size: 1.7rem; height: 44px; position: fixed; right: 22px; top: 18px; width: 44px; }
.lightbox-nav { border-radius: 50%; font-size: 2rem; height: 52px; position: fixed; top: 50%; transform: translateY(-50%); width: 52px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav[hidden] { display: none; }

@media (max-width: 800px) {
    .lightbox { padding: 64px 18px 72px; }
    .lightbox-image { max-height: calc(100vh - 160px); }
    .lightbox-nav { bottom: 16px; height: 46px; top: auto; transform: none; width: 46px; }
    .lightbox-prev { left: calc(50% - 58px); }
    .lightbox-next { right: calc(50% - 58px); }
    .lightbox-counter { left: 18px; }
}
