/* Desktop image widths inherit the 80% rule in style.css. */
@media (max-width: 720px) {
	.single-post .entry-content > .wp-block-image,
	.single-post .entry-content > .wp-caption,
	.single-post .entry-content > img,
	.single-post .entry-content > p > img,
	.single-post .entry-content > p > a > img {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}
}
.single-post .entry-content > img,
.single-post .entry-content > p > img,
.single-post .entry-content > p > a > img { height: auto; }
.single-post .entry-content > .wp-block-image img,
.single-post .entry-content > .wp-caption img {
	width: 100%;
	max-width: 100%;
	height: auto;
}
.wallblog-image-trigger { cursor: zoom-in; }
.wallblog-image-trigger:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
html.wallblog-image-viewer-open { overflow: hidden; }
.wallblog-image-viewer {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #171717;
	color: #fff;
}
.wallblog-image-viewer[open] { display: flex; flex-direction: column; }
.wallblog-image-viewer::backdrop { background: #171717; }
.wallblog-image-viewer__toolbar {
	position: relative;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: max(12px, env(safe-area-inset-top)) 16px 12px;
	flex-shrink: 0;
}
.wallblog-image-viewer__toolbar a,
.wallblog-image-viewer__toolbar button,
.wallblog-image-viewer__zoom button {
	min-height: 36px;
	padding: 10px 14px;
	border: 1px solid #777;
	border-radius: 6px;
	background: #282828;
	color: #fff;
	font: inherit;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.wallblog-image-viewer :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wallblog-image-viewer__stage { flex: 1; min-height: 0; overflow: auto; padding: 12px; text-align: center; }
.wallblog-image-viewer__stage img { display: block; width: auto; height: auto; max-width: none; max-height: none; margin: auto; object-fit: contain; }
.wallblog-image-viewer__zoom {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	padding: 0;
}
.wallblog-image-viewer__toolbar .wallblog-image-viewer__zoom button {
	width: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	line-height: 1;
}
.wallblog-image-viewer__zoom button:disabled { opacity: 0.35; cursor: default; }
.wallblog-image-viewer__stage p:empty { display: none; }

.wallblog-image-viewer__toolbar a,
.wallblog-image-viewer__toolbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
}
.wallblog-image-viewer__toolbar svg { width: 18px; height: 18px; pointer-events: none; }

.wallblog-image-viewer__toolbar .wallblog-image-viewer__zoom svg { width: 26px; height: 26px; }
