/**
 * 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 {
  margin: 13px 0 40px 0;
  overflow: hidden;
}

#bonbanners ul {
  margin-bottom: 0;
}

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

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

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

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

#bonbanners p.h3 {
  color: #666666;
  font-weight: 300;
  text-transform: none;
  line-height: 1.5;
  margin-bottom: 0;
}

#bonbanners p.h2 {
  text-transform: none;
  line-height: 1.5;
  margin-bottom: 0;
}

#bonbanners p.h4 {
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
  font-weight: 400;
}

#bonbanners .bonbanners-btn {
  display: inline-block;
  color: #fff;
  text-transform: uppercase;
  transition: all .3s ease;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.15);
  background: #af9fd6;
  font-weight: 300;
}

#bonbanners .bonbanners-btn:hover {
  box-shadow: none;
  background: #b160c3;
}

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

@media screen and (min-width: 1881px) {
  #bonbanners a .banner-inner {
    padding-left: 40px;
  }
  
  #bonbanners p.h3 {
    font-size: 20px;
  }

  #bonbanners p.h2 {
    font-size: 30px;
  }

  #bonbanners p.h4 {
    margin-bottom: 20px;
  }

  #bonbanners .bonbanners-btn {
    padding: 12px 25px;
    font-size: 17px;
  }
}

@media (min-width: 992px) and (max-width: 1880px) {
  #bonbanners a .banner-inner {
    padding-left: calc(20px + (40 - 20) * ((100vw - 992px) / (1880 - 992)));
  }
  
  #bonbanners p.h3 {
    font-size: calc(18px + (20 - 18) * ((100vw - 992px) / (1880 - 992)));
  }

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

  #bonbanners p.h4 {
    margin-bottom: calc(10px + (20 - 10) * ((100vw - 992px) / (1880 - 992)));
  }

  #bonbanners .bonbanners-btn {
    padding: calc(8px + (12 - 8) * ((100vw - 992px) / (1880 - 992))) calc(18px + (25 - 18) * ((100vw - 992px) / (1880 - 992)));
    font-size: calc(14px + (17 - 14) * ((100vw - 992px) / (1880 - 992)));
  }
}

@media screen and (max-width: 991px) {
  #bonbanners a .banner-inner {
    padding-left: calc(5px + (15 - 5) * ((100vw - 992px) / (991 - 320)));
  }
  
  #bonbanners p.h3 {
    font-size: calc(15px + (18 - 15) * ((100vw - 30px) / (991 - 320)));
  }

  #bonbanners p.h2 {
    font-size: calc(16px + (25 - 16) * ((100vw - 30px) / (991 - 320)));
  }

  #bonbanners p.h4 {
    margin-bottom: calc(5px + (15 - 5) * ((100vw - 30px) / (991 - 320)));
  }

  #bonbanners .bonbanners-btn {
    padding: calc(8px + (12 - 8) * ((100vw - 320px) / (991 - 320))) calc(18px + (25 - 18) * ((100vw - 320px) / (991 - 320)));
    font-size: calc(14px + (17 - 14) * ((100vw - 320px) / (991 - 320)));
  }
}

@media screen and (max-width: 767px) {
  #bonbanners p.h3 {
    display: none;
  }
}

@media screen and (max-width: 575px) {
  #bonbanners li {
    margin-bottom: 15px;
  }

  #bonbanners .bonbanners-btn-wrapper {
    display: none;
  }
}