.content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== Preview ===== */
.preview {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Fade เมื่อเปลี่ยนรูป */
#preview-img.fade {
    opacity: 0;
}
.swiper-horizontal {
    touch-action: pan-y;
}
/* ===== Swiper Thumbnail ===== */
.mySwiper-thumb {
	position: relative;
    width: 100%;
	overflow: hidden;
	margin-top: 10rem;
}

.mySwiper-thumb .swiper-slide {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.swiper-wrapper {
	display: flex;
	position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box;
}

.mySwiper-thumb .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Active Slide */
.mySwiper-thumb .swiper-slide.active {
    border-color: #22c55e;
    opacity: 1;
}

.mySwiper-thumb .swiper-slide:hover {
    opacity: 0.9;
}