/**
 * 2015-2020 Bonpresta
 *
 * Bonpresta Responsive banners
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the General Public License (GPL 2.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/GPL-2.0
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade the module to newer
 * versions in the future.
 *
 *  @author    Bonpresta
 *  @copyright 2015-2020 Bonpresta
 *  @license   http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
 */
#bonbanners .img-responsive {
    width: 101%;
    height: auto;
    transition: filter 0.3s ease, transform 2s ease;
    max-width: 101%;
}
#bonbanners .banner-image {
    max-width: 100%;
}
#bonbanners .bonbanners-item {
    position: relative;
    overflow: hidden;
    background: #d1ece8;
    transition: all .3s ease;
}
#bonbanners .banner-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}
#bonbanners .bonbanners-item img {
    transition: all .3s ease;
    /* position: absolute; */
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}
#bonbanners .bonbanners-item:hover img {
    transform: scale(1.05);
}

#bonbanners .banner-description {
    display: flex;
    align-items: center;
}
#bonbanners .bonbanners-btn {
    background: RGB(var(--brand-primary));
    border-radius: 40px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    transition: all .3s;
}
#bonbanners .bonbanners-btn:hover {
    background: RGB(var(--brand-hover));
}
#bonbanners .banner-inner > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#bonbanners .h1 {
    color: RGB(var(--brand-primary));
    line-height: 119%;
    text-transform: none;
    font-weight: 400;
}
#bonbanners .h2.top-position {
    margin-bottom: auto;
}
#bonbanners .h2 {
    color: #43aa96;
    letter-spacing: 0.16em;
    line-height: 140%;
    font-weight: 500;
    margin: 0;
}
#bonbanners .bonbanners-subtitle {
    color: var(--gray-black);
    font-weight: 400;
    line-height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
#bonbanners .number {
    color: #43aa96;
    font-weight: 600;
}
#bonbanners .column-text * {
    margin: 0!important;
    line-height: 100%;
    text-transform: uppercase;
}
@media screen and (min-width: 1881px) {
    #bonbanners .h2,
    #bonbanners .h1 {
        font-size: 31px;
    }
    #bonbanners .number {
        font-size: 47px;
    }
    #bonbanners .h1 {
        max-width: 187px;
        margin-bottom: 31px;
    }
    #bonbanners .h2 {
        margin-right: 20px;
    }
    #bonbanners .h2.bonbanners-subtitle {
        font-size: 20px;
    }
    #bonbanners .banner-inner {
        padding: 20px 20px 40px 20px;
    }
    #bonbanners .bonbanners-btn {
        width: 36px;
        height: 36px;
    }
    #bonbanners .bonbanners-list {
        grid-column-gap: 28px;
        grid-row-gap: 28px;
    }
}

@media screen and (min-width: 991px) {
    #bonbanners .bonbanners-list {
        grid-template-columns: repeat(4, 1fr);
        grid-row-gap: calc(15px + (28 - 15) * ((100vw - 991px) / (1880 - 991)));
    }

    #bonbanners .banner-inner > div {
        justify-content: space-between;
    }
}
@media screen and (min-width: 991px) and (max-width: 1880px) {
    #bonbanners .h2,
    #bonbanners .h1 {
        font-size: calc(12px + (31 - 12) * ((100vw - 991px) / (1880 - 991)));
    }
    #bonbanners .h2.bonbanners-subtitle {
        font-size: calc(12px + (20 - 12) * ((100vw - 991px) / (1880 - 991)));
    }
    #bonbanners .number {
        font-size: calc(28px + (47 - 28) * ((100vw - 991px) / (1880 - 991)));
    }
    #bonbanners .h1 {
        max-width:  calc(100px + (187 - 100) * ((100vw - 991px) / (1880 - 991)));
        margin-bottom: calc(11px + (31 - 11) * ((100vw - 991px) / (1880 - 991)));
    }
    #bonbanners .h2 {
        margin-right: calc(10px + (20 - 10) * ((100vw - 991px) / (1880 - 991)));
    }
    /* #bonbanners .bonbanners-item {
        padding: calc(20px + (40 - 20) * ((100vw - 991px) / (1880 - 991))) calc(14px + (20 - 14) * ((100vw - 991px) / (1880 - 991)));
    } */
    #bonbanners .banner-inner {
        padding-top: calc(10px + (20 - 10) * ((100vw - 991px) / (1880 - 991)));
        padding-right: calc(10px + (20 - 10) * ((100vw - 991px) / (1880 - 991)));
        padding-bottom: calc(20px + (40 - 20) * ((100vw - 991px) / (1880 - 991)));
        padding-left: calc(10px + (20 - 10) * ((100vw - 991px) / (1880 - 991)));
    }
    #bonbanners .bonbanners-btn {
        width: calc(20px + (36 - 20) * ((100vw - 991px) / (1880 - 991)));
        height: calc(20px + (36 - 20) * ((100vw - 991px) / (1880 - 991)));
    }
    #bonbanners .bonbanners-list {
        grid-column-gap: calc(15px + (28 - 15) * ((100vw - 991px) / (1880 - 991)));
        grid-row-gap: calc(15px + (28 - 15) * ((100vw - 991px) / (1880 - 991)));
    }
}
@media screen and (min-width: 577px) and (max-width: 990px) {
    #bonbanners .bonbanners-list {
        grid-row-gap: calc(15px + (28 - 15) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .h2,
    #bonbanners .h1 {
        font-size: calc(12px + (20 - 12) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .h2.bonbanners-subtitle {
        font-size: calc(12px + (16 - 12) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .number {
        font-size: calc(28px + (47 - 28) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .h1 {
        max-width:  calc(100px + (187 - 100) * ((100vw - 577px) / (990 - 577)));
        margin-bottom: calc(30px + (60 - 30) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .h2 {
        margin-right: calc(10px + (20 - 10) * ((100vw - 577px) / (990 - 577)));
    }
    /* #bonbanners .bonbanners-item {
        padding: calc(20px + (40 - 20) * ((100vw - 577px) / (990 - 577))) calc(14px + (20 - 14) * ((100vw - 577px) / (990 - 577)));
    } */
    #bonbanners .banner-inner {
        padding-top: calc(10px + (20 - 10) * ((100vw - 577px) / (990 - 577)));
        padding-right: calc(10px + (20 - 10) * ((100vw - 577px) / (990 - 577)));
        padding-bottom: calc(20px + (40 - 20) * ((100vw - 577px) / (990 - 577)));
        padding-left: calc(10px + (20 - 10) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .bonbanners-btn {
        width: calc(20px + (36 - 20) * ((100vw - 577px) / (990 - 577)));
        height: calc(20px + (36 - 20) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .bonbanners-list {
        grid-column-gap: calc(15px + (28 - 15) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .bonbanners-list {
        grid-row-gap: calc(15px + (28 - 15) * ((100vw - 577px) / (990 - 577)));
    }
    #bonbanners .bonbanners-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 577px) {
    #bonbanners .bonbanners-list {
        display: grid;
        grid-template-rows: 1fr;
    }
}
@media screen and (max-width: 576px) {
    #bonbanners .bonbanners-list {
        grid-row-gap: calc(15px + (28 - 15) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .h2,
    #bonbanners .h1 {
        font-size: calc(12px + (20 - 12) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .number {
        font-size: calc(28px + (47 - 28) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .h1 {
        max-width:  calc(100px + (187 - 100) * ((100vw - 320px) / (576 - 320)));
        margin-bottom: calc(30px + (60 - 30) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .h2 {
        margin-right: calc(10px + (20 - 10) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .bonbanners-item {
        margin-bottom: 15px;
        /* padding: calc(20px + (40 - 20) * ((100vw - 320px) / (576 - 320))) calc(14px + (20 - 14) * ((100vw - 320px) / (576 - 320))); */
    }
    #bonbanners .banner-inner {
        /* padding: 20px 20px 40px 20px; */
        padding-top: calc(10px + (20 - 10) * ((100vw - 320px) / (576 - 320)));
        padding-right: calc(10px + (20 - 10) * ((100vw - 320px) / (576 - 320)));
        padding-bottom: calc(20px + (40 - 20) * ((100vw - 320px) / (576 - 320)));
        padding-left: calc(10px + (20 - 10) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .bonbanners-btn {
        width: calc(20px + (36 - 20) * ((100vw - 320px) / (576 - 320)));
        height: calc(20px + (36 - 20) * ((100vw - 320px) / (576 - 320)));
    }
}