.amgs-wrapper-77b3b7ee {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.amgs-main-view {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.amgs-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
	z-index: 1;
	pointer-events: none;
}

.amgs-slide.amgs-active-slide {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.amgs-slide img,
.amgs-slide video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.amgs-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0,0,0,0.1);
	border-radius: 50%;
	border-top-color: #333;
	animation: amgs-spin 1s linear infinite;
	opacity: 0;
	z-index: 3;
	transition: opacity 0.2s;
	pointer-events: none;
}

.amgs-main-view.amgs-is-loading .amgs-loading {
	opacity: 1;
}

@keyframes amgs-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

.amgs-thumbnails-wrapper {
	width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.amgs-thumbnails-wrapper::-webkit-scrollbar {
	display: none;
}

.amgs-thumbnails {
	display: flex;
	flex-wrap: nowrap;
	padding: 5px;
}

.amgs-thumb-item {
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
	overflow: hidden;
	border: 2px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.amgs-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

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

.amgs-thumb-item.amgs-active {
	transform: scale(1.05);
}

.amgs-video-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30%;
	height: 30%;
	background: rgba(0,0,0,0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	pointer-events: none;
}

.amgs-video-icon svg {
	width: 50%;
	height: 50%;
}
