/* modal.loader-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0073aa;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
	.modal-content {
		margin: 10px;
		width: calc(100% - 20px);
		max-height: calc(100% - 20px);
	}
	
	.modal-body {
		padding: 15px;
		max-height: calc(100vh - 80px);
	}
	
	.modal-close {
		top: 5px;
		right: 10px;
	}
}

@media (max-width: 480px) {
	.modal-content {
		margin: 5px;
		width: calc(100% - 10px);
		max-height: calc(100% - 10px);
		border-radius: 4px;
	}
	
	.modal-body {
		padding: 10px;
		max-height: calc(100vh - 60px);
	}
}

/* WordPress content styling in modals */
.modal-body .wp-block-image {
	text-align: center;
}

.modal-body h1, .modal-body h2, .modal-body h3, 
.modal-body h4, .modal-body h5, .modal-body h6 {
	margin-top: 0;
}

.modal-body p:last-child {
	margin-bottom: 0;
}

/* Custom trigger button styles */
.modal-trigger.btn {
	background-color: #0073aa;
	color: white;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
}

.modal-trigger.btn:hover {
	background-color: #005a87;
	color: white;
	text-decoration: none;
}

.modal-trigger.btn-primary {
	background-color: #007cba;
}

.modal-trigger.btn-primary:hover {
	background-color: #005a87;
}

.modal-trigger.btn-secondary {
	background-color: #6c757d;
}

.modal-trigger.btn-secondary:hover {
	background-color: #545b62;
}

.modal-trigger.btn-danger {
	background-color: #dc3545;
}

.modal-trigger.btn-danger:hover {
	background-color: #c82333;
}

.modal-trigger.btn-success {
	background-color: #28a745;
}

.modal-trigger.btn-success:hover {
	background-color: #218838;
}css */

/* Trigger styles */
.modal-trigger {
	cursor: pointer;
	display: inline-block;
	transition: all 0.3s ease;
	text-decoration: underline;
	color: #0073aa;
}

.modal-trigger:hover {
	color: #005a87;
	text-decoration: none;
}

/* Modal Container */
#advanced-modal-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

#advanced-modal-container.active {
	display: flex;
}

/* Modal Overlay */
.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	cursor: pointer;
}

/* Modal Content Wrapper */
.modal-content-wrapper {
	position: relative;
	z-index: 1000000;
	max-width: 95%;
	max-height: 95%;
	overflow: auto;
}

/* Modal Content */
.modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	margin: 20px;
}

/* Close Button */
.modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	font-weight: bold;
	color: #666;
	cursor: pointer;
	z-index: 1000001;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.modal-close:hover {
	background-color: #f0f0f0;
	color: #333;
}

/* Modal Body */
.modal-body {
	padding: 20px;
	overflow-y: auto;
	max-height: calc(100vh - 100px);
}

/* Responsive Videos */
.video-responsive {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.video-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Images in modal */
.modal-body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* Body scroll prevention */
body.modal-open {
	overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		transform: scale(1.05);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.modal-content.fadeIn {
	animation: fadeIn 0.3s ease-out;
}

.modal-content.fadeOut {
	animation: fadeOut 0.3s ease-out;
}

.modal-content.slideDown {
	animation: slideDown 0.4s ease-out;
}

.modal-content.zoomIn {
	animation: zoomIn 0.3s ease-out;
}

.modal-content.bounceIn {
	animation: bounceIn 0.6s ease-out;
}

/* Loader */
#modal-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999998;
	display: none;
	align-items: center;
	justify-content: center;
}

#modal-loader.active {
	display: flex;
}