/* Primo Performance Optimizations - YouTube Facade, Video Lightbox & GIF Video */
.primo-yt {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	cursor: pointer;
	overflow: hidden;
	border-radius: 8px;
}

.primo-yt > img,
.primo-yt > picture > img,
.primo-yt > iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.primo-yt__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: transform 0.2s ease;
	z-index: 2;
}

.primo-yt:hover .primo-yt__play {
	transform: translate(-50%, -50%) scale(1.08);
}

/* Lightweight Video Modal (replaces MagnificPopup on non-gallery pages) */
.primo-yt-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
	padding: 20px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.primo-yt-modal.is-open {
	opacity: 1;
}

.primo-yt-modal__inner {
	position: relative;
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.primo-yt-modal__inner iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.primo-yt-modal__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.85;
}

.primo-yt-modal__close:hover {
	opacity: 1;
}

.primo-gif {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Hide custom mouse cursor on touch devices */
@media (pointer: coarse), (hover: none) {
	.antra-cursor {
		display: none !important;
	}
}
