.woocommerce div.product div.images.woocommerce-product-gallery .flex-viewport,
.woocommerce-js div.product div.images.woocommerce-product-gallery .flex-viewport,
.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 0 !important;
}

.woocommerce div.product div.images .flex-control-nav,
.woocommerce-product-gallery .flex-control-nav,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 1em !important;
}

.woocommerce div.product div.images.woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce-product-gallery__wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce-product-gallery__image:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce div.product div.images {
    display: block !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.storefront-full-width-content .woocommerce-product-gallery,
.storefront-product-thumbnail-columns .woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ast-woocommerce-container .woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ast-woocommerce-container .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 0 !important;
}

.ast-woocommerce-container .flex-control-nav {
    margin-top: 1em !important;
}

.oceanwp-woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce.oceanwp .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 0 !important;
}

.woocommerce .woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:not(.block-editor-page) .woocommerce-product-gallery__image img {
    margin-top: 0 !important;
}

.product .summary {
    margin-top: 0 !important;
}

.woocommerce-product-gallery figure {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce-product-gallery__image--placeholder,
.woocommerce-product-gallery__image {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.flex-viewport {
    margin-top: 0 !important;
}

.woocommerce-product-gallery .flex-viewport {
    margin-top: 0 !important;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs {
    margin-top: 1em !important;
    margin-bottom: 0 !important;
}

ol.flex-control-nav.flex-control-thumbs {
    margin-top: 1em !important;
}

.flex-control-thumbs li {
    margin-top: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs {
    margin-top: 1em !important;
    padding-top: 0 !important;
}

.woocommerce-product-gallery.woocommerce-product-gallery--with-images .flex-viewport {
    margin-bottom: 0 !important;
}

.woocommerce-product-gallery.woocommerce-product-gallery--with-images .flex-control-nav {
    margin-top: 1em !important;
}

@media (max-width: 768px) {
    .woocommerce div.product div.images .flex-control-nav,
    .woocommerce-product-gallery .flex-control-nav,
    .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
        margin-top: 0.75em !important;
    }
}