/* ===============================
   GALERI SECTION - HERO
================================= */
#galeri-home {
	background-image: linear-gradient(rgba(9, 5, 54, 0.3), rgba(5, 4, 46, 0.7)), url("img/gemari/gedung-01.jpg");
	width: 100%;
	height: 60vh;
	background-size: cover;
	background-position: center center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding-top: 40px;
}

#galeri-home h2 {
	color: #fff;
	font-size: 2.2rem;
	letter-spacing: 1px;
}

#galeri-foto  {
	margin: 50px;
}



/*================================================================*/

.container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px;
}

.small {
	width: 100%;
	max-width: 250px; /* Ukuran gambar lebih besar */
	height: auto;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.small:hover {
	transform: scale(1.05);
}

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	transition: opacity 0.3s ease;
}

a div {
	position: relative;
	text-align: center;
}

.lightbox img {
	max-width: 90vw;
	max-height: 80vh;
	border-radius: 8px;
	transition: transform 0.4s ease;
}

.lightbox:target {
	display: flex;
	animation: fadeIn 0.3s ease-in-out;
}

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

.container p {
	font-size: 18px;
	color: white;
	margin-top: 12px; /* Tambahkan jarak ke gambar */
	font-family: 'Poiret One', sans-serif;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
	.small {
		max-width: 45%;
	}
}

@media (max-width: 480px) {
	.small {
		max-width: 90%;
	}

	.container p {
		font-size: 16px;
	}
}

@media screen and (max-width: 768px) {
	body, html {
		margin: 0;
		padding: 0;
	}
	#galeri-foto h1 {
		max-width: auto;
		margin: 0 auto;
		line-height: 1.4;
		word-break: break-word;
	}
	#galeri-foto {
		margin: 20px;
	}

	.container {
		max-width: 100%;
		padding: 0 10px;
	}

	.small {
		width: 100%;
		max-width: 100%;
		margin: 5px 0;
	}

	.lightbox-modal img {
		width: 90%;
		height: auto;
	}

	h1, h2, p {
		padding: 0 10px;
	}

	nav ul {
		padding: 0 10px;
	}
}


.lightbox-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	justify-content: center;
	align-items: center;
	flex-direction: column;
	animation: fadeIn 0.3s ease-in-out;
}

.lightbox-modal img {
	max-width: 90%;
	max-height: 80%;
	border-radius: 10px;
	transition: all 0.5s ease;
}

.lightbox-modal p {
	color: white;
	margin-top: 15px;
	font-size: 18px;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 30px;
	color: white;
	cursor: pointer;
}

.prev, .next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	padding: 16px;
	color: white;
	font-size: 30px;
	user-select: none;
	transform: translateY(-50%);
}

.prev {
	left: 10px;
}

.next {
	right: 10px;
}

.fade {
	animation: fadeEffect 0.5s ease-in-out;
}

@keyframes fadeEffect {
	from { opacity: 0.4; }
	to { opacity: 1; }
}

.fade-img {
	transition: opacity 0.5s ease;
	opacity: 1;
}
