/**
 * Vertical WooCommerce Gallery Scroll
 * @package VWGS
 */

.vwgs-single {
    width: 100%;
    text-align: center;
}

.vwgs-single img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    background: white;
}

.vwgs-root {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.vwgs-gallery {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.vwgs-gallery.vwgs-hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Crect fill='%23fff' width='35' height='35'/%3E%3Cpath fill='%23333' d='M35 35H0V0h35v35ZM1 34h33V1H1v33Z'/%3E%3Cpath fill='%23333' d='M9.45 18.48c-.28 0-.5-.22-.5-.5V5.7c0-.28.22-.5.5-.5s.5.22.5.5v12.29c0 .28-.22.5-.5.5Z'/%3E%3Cpath fill='%23333' d='M15.6 12.34c-.13 0-.26-.05-.35-.15l-5.79-5.79-5.79 5.79c-.2.2-.51.2-.71 0s-.2-.51 0-.71l6.14-6.14c.2-.2.51-.2.71 0l6.14 6.14c.2.2.2.51 0 .71-.1.1-.23.15-.35.15Z'/%3E%3Cpath fill='%23333' d='M25.55 29.82c-.28 0-.5-.22-.5-.5v-12.29c0-.28.22-.5.5-.5s.5.22.5.5v12.29c0 .28-.22.5-.5.5Z'/%3E%3Cpath fill='%23333' d='M25.55 29.82c-.13 0-.26-.05-.35-.15l-6.14-6.14c-.2-.2-.2-.51 0-.71s.51-.2.71 0l5.79 5.79 5.79-5.79c.2-.2.51-.2.71 0s.2.51 0 .71l-6.14 6.14c-.1.1-.23.15-.35.15Z'/%3E%3C/svg%3E") 17 17, auto;
}

.vwgs-gallery.vwgs-hover.vwgs-scrolling {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Crect fill='%23E60081' width='35' height='35'/%3E%3Cpath fill='%23fff' d='M35 35H0V0h35v35ZM1 34h33V1H1v33Z'/%3E%3Cpath fill='%23fff' d='M9.45 18.48c-.28 0-.5-.22-.5-.5V5.7c0-.28.22-.5.5-.5s.5.22.5.5v12.29c0 .28-.22.5-.5.5Z'/%3E%3Cpath fill='%23fff' d='M15.6 12.34c-.13 0-.26-.05-.35-.15l-5.79-5.79-5.79 5.79c-.2.2-.51.2-.71 0s-.2-.51 0-.71l6.14-6.14c.2-.2.51-.2.71 0l6.14 6.14c.2.2.2.51 0 .71-.1.1-.23.15-.35.15Z'/%3E%3Cpath fill='%23fff' d='M25.55 29.82c-.28 0-.5-.22-.5-.5v-12.29c0-.28.22-.5.5-.5s.5.22.5.5v12.29c0 .28-.22.5-.5.5Z'/%3E%3Cpath fill='%23fff' d='M25.55 29.82c-.13 0-.26-.05-.35-.15l-6.14-6.14c-.2-.2-.2-.51 0-.71s.51-.2.71 0l5.79 5.79 5.79-5.79c.2-.2.51-.2.71 0s.2.51 0 .71l-6.14 6.14c-.1.1-.23.15-.35.15Z'/%3E%3C/svg%3E") 17 17, auto;
}

.vwgs-gallery .swiper {
    width: 100%;
    height: 100%;
}

.vwgs-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.vwgs-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: white;
	object-position: center;
}

.vwgs-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
    max-width: 80%;
    border-radius: 4px;
}

.vwgs-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 10px;
    width: 90px;
    flex-shrink: 0;
	margin-top: auto;
}

.vwgs-thumb {
    width: 70px;
    height: 70px;
    border: 1px solid transparent;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.vwgs-thumb:hover {
    opacity: 1;
}

.vwgs-thumb.vwgs-thumb-active {
    border-color: #E60081;
    opacity: 1;
}

.vwgs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .vwgs-thumbnails {
        width: 70px;
        padding: 5px;
    }
    .vwgs-thumb {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .vwgs-root {
        flex-direction: column;
    }
    .vwgs-thumbnails {
        flex-direction: row;
        width: 100%;
        padding: 10px 0;
        overflow-x: auto;
        gap: 6px;
    }
    .vwgs-thumb {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    .vwgs-gallery {
        min-height: 300px;
    }
}
