.gallery-container {
	display: flex;
	flex-wrap: wrap;
	column-gap: 40px;
	row-gap: 50px;
	justify-content: center;
	padding: 20px;
}

.gallery-thumb {
	flex: 0 0 calc(22%);
	cursor: pointer;
	overflow: hidden;
	border-radius: 8px;
	position: relative;
	transition: all 0.15s ease;
	border: 2px solid rgba(255, 255, 255, 1);
}

.gallery-thumb img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.gallery-thumb:hover {
	transform: scale(1.05);
	filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.25));
}

#lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	background-color: white;
	border: 10px solid white;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#lightbox-image {
	max-width: 100%;
	max-height: 100%;
	display: block;
	object-fit: contain;
}

#lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
}

#lightbox-close {
	position: absolute;
	top: 0;
	right: 0;
	background: rgba(232, 28, 12, 1);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	z-index: 10;
	width: 38px;
	height: 38px;
	border-radius: 3px;
	border: 0 none;
}

#lightbox-close:hover {
	background-color: rgba(182, 22, 12, 1);
}

#lightbox-prev,
#lightbox-next {
	position: absolute;
	top: 50%;
	color: white;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.15s ease;
	z-index: 1001;
	width: 48px;
	height: 106px;
	line-height: 104px;
	text-align: center;
	background-color: #77462c;
	border: 2px solid #f4dfcc;
	opacity: 0.75;
}

#lightbox-prev {
	left: 30px;
	border-radius: 20px 0 0 20px;
}

#lightbox-next {
	right: 30px;
	border-radius: 0 20px 20px 0;
}

#lightbox-prev:hover,
#lightbox-next:hover {
	opacity: 1;
}

#preloader {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	border: 5px solid rgba(255, 255, 255, 0.4);
	border-top: 5px solid #fff;
	border-radius: 50%;
	animation: spin 1.5s linear infinite;
	display: none;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@media (max-width: 1599px) {

}

@media (max-width: 1439px) {
	.gallery-container {
		column-gap: 30px;
		row-gap: 40px;
	}

	#lightbox-prev, #lightbox-next {
		width: 42px;
		height: 96px;
		line-height: 94px;
	}
}

@media (max-width: 1199px) {
	.gallery-thumb {
		flex: 0 0 calc(28%);
	}

	#lightbox-prev, #lightbox-next {
		width: 40px;
		height: 90px;
		line-height: 88px;
	}
}

@media (max-width: 991px) {
	.gallery-thumb {
		flex: 0 0 calc(29%);
	}

	#lightbox-prev, #lightbox-next {
		width: 38px;
		height: 84px;
		line-height: 82px;
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.gallery-thumb {
		flex: 0 0 calc(41%);
	}

	.gallery-container {
		column-gap: 20px;
		row-gap: 30px;
	}

	#lightbox-prev, #lightbox-next {
		width: 36px;
		height: 80px;
		line-height: 78px;
	}

	#lightbox-close {
		height: 32px;
		width: 32px;
	}
}

@media (max-width: 575px) {
	#lightbox-prev, #lightbox-next {
		width: 32px;
		height: 76px;
		line-height: 74px;
		font-size: 14px;
	}

	#lightbox-prev {
		left: 20px;
	}

	#lightbox-next {
		right: 20px;
	}
}

@media (max-width: 479px) {
	#lightbox-prev, #lightbox-next {
		width: 30px;
		height: 74px;
		line-height: 72px;
	}

	.gallery-thumb {
		flex: 0 0 calc(43%);
	}
}

@media (max-width: 383px) {
	.gallery-thumb {
		flex: 0 0 calc(72%);
	}

	.gallery-container {
		column-gap: 0;
		row-gap: 20px;
	}
}