* {
	font-family: 'Source Sans Pro', sans-serif;
}

.gallery-main {
	min-height: 70vh;
	padding: 40px 20px;
	max-width: 1400px;
	margin: 0 auto;
}

.gallery-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 20px 0;
}

.gallery-header h1 {
	font-size: 48px;
	color: #241e09;
	margin-bottom: 15px;
	font-weight: 700;
}

.gallery-header .horizontal {
	width: 10%;
	margin: 1em auto 2em auto;
	height: 2px;
	background-color: #DC143C;
	border: none;
}

.gallery-header p {
	font-size: 20px;
	color: #666;
}

.gallery-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	padding: 20px 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
	aspect-ratio: 4/3;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
	display: none;
	position: fixed;
	z-index: 10000;
	padding-top: 60px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 80vh;
	object-fit: contain;
	animation: zoom 0.3s;
}

@keyframes zoom {
	from {
		transform: scale(0.7);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 40px;
	color: #fff;
	font-size: 50px;
	font-weight: bold;
	transition: 0.3s;
	cursor: pointer;
	z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
	color: #DC143C;
}

.lightbox-prev,
.lightbox-next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	padding: 16px;
	color: white;
	font-weight: bold;
	font-size: 40px;
	transition: 0.3s;
	border-radius: 3px;
	user-select: none;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10001;
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	background-color: rgba(220, 20, 60, 0.8);
}

.lightbox-caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #ccc;
	padding: 20px 0;
	font-size: 18px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.gallery-header h1 {
		font-size: 36px;
	}

	.gallery-header p {
		font-size: 16px;
	}

	.gallery-container {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.lightbox-content {
		max-width: 95%;
		max-height: 70vh;
	}

	.lightbox-close {
		top: 10px;
		right: 20px;
		font-size: 40px;
	}

	.lightbox-prev,
	.lightbox-next {
		font-size: 30px;
		padding: 10px;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}

	.lightbox-caption {
		font-size: 14px;
		padding: 10px 0;
	}
}

@media screen and (max-width: 480px) {
	.gallery-header h1 {
		font-size: 28px;
	}

	.gallery-container {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
	}

	.lightbox-prev,
	.lightbox-next {
		font-size: 24px;
		padding: 8px;
	}
}
