.click-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.click-lightbox-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.click-lightbox-image {
	max-width: min(96vw, 1400px);
	max-height: 92vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	cursor: zoom-out;
	transform: scale(0.96);
	transition: transform 0.2s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.click-lightbox-overlay.is-open .click-lightbox-image {
	transform: scale(1);
}

body.click-lightbox-open {
	overflow: hidden;
}

.entry-content img,
.entry-content .wp-block-image img,
.entry-content figure img,
.entry-content .gallery img,
.entry-content .image-tiles-img,
.entry-content .gallery-grid img {
	cursor: zoom-in;
}

.posts-grid .entry-content img,
.related-posts-section .entry-content img,
.related-posts-grid .entry-content img,
.base-posts-tiles-grid .entry-content img,
.post-thumbnail img {
	cursor: default;
}

@media (prefers-reduced-motion: reduce) {
	.click-lightbox-overlay,
	.click-lightbox-image {
		transition: none;
	}
}