.esc-article-content .wp-block-gallery a[href] {
	display: block;
	cursor: zoom-in;
}

.esc-article-content .wp-block-gallery .wp-element-caption {
	pointer-events: none;
}

.esc-article-lightbox {
	width: min(96vw, 1600px);
	height: min(96svh, 1100px);
	max-width: none;
	max-height: none;
	padding: 0;
	color: #f5f7fb;
	background: #0b0d12;
	border: 1px solid #3c4658;
	border-radius: 1rem;
	box-shadow: 0 2rem 7rem rgba(0, 0, 0, .72);
}

.esc-article-lightbox::backdrop {
	background: rgba(3, 5, 9, .88);
	backdrop-filter: blur(8px);
}

.esc-article-lightbox .esc-project-lightbox__shell {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
}

.esc-article-lightbox :where(.esc-project-lightbox__toolbar, .esc-project-lightbox__footer) {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem clamp(.7rem, 2vw, 1.25rem);
	background: rgba(17, 22, 32, .96);
}

.esc-article-lightbox .esc-project-lightbox__toolbar {
	border-bottom: 1px solid #2a3140;
}

.esc-article-lightbox .esc-project-lightbox__footer {
	border-top: 1px solid #2a3140;
}

.esc-article-lightbox :where(.esc-project-lightbox__status, .esc-project-lightbox__caption) {
	margin: 0;
	color: #c5cedb;
	font-size: .82rem;
}

.esc-article-lightbox .esc-project-lightbox__caption {
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.esc-article-lightbox .esc-project-lightbox__tools {
	display: flex;
	gap: .4rem;
}

.esc-article-lightbox button {
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: .45rem .75rem;
	color: #f5f7fb;
	font: inherit;
	font-weight: 700;
	background: #202735;
	border: 1px solid #465167;
	border-radius: .6rem;
	cursor: pointer;
}

.esc-article-lightbox button:hover {
	color: #0b0d12;
	background: #ffb000;
	border-color: #ffb000;
}

.esc-article-lightbox .esc-project-lightbox__viewport {
	overflow: auto;
	overscroll-behavior: contain;
	background: #06080d;
	scrollbar-color: #667085 #111620;
	touch-action: pan-x pan-y pinch-zoom;
}

.esc-article-lightbox .esc-project-lightbox__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0 auto;
	transform-origin: top center;
}

@media (max-width: 720px) {
	.esc-article-lightbox {
		width: 100vw;
		height: 100svh;
		border: 0;
		border-radius: 0;
	}

	.esc-article-lightbox :where(.esc-project-lightbox__toolbar, .esc-project-lightbox__footer) {
		padding-right: max(.6rem, env(safe-area-inset-right));
		padding-left: max(.6rem, env(safe-area-inset-left));
	}

	.esc-article-lightbox .esc-project-lightbox__caption {
		display: none;
	}

	.esc-article-lightbox .esc-project-lightbox__footer button span {
		display: none;
	}
}
