/* Gallery Carousel Styles */
.gallery-carousel-container {
	position: relative;
	margin: 40px 0;
	width: 100%;
}

.gallery-grid-container {
	width: 100% !important;
	margin-bottom: 40px !important;
}

.gallery-carousel {
	overflow: hidden;
}

.gallery-owl-carousel .item {
	padding: 8px;
}

.gallery-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	height: 350px;
	cursor: pointer;
}

.gallery-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-card:hover img {
	transform: scale(1.1);
}

.gallery-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
	padding: 20px 15px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
	transform: translateY(0);
}

.gallery-card-title {
	color: white;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 5px 0;
	line-height: 1.3;
}

.gallery-card-category {
	color: #ffd700;
	font-size: 14px;
	margin: 0;
	font-weight: 500;
}

/* Video Card Styles */
.video-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	height: 280px;
	border: none;
	outline: none;
}

.video-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-card-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.video-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.video-card:hover .video-card-image img {
	transform: scale(1.1);
}

/* Video Preview Iframe Styles */
.video-preview-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.video-thumbnail {
	transition: opacity 0.2s ease;
}

.video-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70px;
	height: 70px;
	background: rgba(255,255,255,0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 2;
}

.video-play-icon i {
	font-size: 28px;
	color: #007bff;
	margin-left: 4px;
}

.video-card:hover .video-play-icon {
	background: white;
	transform: translate(-50%, -50%) scale(1.15);
}

.video-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
	padding: 20px 15px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	z-index: 1;
}

.video-card:hover .video-card-overlay {
	transform: translateY(0);
}

.video-card-title {
	color: white;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

/* Category Filter */
.category-filter {
	margin-bottom: 25px;
	text-align: center;
}

.category-filter .btn {
	margin: 3px;
	border-radius: 20px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 2px solid #007bff;
}

.category-filter .btn-primary {
	background: #007bff;
	border-color: #007bff;
	color: white;
}

.category-filter .btn-outline-primary {
	background: white;
	color: #007bff;
}

.category-filter .btn-outline-primary:hover {
	background: #007bff;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Owl Carousel Custom Navigation */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.95) !important;
	width: 45px;
	height: 45px;
	border-radius: 50% !important;
	font-size: 24px !important;
	color: #333 !important;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
	z-index: 10;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
	background: white !important;
	box-shadow: 0 4px 15px rgba(0,0,0,0.25);
	color: #007bff !important;
}

.owl-carousel .owl-nav button.owl-prev {
	left: -20px;
}

.owl-carousel .owl-nav button.owl-next {
	right: -20px;
}

.owl-carousel .owl-dots {
	text-align: center;
	margin-top: 25px;
}

.owl-carousel .owl-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #ddd;
	border-radius: 50%;
	margin: 0 5px;
	transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active {
	background: #007bff;
	transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
	.gallery-card {
		height: 280px;
	}
	
	.video-card {
		height: 280px;
	}
	
	.category-filter .btn {
		padding: 5px 12px;
		font-size: 12px;
		margin: 2px;
	}
	
	.owl-carousel .owl-nav button.owl-prev {
		left: 0;
	}
	
	.owl-carousel .owl-nav button.owl-next {
		right: 0;
	}
	
	.gallery-owl-carousel .item {
		padding: 5px;
	}
}

/* Image Modal Styles */
.image-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	animation: fadeIn 0.3s ease;
	align-items: center;
	justify-content: center;
	padding: 60px 20px 20px;
}

.image-modal[style*="display: block"] {
	display: flex !important;
}

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

.image-modal-content {
	max-width: 85%;
	max-height: 80vh;
	object-fit: contain;
	animation: zoomIn 0.3s ease;
	border-radius: 4px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

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

.image-modal-caption {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
	padding: 10px 20px;
	font-size: 18px;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 4px;
	animation: fadeIn 0.5s ease;
	max-width: 80%;
}

.image-modal-close {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #fff;
	font-size: 45px;
	font-weight: 300;
	transition: 0.3s;
	cursor: pointer;
	z-index: 10000;
	line-height: 1;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.image-modal-close:hover,
.image-modal-close:focus {
	color: #ffd700;
	transform: rotate(90deg);
}

@media (max-width: 768px) {
	.image-modal-content {
		max-width: 90%;
		max-height: 75vh;
	}
	
	.image-modal-caption {
		font-size: 15px;
		max-width: 85%;
		padding: 8px 15px;
	}
	
	.image-modal-close {
		top: 10px;
		right: 15px;
		font-size: 35px;
	}
	
	.image-modal {
		padding: 50px 15px 15px;
	}
}

/* Video Modal Styles */
.video-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	animation: fadeIn 0.3s ease;
	align-items: center;
	justify-content: center;
	padding: 60px 20px 20px;
}

.video-modal[style*="display: block"] {
	display: flex !important;
}

.video-modal-content {
	position: relative;
	width: 90%;
	max-width: 1200px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
	animation: zoomIn 0.3s ease;
}

.video-modal-content iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.video-modal-caption {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
	padding: 10px 20px;
	font-size: 18px;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 4px;
	animation: fadeIn 0.5s ease;
	max-width: 80%;
}

.video-modal-close {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #fff;
	font-size: 45px;
	font-weight: 300;
	transition: 0.3s;
	cursor: pointer;
	z-index: 10000;
	line-height: 1;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-modal-close:hover,
.video-modal-close:focus {
	color: #ff0000;
	transform: rotate(90deg);
}

@media (max-width: 768px) {
	.video-modal-content {
		width: 95%;
		max-width: 100%;
	}
	
	.video-modal-caption {
		font-size: 15px;
		max-width: 85%;
		padding: 8px 15px;
		bottom: 10px;
	}
	
	.video-modal-close {
		top: 10px;
		right: 15px;
		font-size: 35px;
	}
	
	.video-modal {
		padding: 50px 10px 10px;
	}
}
