.carousel-container {
	width: 100vw;
	overflow: hidden;
	background-color: #fff;
	padding: 20px 0;
	margin: 0 auto;
}

.carousel-track {
	display: flex;
}

.modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	color: #333;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 48px;
	height: 48px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	z-index: 1001;
	line-height: 0; 
}

.modal-nav:hover {
	background-color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-nav-left {
	left: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-nav-left svg{
	display:block;
	position: relative;
	left: 4px;
}

.modal-nav-right {
	right: 20px;
}

.carousel-slide {
	flex: 0 0 auto;
	width: 33.33%;
	margin: 0 10px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.carousel-slide:hover {
	transform: scale(1.05);
}

.carousel-slide img {
	width: 100%;
	max-height: 400px;
	height: 50vw;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100vw !important;
	max-width: unset !important;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.9);
	animation: fadeIn 0.3s ease;
	margin-left: 0 !important;
	margin-right: 0 !important;w
}

.modal-content {
	margin: auto;
	display: block;
	width: auto;
	max-width: unset;
	max-height: calc(100% - 80px);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: zoomIn 0.3s ease;
	transition: opacity 0.3s ease;
	opacity: 1;
}

.modal-content.fade-out {
	opacity: 0;
}

.close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	padding: 5px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	border-radius: 6px;
	transition: color 0.3s ease;
	z-index: 1;
}

.close svg{
	transform: rotate(0);
	transition: all 0.5s;
}

.close:hover svg{
	transform: rotate(180deg);
}

.close:hover,
.close:focus {
	color: #bbb;
}

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

@keyframes zoomIn {
	from {
		transform: translate(-50%, -50%) scale(0.8);
	}
	to {
		transform: translate(-50%, -50%) scale(1);
	}
}

@media (max-width: 768px) {
	.carousel-slide {
		width: 33.33%;
	}
	
	.carousel-slide img {
		height:150px;
	}
	
	.modal-nav {
		font-size: 36px;
		padding: 8px 12px;
	}
	
	.modal-nav-left {
		left: 10px;
	}
	
	.modal-nav-right {
		right: 10px;
	}
	
	
	.modal-content {
		width: auto;
		max-width: calc(100% - 40px) !important;
		height: auto;
		max-height: calc(100% - 40px) !important;
}