/**
 * 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 {
    overflow: hidden;
    margin-top: 9px;
}
#bonbanners .bonbanners-item {
    position: relative;
    overflow: hidden;
}
#bonbanners .banner-inner {
    position: absolute;
    text-align: left;
    z-index: 2;
}
#bonbanners .bonbanners-item:hover img {
    transform: scale(1.1);
    transition: filter 0.3s ease, transform 4s ease;
}
#bonbanners .img-responsive {
    width: 101%;
    height: auto;
    transition: filter 0.3s ease, transform 2s ease;
    max-width: 101%;
    transform: scale(1);
}
#bonbanners video {
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
    height: 101%;
    object-fit: cover;
}

#bonbanners .bonbanners-list {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 20px 20px;
}
#bonbanners .bonbanners-item:nth-child(1) { grid-area: item-1; }
#bonbanners .bonbanners-item:nth-child(2) { grid-area: item-2; }
#bonbanners .h1 {
    color: #fff;
    font-weight: 500;
    line-height: 125%;
    margin: 0;
}
#bonbanners .h2 {
    color: #fff;
    line-height: 125%;
    font-weight: 400;
    margin: 0;
}
#bonbanners .btn-primary:hover {
    background: #3dc7d0;
}
@media screen and (min-width: 1881px){
    #bonbanners .h1 {
        font-size: 50px;
    }
    #bonbanners .h2 {
        font-size: 25px;
        margin-top: 6px;
    }
    #bonbanners .btn-primary {
        margin-top: 42px;
        padding: 13px 30px;
        font-size: 20px;
    }
    #bonbanners .bonbanners-list {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "item-1 item-2 item-3";
    }
    #bonbanners .bonbanners-item:nth-child(3) .banner-inner,
    #bonbanners .bonbanners-item:first-child .banner-inner {
        top: 5%;
        right: 30px;
    }
    #bonbanners .bonbanners-item:nth-child(2) .banner-inner {
        top: 25%;
        left: 30px;
    }
    #bonbanners .banner-inner {
        max-width: 411px;
    }
}
@media screen and (max-width: 1880px) {
    #bonbanners .btn-primary {
        padding: calc(2px + (13 - 2) * ((100vw - 320px) / (1880 - 320))) calc(10px + (30 - 10) * ((100vw - 320px) / (1880 - 320)));
        font-size: calc(12px + (20 - 12) * ((100vw - 320px) / (1880 - 320)));
    }
    #bonbanners .btn-primary {
        padding: calc(2px + (13 - 2) * ((100vw - 320px) / (1880 - 320))) calc(10px + (30 - 10) * ((100vw - 320px) / (1880 - 320)));
        font-size: calc(12px + (20 - 12) * ((100vw - 320px) / (1880 - 320)));
    }
}

@media screen and (min-width: 577px) and (max-width: 1880px) {
    #bonbanners .h1 {
        font-size: calc(17px + (50 - 17) * ((100vw - 577px) / (1880 - 577)));
    }
    #bonbanners .h2 {
        max-width: calc(140px + (276 - 140) * ((100vw - 577px) / (1880 - 577)));
        font-size: calc(14px + (25 - 14) * ((100vw - 577px) / (1880 - 577)));
        margin-top: calc(2px + (6 - 2) * ((100vw - 577px) / (1880 - 577)));
    }
    #bonbanners .btn-primary {
        margin-top: calc(5px + (42 - 5) * ((100vw - 577px) / (1880 - 577)));
    }
    #bonbanners .bonbanners-list {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "item-1 item-2 item-3";
    }
    #bonbanners .banner-inner {
        max-width: calc(140px + (411 - 140) * ((100vw - 577px) / (1880 - 577)));
    }
    #bonbanners .bonbanners-item:nth-child(3) .banner-inner,
    #bonbanners .bonbanners-item:first-child .banner-inner {
        top: 5%;
        right: calc(10px + (30 - 10) * ((100vw - 577px) / (1880 - 577)));
    }
    #bonbanners .bonbanners-item:nth-child(2) .banner-inner {
        top: 25%;
        left: calc(10px + (30 - 10) * ((100vw - 577px) / (1880 - 577)));
    }
}

@media screen and (max-width: 576px) {
    #bonbanners .h1 {
        font-size: calc(17px + (40 - 17) * ((100vw - 320px) / (576 - 320)));
    }
    #bonbanners .h2 {
        max-width: calc(140px + (276 - 140) * ((100vw - 320px) / (576 - 320)));
        font-size: calc(15px + (22 - 15) * ((100vw - 320px) / (576 - 320)));
        margin-top: 5px;
    }
    #bonbanners .bonbanners-list {
        grid-template-columns: 1fr;
        grid-template-areas:
            "item-1"
            "item-2"
            "item-3";
    }
    #bonbanners .btn-primary {
        display: none;
    }
    #bonbanners .banner-inner {
        width: 100%;
        padding: 0 10px;
        text-align: center;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    #bonbanners .bonbanners-item .banner-inner {
        top: 10%;
    }
}