.gallery-container {
	max-width: 1200px;
	margin: 0 auto;
}

.preview-container {
	width: 100%;
	/*height: 500px;*/
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	cursor: zoom-in;
}

.preview-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.3s;
}

.preview-image.zoomed {
	transform: scale(1.5);
}

.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.loading-overlay.active {
	opacity: 1;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #4285f4;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.thumbnails-container {
	position: relative;
}

.thumbnails-scroll {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	gap: 10px;
	padding: 10px 0;
	-webkit-overflow-scrolling: touch;
}

.thumbnails-scroll::-webkit-scrollbar {
	height: 8px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.thumbnail {
	width: 100px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	flex-shrink: 0;
}

.thumbnail:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
	border: 3px solid #4285f4;
}

.scroll-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.scroll-button.left {
	left: 10px;
}

.scroll-button.right {
	right: 10px;
}

.fullscreen-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.fullscreen-image {
	max-width: 95%;
	max-height: 95%;
	object-fit: contain;
}

.download-btn {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 20px;
	background-color: #4285f4;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 16px;
}

.download-btn:hover {
	background-color: #3367d6;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	color: white;
	font-size: 30px;
	cursor: pointer;
}