.block__shortcode .jdgm-carousel__arrows .jdgm-carousel__left-arrow,
.block__shortcode .jdgm-carousel__arrows .jdgm-carousel__right-arrow {
    border: 0px !important;
    position: relative;
    transform: none !important;
}   

.block__shortcode .jdgm-carousel__arrows .jdgm-carousel__right-arrow:after{
    display: block;
    position: absolute;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f285";
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;

}
.block__shortcode .jdgm-carousel__arrows .jdgm-carousel__left-arrow{
    margin-right: 100px !important;
}
.block__shortcode .jdgm-carousel__arrows .jdgm-carousel__left-arrow:after{
    display: block;
    position: absolute;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f284";
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;

}


.block__shortcode .jdgm-carousel-wrapper{
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-title{
    display: none !important;
}

.block__shortcode .jdgm-carousel-wrapper .jdgm-all-reviews-rating-wrapper{
    display: none !important;
}



.block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item {
    background-color: var(--bs-white) !important;
    border-radius: var(--bs-border-radius-xl) !important;
    border: 1px solid var(--bs-gray-200) !important;
    
    width: 90% !important;
    margin: 0 1.66% !important;
    padding: 0 !important;
    display: inline-grid;
    grid-template-columns: 2fr 1fr; /* 2 colonne: contenuto principale + elemento laterale */
    grid-template-rows: 1fr 1fr; /* 2 righe di uguale altezza */
    grid-template-areas: 
        "review image"
        "reviewer image"; /* Il terzo elemento occupa entrambe le righe */
    gap: 0rem; /* Spazio tra gli elementi */
    align-items: stretch; /* Gli elementi si estendono per tutta l'altezza disponibile */
}

@media all and (min-width: 480px) {
    .block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item {
        width: 43.36% !important;
    }
}

@media all and (min-width: 768px) {
    .block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item {
        width: 30% !important;
        
    }
}


.jdgm-carousel-wrapper .jdgm-carousel-item__review{
    height: auto !important;
    padding: 1rem !important;
    text-align: left !important;
}

.jdgm-carousel-wrapper .jdgm-carousel-item__review-body{
    font-style: oblique !important;
    font-weight: 300 !important;
}

.block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item__review-rating{
    font-size: 100% !important;
    margin-bottom: 0.5rem !important;
}




@media all and (max-width: 600px) {
    .jdgm-carousel--done .jdgm-carousel__item-container{
        height: 454px !important;
    }
    .jdgm-carousel--done .jdgm-carousel__item-wrapper{
        height: 100% !important;
    }
    .block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item {
        /* Layout desktop: 2 righe, 2 colonne */
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto auto;
        grid-template-areas:
            "review" 
            "reviewer" 
            "image";

    }
    .block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item > * {
        width: 100% !important;
    }
    
    .block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item .jdgm-carousel-item__review{
        align-self: auto !important;
        height: 100px !important;
    }
    .block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item .jdgm-carousel-item__reviewer-name-wrapper{
        align-self: auto !important;
        height: 30px !important;
    }

    .block__shortcode .jdgm-carousel-wrapper .jdgm--shop-review-has-image {
        align-self: stretch !important;
        height: 300px !important;
        
    }
    .block__shortcode .jdgm-carousel-wrapper .jdgm--shop-review-has-image .jdgm-carousel-item__product-image{
        height: 100% !important;
        object-position: center bottom;
    }

}

.block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item .jdgm-carousel-item__review{
    grid-area: review;
    align-self: stretch;
}

.block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item .jdgm-carousel-item__reviewer-name-wrapper{
    grid-area: reviewer;
    align-self: end;
    padding: 0 1rem 1rem !important;
    margin: 0 !important;
    text-align: left !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
}
.block__shortcode .jdgm-carousel-wrapper .jdgm--shop-review-has-image {
    grid-area: image;
}

.block__shortcode .jdgm-carousel-wrapper .jdgm-carousel-item__review-rating{
    text-align: left !important;
}

.block__shortcode .jdgm-carousel-wrapper .jdgm--shop-review-has-image .jdgm-carousel-item__product-image{
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
    
@media all and (min-width: 600px) {
    .block__shortcode .jdgm-carousel-wrapper .jdgm--shop-review-has-image {

        height: 100% !important;

    }
  }

