body.rgl-open { overflow: hidden; }
.rgl-overlay[hidden] { display: none !important; }
.rgl-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(25, 18, 32, .94);
	backdrop-filter: blur(8px);
}
.rgl-frame {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(100%, 1500px);
	height: min(100%, 1000px);
}
.rgl-image {
	display: block;
	max-width: min(88vw, 1400px);
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.rgl-caption {
	min-height: 1.5em;
	margin: 1rem 3.5rem 0;
	color: #fff;
	font: 500 1rem/1.5 Manrope, sans-serif;
	text-align: center;
}
.rgl-close,
.rgl-arrow {
	position: fixed;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 999px;
	color: #fff;
	background: rgba(255,255,255,.12);
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}
.rgl-close:hover,
.rgl-arrow:hover { background: #9d3df5; transform: scale(1.06); }
.rgl-close:focus-visible,
.rgl-arrow:focus-visible { outline: 3px solid #a95cf6; outline-offset: 3px; }
.rgl-close { top: 1.25rem; right: 1.5rem; width: 3rem; height: 3rem; font-size: 2rem; line-height: 1; }
.rgl-arrow { top: 50%; width: 3.5rem; height: 3.5rem; font-size: 2.75rem; line-height: 1; transform: translateY(-50%); }
.rgl-arrow:hover { transform: translateY(-50%) scale(1.06); }
.rgl-previous { left: 1.5rem; }
.rgl-next { right: 1.5rem; }
@media (max-width: 640px) {
	.rgl-overlay { padding: .75rem; }
	.rgl-image { max-width: 92vw; max-height: 76vh; }
	.rgl-close { top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; }
	.rgl-arrow { width: 2.75rem; height: 2.75rem; font-size: 2.15rem; }
	.rgl-previous { left: .5rem; }
	.rgl-next { right: .5rem; }
	.rgl-caption { margin-top: .75rem; font-size: .9rem; }
}