/**
 * 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)
 */

#bonbannersmenu {
    overflow: hidden;
    /* padding: 15px; */
}

#bonbannersmenu .bonbannersmenu-wrapper{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
} 

#bonbannersmenu ul {
    margin-bottom: 0;
}

#bonbannersmenu 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;
}

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

#bonbannersmenu a:hover img {
    transform: scale(1.02);
}

#bonbannersmenu .banner-inner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

#bonbannersmenu .bonbannersmanu-item:nth-child(1) .banner-inner,
#bonbannersmenu .bonbannersmanu-item:nth-child(2) .banner-inner,
#bonbannersmenu .bonbannersmanu-item:nth-child(3) .banner-inner,
#bonbannersmenu .bonbannersmanu-item:nth-child(4) .banner-inner {
    transform: translateY(0);
}

#bonbannersmenu .bonbannersmanu-item:nth-child(3) .banner-inner,
#bonbannersmenu .bonbannersmanu-item:nth-child(4) .banner-inner {
    left: unset;
}

#bonbannersmenu .bonbannersmanu-item:nth-child(1) .banner-inner {
    top: 22%;
}

#bonbannersmenu .bonbannersmanu-item:nth-child(2) .banner-inner {
    top: 44%;
}

#bonbannersmenu .bonbannersmanu-item:nth-child(3) .banner-inner {
    top: 5%;
}

#bonbannersmenu .bonbannersmanu-item:nth-child(4) .banner-inner {
    top: 50%;
}

#bonbannersmenu a .banner-inner p strong {
    font-weight: 500;
}

#bonbannersmenu p.h2 {
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

#bonbannersmenu p.bonbannersmenu-btn {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #fff;
    position: relative;
}

#bonbannersmenu p.bonbannersmenu-btn::after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #fff;
    position: absolute;
    bottom: 1px;
    left: 0;
    transition: all .4s ease;
}

#bonbannersmenu p.bonbannersmenu-btn:hover::after {
    width: 0;
    right: 0;
    left: auto;
}

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

@media screen and (min-width: 1881px) {
    #bonbannersmenu .banner-inner {
        left: 25px;
    }

    #bonbannersmenu .bonbannersmanu-item:nth-child(3) .banner-inner,
    #bonbannersmenu .bonbannersmanu-item:nth-child(4) .banner-inner {
        right: 25px;
    }


    #bonbannersmenu p.h2 {
        font-size: 25px;
        margin-bottom: 14px;
    }

    #bonbannersmenu p.bonbannersmenu-btn {
        font-size: 18px;
    }
}

@media (min-width: 993px) and (max-width: 1880px) {
    #bonbannersmenu .banner-inner {
        left: calc(10px + (25 - 10) * ((100vw - 993px) / (1880 - 993)));
    }

    #bonbannersmenu .bonbannersmanu-item:nth-child(3) .banner-inner,
    #bonbannersmenu .bonbannersmanu-item:nth-child(4) .banner-inner {
        right: calc(10px + (25 - 10) * ((100vw - 993px) / (1880 - 993)));
    }

    #bonbannersmenu p.h2 {
        font-size: calc(15px + (25 - 15) * ((100vw - 993px) / (1880 - 993)));
        margin-bottom: calc(5px + (14 - 5) * ((100vw - 993px) / (1880 - 993)));
    }

    #bonbannersmenu p.bonbannersmenu-btn {
        font-size: calc(14px + (18 - 14) * ((100vw - 993px) / (1880 - 993)));
    }
}



@media (max-width: 1280px) {
    #bonbannersmenu .bonbannersmenu-wrapper {
        width: 100%;
        justify-content: space-between;
        padding: 0;
    }
    #bonbannersmenu {
        padding: 0 15px 15px 15px;
    }
}

@media screen and (max-width: 992px) {
    #bonbannersmenu {
        display: none;
    }
}

@media (min-width: 993px) {
    #bonbannersmenu {
        display: flex;
        flex: 0 0 45%;
    }
}