/* Moissons - Gallery Slider */

.moissons-gallery-slider--empty {
	padding: 1rem 1.25rem;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	border-radius: 0.75rem;
	background: rgba(0, 0, 0, 0.03);
}

.gallery-slider .swiper-slide {
	width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.gallery-slider .swiper-slide {
		width: calc(100% - 2.5rem);
	}
	/*
	.gallery-slider .swiper-slide {
		width: 100%;
		height: auto;
		width: auto;
		height: 420px;
	}
		*/
	.gallery-slider .imgfit {
		height: 100%;
		width: auto;
		aspect-ratio: 4/3;
	}
}


@media (min-width: 992px) {
	.gallery-slider .swiper-slide {
		width: auto;
		height: 500px;
	}
	.gallery-slider .imgfit {
		height: 100%;
		width: auto;
	}
}

/* Bouton play */
.gallery-slider .imgfit .btn-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	cursor: pointer;
	margin: 0;
}

/* Copyright overlay (copié de art-ge, scope minimal) */
.gallery-slider .image-copyright {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 10;
	display: flex;
	align-items: center;
	background: rgba(0, 0, 0, 0);
	border-radius: 20px;
	padding: 5px 8px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.gallery-slider .image-copyright:hover {
	background: rgba(0, 0, 0, 0.7);
	padding-right: 12px;
}

.gallery-slider .image-copyright::before {
	content: "i";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: rgba(255,255,255,1);
	color: #000;
	border-radius: 50%;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.5;
	margin-right: 0;
	transition: margin-right 0.3s ease;
}

.gallery-slider .image-copyright:hover::before {
	margin-right: 8px;
	background: rgba(255,255,255,1);
}

.gallery-slider .copyright-text {
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.5s ease;
	max-width: 0;
	overflow: hidden;
}

.gallery-slider .image-copyright:hover .copyright-text {
	opacity: 1;
	transform: translateX(0);
	max-width: 200px;
}

@media (max-width: 768px) {
	.gallery-slider .image-copyright {
		bottom: 8px;
		right: 8px;
		padding: 4px 6px;
	}
	.gallery-slider .image-copyright::before {
		width: 18px;
		height: 18px;
		font-size: 11px;
	}
	.gallery-slider .copyright-text {
		font-size: 11px;
	}
	.gallery-slider .image-copyright:hover .copyright-text {
		max-width: 150px;
	}
}

/* Video popup (copié de art-ge, scope global nécessaire) */
.video-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-popup.active {
	opacity: 1;
	visibility: visible;
}

.video-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.video-popup-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 1200px;
	max-height: 90vh;
}

.video-popup-close {
	position: absolute;
	top: 50px;
	right: 50px;
	background: none;
	border: 0;
	color: white;
	cursor: pointer;
	padding: 10px;
	z-index: 10;
	transition: opacity 0.3s ease;
}

.video-popup-close:hover {
	opacity: 0.7;
}

.video-popup-content {
	width: 100%;
	height: 100%;
}

.video-popup-iframe-container {
	width: 100%;
	height: 100%;
	position: relative;
	text-align: center;
}

#video-popup-iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 8px;
}

.video-popup.ratio-16-9 #video-popup-iframe { aspect-ratio: 16/9; }
.video-popup.ratio-4-3 #video-popup-iframe { aspect-ratio: 4/3; }
.video-popup.ratio-21-9 #video-popup-iframe { aspect-ratio: 21/9; }

.video-popup.ratio-portrait #video-popup-iframe {
	aspect-ratio: 9/16;
	max-width: 50vh;
	margin: 0 auto;
}

.video-popup.ratio-square #video-popup-iframe {
	aspect-ratio: 1/1;
	max-width: 80vh;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.video-popup-container {
		width: 95%;
		max-height: 96vh;
	}
	.video-popup-close {
		top: 10px;
		right: 10px;
	}
}

@media (max-width: 480px) {
	.video-popup-container {
		width: 98%;
		max-height: 90vh;
	}
}

.video-popup.active .video-popup-content {
	animation: videoPopupIn 0.3s ease-out;
}

@keyframes videoPopupIn {
	from { opacity: 0; transform: scale(0.8); }
	to { opacity: 1; transform: scale(1); }
}

