.wps-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 14, 20, 0.92);
	padding: 40px;
	box-sizing: border-box;
}

.wps-lightbox-overlay.is-hidden {
	display: none;
}

.wps-lightbox-img {
	max-width: 90vw;
	max-height: 85vh;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.wps-lightbox-close,
.wps-lightbox-prev,
.wps-lightbox-next {
	position: absolute;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	padding: 8px;
}

.wps-lightbox-close {
	top: 16px;
	right: 24px;
	font-size: 34px;
}

.wps-lightbox-prev,
.wps-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
}

.wps-lightbox-prev {
	left: 16px;
}

.wps-lightbox-next {
	right: 16px;
}

.wps-lightbox-close:hover,
.wps-lightbox-prev:hover,
.wps-lightbox-next:hover {
	opacity: 0.7;
}

/**
 * 3-column grid for the [gallery] shortcode output on single posts.
 * Written from scratch rather than relying on theme/core gallery styles,
 * since themes with add_theme_support( 'html5', array( 'gallery' ) ) — like
 * the active twentytwentyfive theme — print no default gallery CSS at all.
 */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	list-style: none;
	margin: 24px 0;
	padding: 0;
}

.gallery-item {
	margin: 0;
}

.gallery-item .gallery-icon a {
	display: block;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	cursor: zoom-in;
}

.gallery-caption {
	margin-top: 4px;
	font-size: 14px;
	text-align: center;
}

@media (max-width: 640px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
