/* dmkrtz Lightbox – colours/corners from the settings (inline :root vars) */
html.dlb-open, html.dlb-open body { overflow: hidden !important; }
.dlb { --dlb-line: rgba(255, 255, 255, .16); --dlb-text: #e8e8e8; --dlb-muted: #9a9a9a; --dlb-btn: rgba(28, 28, 28, .92);
	position: fixed; inset: 0; z-index: 2147483647; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; padding: 64px 0 0;
	background: var(--dlb-backdrop, rgba(8, 8, 8, .92)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: var(--dlb-text); font-family: inherit; font-size: 14px; line-height: 1.4; opacity: 0; transition: opacity .2s ease; touch-action: none; -webkit-user-select: none; user-select: none; }
.dlb:not([open]) { display: none; }
.dlb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; overflow: hidden; } /* <dialog> defaults */
.dlb::backdrop { background: transparent; }
.dlb.is-open { opacity: 1; }
.dlb *, .dlb *::before, .dlb *::after { box-sizing: border-box; }

/* picture */
.dlb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 92px 16px; overflow: hidden; }
.dlb-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--dlb-radius, 10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .7);
	opacity: 0; transform-origin: center; cursor: zoom-in; will-change: transform; }
.dlb-img.is-in { opacity: 1; transition: opacity .2s ease; }
.dlb.is-zoomed .dlb-img { cursor: grab; border-radius: 0; }
.dlb.is-zoomed .dlb-img:active { cursor: grabbing; }
.dlb-spin { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--dlb-accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.dlb.is-loading .dlb-spin { opacity: 1; animation: dlb-spin .8s linear infinite; transition: opacity .2s .25s; }
@keyframes dlb-spin { to { transform: rotate(360deg); } }

.dlb-caption { padding: 0 92px 12px; color: var(--dlb-text); font-size: 14px; font-weight: 600; text-align: center; }
.dlb-caption[hidden] { display: none; }

/* buttons: like the site buttons */
.dlb-bar { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.dlb-count { margin-right: 6px; color: var(--dlb-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dlb-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; background: var(--dlb-btn); border: 1px solid var(--dlb-line); border-radius: var(--dlb-btn-radius, 50%);
	color: var(--dlb-text); cursor: pointer; box-shadow: none; transition: border-color .15s, color .15s; }
.dlb-btn svg { width: 18px; height: 18px; }
.dlb-btn:hover, .dlb-btn:focus-visible { border-color: var(--dlb-accent); color: var(--dlb-accent); outline: none; }
.dlb-btn[hidden] { display: none; }
.dlb-btn:disabled { opacity: .3; cursor: default; border-color: var(--dlb-line); color: var(--dlb-text); }
.dlb-prev, .dlb-next { position: fixed; top: calc(50% - 30px); width: 48px; height: 48px; }
.dlb-prev { left: 24px; }
.dlb-next { right: 24px; }
.dlb.has-strip .dlb-prev, .dlb.has-strip .dlb-next { top: calc(50% - 64px); }
.dlb.is-single .dlb-prev, .dlb.is-single .dlb-next, .dlb.is-single .dlb-play, .dlb.is-single .dlb-count { display: none; }
.dlb.is-playing .dlb-play { border-color: var(--dlb-accent); color: var(--dlb-accent); }

/* slideshow progress */
.dlb-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.dlb-progress span { display: block; width: 0; height: 100%; background: var(--dlb-accent); opacity: 0; }
.dlb.is-playing .dlb-progress span { opacity: 1; }

/* picture strip */
.dlb-strip { display: flex; justify-content: safe center; gap: 8px; padding: 10px 12px; overflow-x: auto; background: rgba(16, 16, 16, .85); border-top: 1px solid rgba(255, 255, 255, .08); scrollbar-width: thin; touch-action: pan-x; }
.dlb-strip[hidden] { display: none; }
.dlb-strip button { flex: none; width: 76px; height: 46px; margin: 0; padding: 0; overflow: hidden; background: #1c1c1c; border: 2px solid transparent; border-radius: min(6px, var(--dlb-radius, 6px)); opacity: .55; cursor: pointer; transition: opacity .15s, border-color .15s; }
.dlb-strip button:hover { opacity: .9; }
.dlb-strip button.is-active { border-color: var(--dlb-accent); opacity: 1; }
.dlb-strip img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* phones: all buttons in one bar at the bottom, above the strip */
@media (max-width: 700px) {
	.dlb { grid-template-rows: minmax(0, 1fr) auto auto auto; padding-top: 12px; }
	.dlb-stage { padding: 0 6px 10px; }
	.dlb-caption { padding: 0 14px 10px; font-size: 13px; }
	.dlb-bar { position: static; grid-row: 3; gap: 6px; padding: 0 8px 10px; }
	.dlb-btn { flex: 1; width: auto; height: 44px; border-radius: min(8px, var(--dlb-btn-radius, 8px)); }
	.dlb-prev, .dlb-next { position: static; width: auto; height: 44px; }
	.dlb-prev { order: -2; }
	.dlb-next { order: 9; }
	.dlb-count { position: absolute; left: 0; right: 0; top: 14px; margin: 0; text-align: center; pointer-events: none; }
	.dlb-strip { grid-row: 4; }
	.dlb-strip button { width: 64px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .dlb, .dlb-img.is-in { transition: none; } }
