/* Gallery Styles */

.gallery-item {
	transition: transform 0.3s ease;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* Gallery Modal */

.gallery-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.gallery-modal-content {
	max-width: 90%;
	max-height: 90vh;
	object-fit: contain;
	animation: slideIn 0.3s ease;
}

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

.gallery-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s ease;
}

.gallery-close:hover {
	color: #bbb;
}

.gallery-prev,
.gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 30px;
	padding: 15px 20px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	border-radius: 3px;
}

.gallery-prev:hover,
.gallery-next:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

.gallery-prev {
	left: 20px;
}

.gallery-next {
	right: 20px;
}

/* Responsive design */

@media (max-width: 980px) {
	.gallery-prev,
	.gallery-next {
		padding: 12px 16px;
		font-size: 24px;
	}

	.gallery-close {
		font-size: 30px;
		right: 20px;
		top: 15px;
	}
}

@media (max-width: 480px) {
	.gallery-modal-content {
		max-width: 95%;
		max-height: 85vh;
	}

	.gallery-prev,
	.gallery-next {
		padding: 10px 12px;
		font-size: 18px;
		left: 5px;
		right: 5px;
	}

	.gallery-next {
		right: 5px;
	}
}
