/**
 * 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 ul {
    margin-bottom: 0;
}

#bonbannersmenu li:not(:last-child) {
    margin-bottom: 15px;
}

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

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

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

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

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

#bonbannersmenu p.h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    text-transform: none;
}

#bonbannersmenu p.h2 {
    font-weight: 300;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    text-transform: none;
}

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

@media screen and (min-width: 1881px) {
    #bonbannersmenu p.h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    #bonbannersmenu p.h2 {
        font-size: 20px;
    }

    #bonbannersmenu a .banner-inner {
        max-width: 190px;
    }

    #bonbannersmenu li:nth-child(1) a .banner-inner {
        right: 30px;
    }
    
    #bonbannersmenu li:nth-child(2) a .banner-inner {
        left: 30px;
    }
}

@media (min-width: 1281px) and (max-width: 1880px) {
    #bonbannersmenu a .banner-inner {
        max-width: calc(155px + (190 - 155) * ((100vw - 1281px) / (1880 - 1281)));
    }

    #bonbannersmenu li:nth-child(1) a .banner-inner {
        right: calc(10px + (30 - 10) * ((100vw - 1281px) / (1880 - 1281)));
    }
    
    #bonbannersmenu li:nth-child(2) a .banner-inner {
        left: calc(10px + (30 - 10) * ((100vw - 1281px) / (1880 - 1281)));
    }
}

@media screen and (max-width: 1880px) {
    #bonbannersmenu p.h1 {
        font-size: calc(20px + (40 - 20) * ((100vw - 992px) / (1880 - 992)));
        margin-bottom: calc(5px + (15 - 5) * ((100vw - 992px) / (1880 - 992)));
    }

    #bonbannersmenu p.h2 {
        font-size: calc(14px + (20 - 14) * ((100vw - 992px) / (1880 - 992)));
    }
}

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

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

    #bonbannersmenu a .banner-inner {
        max-width: calc(130px + (160 - 130) * ((100vw - 993px) / (1280 - 993)));
    }

    #bonbannersmenu li:not(:last-child) {
        margin: 0 15px 0 0;
    }
    
    #bonbannersmenu {
        padding: 0 15px 15px 15px;
    }

    #bonbannersmenu li:nth-child(1) a .banner-inner {
        right: calc(10px + (30 - 10) * ((100vw - 993px) / (1280 - 993)));
    }
    
    #bonbannersmenu li:nth-child(2) a .banner-inner {
        left: calc(10px + (30 - 10) * ((100vw - 993px) / (1280 - 993)));
    }
}


@media screen and (max-width: 1199px) {
    #bonbannersmenu a .banner-inner h3 {
        font-size: 16px;
    }
}

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