/* ================================================
   IJMFes — Gallery / Lightbox Overlay
   ================================================ */

.hiddenDiv {
	display: none;
}

.showDiv {
	position: fixed;
	background-color: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	top: 0;
	left: 0;
	z-index: 10000;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0px 80px;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.showDiv ul {
	justify-content: center;
	width: 100%;
	display: flex;
	align-items: center;
}

.showDiv ul li {
	width: 100%;
	justify-content: center;
	display: flex;
	align-items: center;
	gap: 50px;
	padding: 20px;
}

.hiddenLi {
	display: none !important;
}

.galleryUl {
	padding: 0;
	list-style: none;
}

.galleryUl button {
	background-color: rgba(255, 255, 255, 0.15) !important;
	backdrop-filter: blur(5px);
	display: none;
	font-size: 18px;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	color: white !important;
	cursor: pointer;
	transition: all 0.3s ease;
}

.galleryUl button:hover {
	background-color: rgba(201, 168, 76, 0.5) !important;
	border-color: #c9a84c !important;
	transform: scale(1.1);
}

.galleryUl:hover button {
	display: flex;
}

.galleryUl .content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.galleryUl .content > img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.galleryUl .content > iframe {
	width: 100%;
	height: 80vh;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.next {
	position: absolute;
	right: 20px;
}

.previous {
	position: absolute;
	left: 20px;
}

.closeI {
	position: absolute;
	font-size: 40px;
	color: white;
	top: 20px;
	right: 30px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
}

.closeI:hover {
	background: rgba(201, 168, 76, 0.5);
	color: white;
	transform: rotate(90deg);
}

@media screen and (max-width: 768px) {
	.showDiv {
		padding: 10px 15px;
	}

	.showDiv ul li {
		gap: 10px;
		padding: 10px;
	}

	.galleryUl .content > iframe {
		height: 35vh;
		border-radius: 8px;
	}

	.galleryUl button {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.closeI {
		font-size: 28px;
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
	}

	.next {
		right: 5px;
	}

	.previous {
		left: 5px;
	}
}

@media screen and (max-width: 480px) {
	.showDiv {
		padding: 5px 8px;
	}

	.showDiv ul li {
		gap: 5px;
		padding: 5px;
	}

	.galleryUl .content > iframe {
		height: 30vh;
		border-radius: 6px;
	}

	.galleryUl button {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}

	.closeI {
		font-size: 24px;
		top: 5px;
		right: 5px;
		width: 35px;
		height: 35px;
	}
}

/* Landscape phones — maximize video height */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.galleryUl .content > iframe {
		height: 75vh;
	}

	.showDiv {
		padding: 5px 60px;
	}

	.closeI {
		top: 5px;
		right: 5px;
	}
}
