/**
 * 2015-2019 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-2019 Bonpresta
 *  @license   http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
 */

#bonbanners {
    margin: 5px 0 30px 0;
    overflow: hidden;
}

#bonbanners p {
    font-size: 12px;
}

#bonbanners ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

#bonbanners ul li{
    padding: 10px;
}

#bonbanners .banner-list .banner-item:nth-child(1){
    grid-area: 1 / 1 / 3 / 4;
}
#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner {
    left: 0;
    right: auto;
}

#bonbanners .banner-list .banner-item:nth-child(2){
    grid-area: 1 / 4 / 3 / 6;
}
#bonbanners .banner-list .banner-item:nth-child(3){
    grid-area: 1 / 6 / 5 / 8;
}
#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner {
    top: 80%;
}
#bonbanners .banner-list .banner-item:nth-child(4){
    grid-area: 3 / 1 / 5 / 3;
}
#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner .banner-inner-text{
    display: flex;
}

#bonbanners .banner-list .banner-item:nth-child(5){
    grid-area: 3 / 3 / 5 / 6;
}
#bonbanners .banner-list .banner-item:nth-child(5) .banner-inner span{
    position: absolute;
    right: 40px;
}

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner h3,
#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner h3{
    color: black;
}
.banner-inner-left{
    margin-right: 15px;
}



#bonbanners a {
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    color: #333333;
    display: block;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#bonbanners a img {
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: all .2s linear;
}

#bonbanners a:hover img {
    transform: scale(1.07);
}

#bonbanners a .banner-inner {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 2;
    transform: translate(0, -50%);
    background: rgba(250,250,250,0.6);
    backdrop-filter: blur(3px);
    padding: 20px 40px;
}

#bonbanners a .banner-inner p {
    color: black;
    margin-bottom: 0;
}

#bonbanners a .banner-inner p strong {
    font-weight: 500;
}
#bonbanners a .banner-inner h2 {
    color: black;
    font-size: 16px;
    font-weight: normal;
}
#bonbanners a .banner-inner h3 {
    font-size: 29px;
    font-weight: normal;
    margin: 0;
    color: black;
}

#bonbanners a .banner-inner h4 {
    font-size: 48px;
    font-weight: normal;
    margin: 0 0 5px;
    color: black;
}

#bonbanners a .banner-inner span {
    background: #444444;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    font-size: 15px;
    padding: 13px 32px;
    margin-top: 5px;
    transition: all .2s linear;
    box-shadow: rgba(0, 0, 0, 0.1) 4px 4px 4px;
    margin-left: 40px;
}

#bonbanners a span:hover {
    box-shadow: none;
    background: #2F2F2F;
}

#bonbanners a:before,
#bonbanners a:after {
    pointer-events: none;
}


@media (min-width: 575.98px) and (max-width: 1024px) {
    #bonbanners ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
    }
    #bonbanners .banner-list .banner-item:nth-child(1){
        grid-area: 1 / 1 / 3 / 3;
    }

    #bonbanners .banner-list .banner-item:nth-child(2){
        grid-area: 3 / 1 / 5 / 2;
    }
    #bonbanners .banner-list .banner-item:nth-child(3){
        grid-area: 3 / 2 / 7 / 3;
    }

    #bonbanners .banner-list .banner-item:nth-child(4){
        grid-area: 5 / 1 / 7 / 2;
    }

    #bonbanners .banner-list .banner-item:nth-child(5){
        grid-area: 7 / 1 / 9 / 3;
    }

    #bonbanners .banner-list .banner-item:nth-child(4) .banner-inner h2{
        margin: 0;
        line-height: 1.3;
    }
    #bonbanners .banner-list .banner-item:nth-child(4) .banner-inner h4{
        font-size: 37px;;
    }
}

/*// Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    #bonbanners ul {
        display: block;
    }
    #bonbanners ul li{
        padding: 10px;
    }
    #bonbanners a .banner-inner span {
        display: none;
    }
    #bonbanners a .banner-inner h2 {
        margin: 0;
    }
    #bonbanners a .banner-inner h3 {
        font-size: 23px;
    }
    #bonbanners a .banner-inner h4 {
        font-size: 32px;
    }
    .banner-inner-text{
        padding: 12px 25px;
    }
    #bonbanners .banner-list .banner-item:nth-child(3){
        display: none;
    }
}

/*// Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
    .banner-inner-text{
        padding: 15px 35px;
    }
}

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {  }

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {  }

/*// Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) { }