.gallery__items>.product-media-item{
    padding-right: 0 !important;
    padding-left: 0 !important;
}
.gallery__items>.slick-list>.slick-track>.product-media-item{
    padding-right: 0 !important;
    padding-left: 0 !important;
}
.gallery__items>.product-media-item{
    display: flex;
    justify-content: center;
}
.gallery__items .product-media-item .grouped_elements{
    line-height: 0px !important;
}
@media only screen and (min-width: 1024px) {
    .gallery__items .product-media-item .grouped_elements{
        padding: 0.5rem;
    }
}
.cs-page-product__gallery > .gallery{
    /* padding: 20px; */
}
.product-info-main.cs-buybox{
    position: relative;
    top: unset;
    display: flex;
    flex-direction: column;
}
.product-info-main.cs-buybox.fix{
    position: fixed;
    top: 0;
}
/*  */
.gallery__items.js-gallery.visually-hiden{
    /* display: none !important; */
    height: 0px;
    opacity: 0;
}
.gallery__items.js-gallery{
    height: auto;
    opacity: 1;
}
/*  */

@media only screen and (min-width: 768px) {
    .row.gallery__items.js-gallery{
        margin: 0 0 0 10px !important;
    }
}

#gallery-placeholder{
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0 10px;
}
#gallery-placeholder.visually-hiden{
    display: none !important;
}
#gallery-placeholder .product-media-item{
    padding: 5px;
    display: flex;
    aspect-ratio: 3/4;
    max-width: 600px;
    max-height: 800px;
    width: 100%;
    height: auto;
}
#gallery-placeholder .product-media-item > .content{
    background-color: #f4f4f4;
    width: 100%;
    height: 100%;
}
@media only screen and (max-width: 1024px) {
    #gallery-placeholder .product-media-item:not(:first-child){
        display: none;
    }
}