.product-gallery-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    position: relative;
}

.product-gallery-wrapper .yg-gallery-top {
    width: calc(100% - 80px);
	  overflow: hidden;
	
}

.swiper-vertical > .swiper-wrapper {
	flex-direction: column;
}

.product-gallery-wrapper .yg-gallery-top img {
    width: 100%;
    border-radius: 12px;
}

.product-gallery-wrapper .yg-gallery-thumbs {
    max-height: 640px;
    min-width: 80px;
	 overflow: hidden;
}

.product-gallery-wrapper .yg-gallery-thumbs:not(.swiper-initialized) {
	max-width: 80px;
}

.product-gallery-wrapper .yg-gallery-thumbs:not(.swiper-initialized) > .swiper-wrapper {
	height: 100%;
   display: flex;
   flex-direction: column;
   max-height: 640px;
}

.yg-gallery-thumbs img {
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #000;
    border-radius: 12px;
}

.yg-gallery-thumbs .swiper-slide.swiper-slide-thumb-active img {
    opacity: 1;
}

@media (max-width: 1024px) {
    .product-gallery-wrapper .yg-gallery-top {
        width: 100%;
    }

    .product-gallery-wrapper {
        flex-direction: column;
    }

    .product-gallery-wrapper .yg-gallery-thumbs {
        width: 100%;
    }
	
	.product-gallery-wrapper .yg-gallery-thumbs:not(.swiper-initialized) {
 	    max-width: 100%;
    }
	
	.product-gallery-wrapper .yg-gallery-thumbs:not(.swiper-initialized) > .swiper-wrapper { 
		   width: 100%;
        height: auto;
        display: grid;
        max-height: 90px;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
	}
	
   .yg-gallery-thumbs img {
        width: auto;
        height: auto;
        border-radius: 8px;
    }
}