.ef-gallery-lightbox {
	background: transparent;
	border: 0;
	height: 100%;
	max-height: none;
	max-width: none;
	padding: 24px;
	width: 100%;
}

.ef-gallery-lightbox::backdrop {
	background: rgba(8, 12, 16, 0.9);
}

.ef-gallery-lightbox__panel {
	align-items: center;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 52px;
	height: 100%;
	margin: auto;
	max-width: 1280px;
	position: relative;
}

.ef-gallery-lightbox figure {
	margin: 0;
	min-width: 0;
	text-align: center;
}

.ef-gallery-lightbox figure img {
	display: block;
	height: auto;
	margin: auto;
	max-height: calc(100vh - 110px);
	max-width: 100%;
	object-fit: contain;
}

.ef-gallery-lightbox figcaption {
	color: #fff;
	font-size: 1rem;
	padding-top: 8px;
	text-align: left;
}

.ef-gallery-lightbox button {
	align-items: center;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.ef-gallery-lightbox button:is(:hover, :focus-visible) {
	background: #d71920;
	border-color: #d71920;
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.ef-gallery-lightbox__close {
	font-size: 1.8rem;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

.ef-gallery-lightbox__nav {
	font-size: 2.4rem;
	line-height: 1;
}

.ef-gallery-lightbox__nav--next {
	justify-self: end;
}

@media (max-width: 700px) {
	.ef-gallery-lightbox {
		padding: 12px;
	}

	.ef-gallery-lightbox__panel {
		grid-template-columns: 42px minmax(0, 1fr) 42px;
	}

	.ef-gallery-lightbox button {
		height: 38px;
		width: 38px;
	}
}
