/**
 * Frontend styles for Custom Grid Block
 * File: blocks/style.css
 */
.holder-custom-grid-block{
    position: relative;
    overflow: hidden;
}

.custom-grid-block.align-center .wp-block-column > * {
    text-align: center;
}


.custom-grid-block.border-radius-top {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.custom-grid-block.border-radius-bottom {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.grid-block-title-h2{
    margin-bottom: 12px;
}

.grid-block-title-div{
    text-transform: uppercase;
    margin-bottom: 10px;
}
.grid-block-subtitle{
    margin-bottom: 40px;
}

.grid-block-link{
    margin-bottom: 48px;
}

.wp-block-custom-grid-block-grid{
    background-color: transparent !important;
    color: inherit !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.custom-grid-block .grid-block-header{
    margin-bottom: 48px;
    width: 100%;
    max-width: 965px;
}
.custom-grid-block.text-align-center .grid-block-header{
    text-align: center;
}
.custom-grid-block.text-align-right .grid-block-header{
    text-align: right;
}

.custom-grid-block .grid-container.wp-block-columns{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
    padding: 0;
}

.custom-grid-block.align-center .grid-container.wp-block-columns{
    justify-content: center;
}

.custom-grid-block.align-right .grid-container.wp-block-columns{
    justify-content: flex-end;
}

.custom-grid-block .swiper{
    padding-bottom: 70px;
    width: 100%;
}

.custom-grid-block .swiper-pagination {
    bottom: -40px !important;
    left: 0;
    margin: 0 -6px;
    position: relative;
    width: auto;
}

.custom-grid-block .swiper-pagination .swiper-pagination-bullet {
    background-color: var(--swiper-pagination-color, #006fcf);
    border-radius: 10px;
    height: 9px;
    margin: 0 6px;
    opacity: 1;
    transition: background-color .5s linear,width .5s cubic-bezier(.61,1,.88,1);
    width: 9px;
}

.custom-grid-block .swiper-pagination .swiper-pagination-bullet-active {
    width: 47px;
}

.custom-grid-block:not(.mobile-carousel) .wp-block-column{
    padding: 0 12px;
    width: 100%;
    margin-bottom: 24px;
}

.custom-grid-block .columns-2 .wp-block-column,
.custom-grid-block .columns-3 .wp-block-column,
.custom-grid-block .columns-4 .wp-block-column,
.custom-grid-block .columns-5 .wp-block-column{
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .custom-grid-block .columns-2 .wp-block-column,
    .custom-grid-block .columns-4 .wp-block-column,
    .custom-grid-block .columns-5 .wp-block-column,
    .custom-grid-block .columns-3 .wp-block-column{
        width: 50%;
    }

    .custom-grid-block .columns-2 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-3 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-4 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-5 .swiper-wrapper .swiper-slide.wp-block-column{
        width: 100%;
        padding: 0;
        margin: 0;
    }
}


@media (min-width: 1024px) {
    .custom-grid-block .swiper{
        overflow: visible;
    }
    .custom-grid-block .swiper-wrapper{
        flex-wrap: wrap;
        box-sizing: border-box;
        transform: none !important;
        height: auto;
        margin: 0 -12px;
    }

    .custom-grid-block .columns-4 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-5 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-2 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-3 .swiper-wrapper .swiper-slide.wp-block-column{
        width: 50%;
        padding: 0 12px;
        margin-bottom: 24px;
    }

    .custom-grid-block.align-center .grid-container.wp-block-columns .swiper-wrapper{
        justify-content: center;
    }

    .custom-grid-block.align-right .grid-container.wp-block-columns .swiper-wrapper{
        justify-content: flex-end;
    }
}

@media (min-width: 1200px) {
    .custom-grid-block .columns-4 .wp-block-column,
    .custom-grid-block .columns-5 .wp-block-column,
    .custom-grid-block .columns-3 .wp-block-column,
    .custom-grid-block .columns-3 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-4 .swiper-wrapper .swiper-slide.wp-block-column,
    .custom-grid-block .columns-5 .swiper-wrapper .swiper-slide.wp-block-column{
        width: 33.33%;
    }
}

@media (min-width: 1400px) {
    .custom-grid-block .columns-4 .wp-block-column,
    .custom-grid-block .columns-4 .swiper-wrapper .swiper-slide.wp-block-column{
        width: 25%;
    }
    .custom-grid-block .columns-5 .wp-block-column,
    .custom-grid-block .columns-5 .swiper-wrapper .swiper-slide.wp-block-column{
        width: 20%;
    }
}
