/* Enlarge popup for core/image — see inc/image-enlarge.php */
.axl-enlarge__trigger {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: zoom-in;
	line-height: 0;
}
.axl-enlarge__trigger img { display: block; }
.axl-enlarge__trigger:focus-visible { outline: 3px solid #64e8ff; outline-offset: 3px; }

html.axl-enlarge-open { overflow: hidden; }

.axl-enlarge-dialog {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(5, 8, 20, .92);
	color: #fff;
	overflow: hidden;
}
.axl-enlarge-dialog[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
}
.axl-enlarge-dialog::backdrop { background: rgba(5, 8, 20, .92); }

.axl-enlarge-dialog__figure {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 4rem 0 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-height: 100dvh;
	text-align: center;
}
.axl-enlarge-dialog__figure img {
	max-width: 100%;
	max-height: calc(100dvh - 7rem);
	width: auto;
	height: auto;
	object-fit: contain;
}
.axl-enlarge-dialog__figure figcaption { margin-top: .75rem; font-size: .95rem; opacity: .85; }

.axl-enlarge-dialog__bar {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: .5rem;
	padding: .75rem;
	z-index: 1;
}
.axl-enlarge-dialog__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-width: 44px;
	min-height: 44px;
	padding: .5rem .75rem;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font: inherit;
	font-size: .95rem;
	text-decoration: none;
	cursor: pointer;
}
.axl-enlarge-dialog__btn svg { fill: currentColor; flex: none; }
.axl-enlarge-dialog__btn:hover { background: rgba(255, 255, 255, .22); }
.axl-enlarge-dialog__btn:focus-visible { outline: 3px solid #64e8ff; outline-offset: 2px; }
.axl-enlarge-dialog__btn[hidden] { display: none; }
.axl-enlarge-dialog__nav { flex: none; margin: 0 .5rem; padding: .5rem; }

@media (max-width: 600px) {
	.axl-enlarge-dialog__nav { position: absolute; bottom: .75rem; z-index: 1; }
	.axl-enlarge-dialog__prev { left: .5rem; }
	.axl-enlarge-dialog__next { right: .5rem; }
	.axl-enlarge-dialog__figure img { max-height: calc(100dvh - 11rem); }
}
@media (prefers-reduced-motion: no-preference) {
	.axl-enlarge-dialog[open] { animation: axl-enlarge-in .15s ease-out; }
	@keyframes axl-enlarge-in { from { opacity: 0; } to { opacity: 1; } }
}
