/* Focus outline */
:where(.wp-site-blocks *:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* 3-column grid */
#lightgallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}
#lightgallery a {
	display: block;
	margin: 0;
	line-height: 0;
}
#lightgallery img {
	display: block;
	width: 100%;
	height: auto;
}

/* Toolbar below the WP admin bar */
.lg-toolbar {
	position: absolute !important;
	top: 12px !important;
	z-index: 999999 !important;
	display: flex !important;
	opacity: 1 !important;
	transform: none !important;
}
.admin-bar .lg-toolbar {
	top: 48px !important;
}
@media (max-width: 782px) {
	.admin-bar .lg-toolbar {
		top: 62px !important;
	}
}
.lg-toolbar button {
	pointer-events: auto !important;
}

/* Space for toolbar; center videos and size them sanely */
.lg-outer .lg-content {
	padding-top: 56px;
}
.admin-bar .lg-outer .lg-content {
	padding-top: 72px;
}
.lg-outer video {
	display: block;
	margin: 0 auto;
	max-width: 90vw;
	max-height: 85vh;
	width: auto !important;
	height: auto !important;
}

/* Constrain the poster image (the image shown before play) */
.lg-current .lg-video-cont {
	max-width: 90vw;
	max-height: 85vh;
	margin: 0 auto; /* same caps as video */
	display: flex;
	align-items: center;
	justify-content: center;
}
.lg-current .lg-video-cont img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}
