.thb-product-detail .thb-product-main-row {
    align-items: center;
}

.flex-control-nav.flex-control-thumbs {
    width: calc(100% - 40px);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    margin-left: 20px;
    margin-right: 20px;
    overflow: overlay;
}

.flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
    width: 0;
}

.flex-control-nav.flex-control-thumbs>li {
    flex: none;
}

.flex-direction-nav .flex-nav-prev,
.flex-direction-nav .flex-nav-next {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    bottom: 22px;
    top: unset;
    left: 0;
}

.flex-direction-nav .flex-nav-next {
    right: 0;
    left: unset;
}

.flex-direction-nav .flex-nav-prev:hover,
.flex-direction-nav .flex-nav-next:hover {
    background: transparent
}

.flex-direction-nav .flex-nav-prev:hover:after,
.flex-direction-nav .flex-nav-next:hover:after {
    color: rgb(9, 9, 9);
}

.thb-product-detail .product-gallery-column {
    max-width: 100%;
}

.thb-product-detail .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    height: 100%;
}

@media only screen and (min-width: 768px) {
    .thb-product-detail .product-gallery-column .product-gallery-column-warrp {
        overflow: hidden;
    }

    .thb-product-detail .thb-product-main-row {
        align-items: unset;
    }

    .flex-direction-nav {
        position: absolute;
        display: flex;
        width: 100%;
        justify-content: space-between;
        bottom: 0;
    }

    .flex-direction-nav .flex-nav-prev,
    .flex-direction-nav .flex-nav-next {
        border: #FFFFFF3D;
        background: transparent;
        position: relative;
        top: -24px;
    }

    .flex-direction-nav .flex-nav-prev {
        left: 0;
    }

    .flex-direction-nav .flex-nav-next {
        right: 0;
    }

    .flex-direction-nav .flex-nav-prev:hover,
    .flex-direction-nav .flex-nav-next:hover {
        background: transparent;
        color: #000000;
    }

    .thb-product-detail .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
        background-color: #FFFFFF3D;
    }

    .flex-direction-nav .flex-nav-prev:hover:after,
    .flex-direction-nav .flex-nav-next:hover:after {
        color: #000000;
    }

    .flex-control-nav.flex-control-thumbs {
        display: inline-flex;
        width: 100%;
        overflow: overlay;
        margin: 30px 0 0;
    }

    .thb-product-detail .flex-direction-nav .flex-nav-prev {
        left: 12px;
        border-radius: 8px;
        background: rgba(0,0,0,.49);
    }

    .thb-product-detail .flex-direction-nav .flex-nav-prev:hover, .thb-product-detail .flex-direction-nav .flex-nav-next:hover {
        background: rgba(0,0,0,.6);
        color: #fff;
    }

    .thb-product-detail .flex-direction-nav a:hover {
        color: #fff;
    }

    .thb-product-detail .flex-direction-nav .flex-nav-next {
        right: 12px;
        border-radius: 8px;
        background: rgba(0,0,0,.49);
    }

    .flex-control-nav.flex-control-thumbs li {
        flex: none;
        width: 82px;
        height: 82px;
        margin-right: 8px;
    }

    .flex-control-nav.flex-control-thumbs li img {
        width: 82px;
        height: 82px;
        object-fit: cover;
    }

    .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
        display: none;
    }

    .woocommerce-product-gallery__image a,
    .woocommerce-product-gallery__image a video {
        height: 100%;
    }

    .flex-direction-nav .flex-nav-prev:after,
    .flex-direction-nav .flex-nav-next:after {
        font-size: 16px;
        font-weight: bold;
    }
}

.woocommerce-product-gallery__trigger {
    top: 0px !important;
    right: 0px !important;
    width: 100% !important;
    background: none !important;
    padding: 0 !important;
}