.dearq-lightbox {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	background: white;
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
	z-index: 99999;
}

.dearq-lightbox.is-visible {
	opacity: 1;
	visibility: visible;
}

.dearq-lightbox__dialog {
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
}

.dearq-lightbox__controls {
	position: fixed;
	inset: 0;
	display: block;
	pointer-events: none;
}

.dearq-lightbox__nav {
	position: fixed;
	top: 50%;
	width: 3.75rem;
	height: 3.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 2.4rem 2.4rem;
	cursor: pointer;
	pointer-events: auto;
	transform: translateY( -50% );
}

.dearq-lightbox__nav--prev {
	left: max( 1rem, 2vw );
	background-image: url('../arrow-nav-left copy.svg');
}

.dearq-lightbox__nav--next {
	right: max( 1rem, 2vw );
	background-image: url('../arrow-nav-right copy.svg');
}

.dearq-lightbox__nav:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

.dearq-lightbox__image {
	display: block;
	max-width: 92vw;
	max-height: calc(90vh - 4.5rem);
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: zoom-out;
}

.dearq-lightbox__iframe {
	display: block;
	width: min(92vw, 1280px);
	aspect-ratio: 16 / 9;
	max-height: calc(90vh - 4.5rem);
	border: 0;
	background: #000;
}

.dearq-lightbox__image[hidden],
.dearq-lightbox__iframe[hidden] {
	display: none;
}

.dearq-lightbox__caption {
	max-width: min(92vw, 960px);
	margin: 0;
	color: #111111;
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: center;
}

.dearq-lightbox__caption:empty {
	display: none;
}

.wp-block-image img {
	cursor: zoom-in;
}

.gallery-item img {
	cursor: zoom-in;
}

@media (max-width: 768px) {
	.dearq-lightbox__nav {
		width: 3.2rem;
		height: 3.2rem;
		background-size: 2rem 2rem;
	}
}