/**
 * 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: 10px 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 .3s linear;
}

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

#bonbanners a .banner-inner {
  position: absolute;
  z-index: 2;
  text-align: left;
  padding: 5px;
}

#bonbanners li:nth-child(1) .banner-inner {
  left: 6%;
  bottom: 23%;
}

#bonbanners li:nth-child(2) .banner-inner {
  top: 4%;
  right: 6.9%;
}

#bonbanners li:nth-child(3) .banner-inner {
  bottom: 14.3%;
  left: 5.6%;
}

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

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

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

#bonbanners li {
  padding: 0 5px;
}

@media screen and (min-width: 1881px) {
  #bonbanners p.h1 {
    font-size: 50px;
    margin-bottom: 17px;
  }

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

  #bonbanners li:nth-child(1) .banner-inner {
    max-width: 195px;
  }

  #bonbanners li:nth-child(2) .banner-inner {
    max-width: 300px;
  }

  #bonbanners li:nth-child(3) .banner-inner {
    max-width: 300px;
  }
}

@media (min-width: 576px) and (max-width: 1880px) {
  #bonbanners p.h1 {
    font-size: calc(20px + (50 - 20) * ((100vw - 576px) / (1880 - 576)));
    margin-bottom: calc(7px + (17 - 7) * ((100vw - 576px) / (1880 - 576)));
  }

  #bonbanners p.h2 {
    font-size: calc(14px + (25 - 14) * ((100vw - 576px) / (1880 - 576)));
  }

  #bonbanners li:nth-child(1) .banner-inner {
    max-width: calc(115px + (195 - 115) * ((100vw - 576px) / (1880 - 576)));
  }

  #bonbanners li:nth-child(2) .banner-inner {
    max-width: calc(190px + (300 - 190) * ((100vw - 576px) / (1880 - 576)));
  }

  #bonbanners li:nth-child(3) .banner-inner {
    max-width: calc(140px + (300 - 140) * ((100vw - 576px) / (1880 - 576)));
  }
}

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

  #bonbanners p.h1 {
    font-size: calc(25px + (35 - 25) * ((100vw - 320px) / (575 - 320)));
    margin-bottom: calc(10px + (20 - 10) * ((100vw - 320px) / (575 - 320)));
  }

  #bonbanners p.h2 {
    font-size: calc(14px + (20 - 14) * ((100vw - 320px) / (575 - 320)));
  }

  #bonbanners li:nth-child(1) .banner-inner {
    max-width: calc(120px + (170 - 120) * ((100vw - 320px) / (575 - 320)));
  }

  #bonbanners li:nth-child(2) .banner-inner {
    max-width: calc(190px + (290 - 190) * ((100vw - 320px) / (575 - 320)));
  }

  #bonbanners li:nth-child(3) .banner-inner {
    max-width: calc(160px + (260 - 160) * ((100vw - 320px) / (575 - 320)));
  }
}