/* ---------- Lightbox ---------- */

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
}

.lightbox.is-open {
	display: flex;
}

.lightbox__image {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lightbox__image.is-loaded {
	opacity: 1;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	z-index: 1;
}

.lightbox__close:hover {
	opacity: 1;
}

.lightbox__prev,
.lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #fff;
	font-size: 48px;
	cursor: pointer;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.lightbox__prev:hover,
.lightbox__next:hover {
	opacity: 1;
}

.lightbox__prev {
	left: 16px;
}

.lightbox__next {
	right: 16px;
}

.lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	font-family: var(--wp--preset--font-family--body, sans-serif);
}

/* ---------- Gallery Hover Effects ---------- */

.wp-block-gallery .wp-block-image {
	overflow: hidden;
	cursor: pointer;
}

.wp-block-gallery .wp-block-image img {
	transition: transform 0.35s ease;
}

.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.06);
}

.wp-block-gallery .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.35s ease;
	pointer-events: none;
}

.wp-block-gallery .wp-block-image:hover::after {
	background: rgba(0, 0, 0, 0.15);
}

.wp-block-gallery .wp-block-image {
	position: relative;
}
