/* Media Overlay Icons Styles */
.dz-media-overlay {
	position: relative;
	overflow: hidden;
}

.dz-media-overlay img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.dz-media-overlay:hover img {
	transform: scale(1.05);
}

.media-overlay-icons {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	opacity: 1;
	z-index: 10;
}

.media-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	color: #333;
	font-size: 20px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	position: relative;
}

.media-icon-video {
	background: rgba(255, 255, 255, 0.95);
	color: #333;
}

.media-icon-video:hover {
	background: #fff;
	color: #007bff;
}

.media-icon:hover {
	background: #fff;
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	color: #007bff;
}

.media-icon i {
	line-height: 1;
	position: relative;
	z-index: 2;
}

/* Ripple animation pour l'icône vidéo */
.media-icon-video .ripple,
.media-icon-video .ripple:before,
.media-icon-video .ripple:after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.6);
	animation: ripple 3s infinite;
	z-index: 1;
}

.media-icon-video .ripple:before {
	position: absolute;
	animation-delay: 0.9s;
	content: "";
}

.media-icon-video .ripple:after {
	position: absolute;
	animation-delay: 0.6s;
	content: "";
}


/* Overlay pour assombrir l'image au survol */
.dz-media-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.3s ease;
	z-index: 1;
	pointer-events: none;
}

.dz-media-overlay:hover::before {
	background: rgba(0, 0, 0, 0.3);
}

/* MagnificPopup Centering Fix */
.mfp-container {
	text-align: center;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	padding: 0 8px;
	box-sizing: border-box;
}

.mfp-container:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

.mfp-content {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin: 0 auto;
	text-align: left;
	z-index: 1045;
}

.mfp-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1043;
	outline: none !important;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.mfp-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1042;
	overflow: hidden;
	background: #0b0b0b;
	opacity: 0.8;
}

.mfp-iframe-holder {
	padding-top: 40px;
	padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
	line-height: 0;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.mfp-iframe-holder .mfp-close {
	top: -40px;
	right: 0;
	color: #fff;
	opacity: 1;
	font-size: 28px;
	width: 44px;
	height: 44px;
	line-height: 44px;
	text-align: center;
}

.mfp-iframe-holder .mfp-close:hover {
	opacity: 0.8;
}

.mfp-iframe-scaler {
	width: 100%;
	height: 0;
	overflow: hidden;
	padding-top: 56.25%;
	position: relative;
}

.mfp-iframe-scaler iframe {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
	background: #000;
}

.mfp-align-top .mfp-container:before {
	display: none;
}

/* Assurer le centrage vertical */
.mfp-iframe-holder .mfp-container {
	text-align: center;
}

.mfp-iframe-holder .mfp-container:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

/* Blog Details Video Popup Styles */
.blog-details__content-text3-img {
	position: relative;
	display: block;
}

.blog-details__content-text3-img .inner {
	position: relative;
	display: block;
}

.blog-details__video-link {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}


.blog-details__video-icon i {
	line-height: 1;
}

/* Ripple Animation */
@keyframes ripple {
	70% {
		box-shadow: 0 0 0 40px rgba(0, 123, 255, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
	}
}

@-webkit-keyframes ripple {
	70% {
		-webkit-box-shadow: 0 0 0 40px rgba(0, 123, 255, 0);
		box-shadow: 0 0 0 40px rgba(0, 123, 255, 0);
	}
	100% {
		-webkit-box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
		box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.media-overlay-icons {
		gap: 15px;
	}
	
	.media-icon {
		width: 45px;
		height: 45px;
		font-size: 18px;
	}
	
	.blog-details__video-icon {
		width: 50px;
		height: 50px;
		line-height: 50px;
		font-size: 18px;
	}
	
	.blog-details__video-link .ripple,
	.blog-details__video-icon .ripple:before,
	.blog-details__video-icon .ripple:after {
		width: 50px;
		height: 50px;
	}
}

