/* Просмотрщик */
.dzl { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; background: rgba(8,11,10,.985); color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
.dzl.is-open { display: flex; animation: dzl-in .25s ease; }
.dzl.is-closing { animation: dzl-out .2s ease forwards; pointer-events: none; }
@keyframes dzl-out { to { opacity: 0; } }
@keyframes dzl-in { from { opacity: 0; } to { opacity: 1; } }
.dzl__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex: none; }
.dzl__count { font-size: 14px; opacity: .85; font-variant-numeric: tabular-nums; margin-right: auto; }
.dzl__btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.dzl__btn:hover, .dzl__btn:focus-visible { background: rgba(255,255,255,.24); outline: none; }
.dzl__btn[aria-pressed="true"] { background: #0b6e4f; }
.dzl__stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.dzl__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 50px rgba(0,0,0,.5); will-change: transform, opacity; -webkit-user-drag: none; }
.dzl__img.is-loading { opacity: 0; }
.dzl__spin { position: absolute; width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: dzl-spin .8s linear infinite; display: none; }
.dzl.is-busy .dzl__spin { display: block; }
@keyframes dzl-spin { to { transform: rotate(360deg); } }
.dzl__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 26px; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.dzl__nav:hover, .dzl__nav:focus-visible { background: rgba(0,0,0,.7); outline: none; }
.dzl__nav--prev { left: 12px; } .dzl__nav--next { right: 12px; }
.dzl__strip { flex: none; display: flex; gap: 6px; padding: 10px 14px 14px; overflow-x: auto; scrollbar-width: thin; justify-content: flex-start; }
.dzl__strip button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.dzl__strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dzl__strip button:hover { opacity: .9; }
.dzl__strip button.is-active { opacity: 1; border-color: #fff; }
@media (max-width: 700px) { .dzl__nav { width: 42px; height: 42px; font-size: 22px; } .dzl__nav--prev { left: 6px; } .dzl__nav--next { right: 6px; } .dzl__strip button { width: 52px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .dzl.is-open, .dzl.is-closing, .dzl__img, .dzg__i img { animation: none; transition: none; } }
.dzl__img.is-loading { opacity: 0; }
body.dzl-lock { overflow: hidden; }
.dzl__cap { flex: none; text-align: center; font-size: 14px; line-height: 1.4; padding: 6px 60px 4px; opacity: .85; max-height: 4.6em; overflow: auto; }
.dzl__cap:empty { display: none; }
.dzl.is-single .dzl__nav, .dzl.is-single .dzl__strip, .dzl.is-single [data-a="play"] { display: none; }
.entry-content img.dzl-zoom, .entry-content a.dzl-zoom img { cursor: zoom-in; }

.dzl.is-dragging .dzl__bar, .dzl.is-dragging .dzl__strip, .dzl.is-dragging .dzl__cap, .dzl.is-dragging .dzl__nav { opacity: .25; transition: opacity .15s; }
