/**
 * 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 {
  overflow: hidden;
}

#bonbanners .banner-list {
  display: grid;
}
  
#bonbanners .banner-list .banner-item:nth-child(1) {
  grid-area: banner-item-1;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner {
  right: 3.8%;
  top: 9.5%;
}

#bonbanners .banner-list .banner-item:nth-child(2) {
  grid-area: banner-item-2;
}

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner {
  right: 3.8%;
  top: 9.5%;
}

#bonbanners .banner-list .banner-item:nth-child(3) {
  grid-area: banner-item-3;
}

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner {
  left: 8%;
  top: unset;
  bottom: 9.6%;
}

#bonbanners .banner-list .banner-item:nth-child(4) {
  grid-area: banner-item-4;
}

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner {
  right: 8%;
  top: unset;
  bottom: 9.6%;
}


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

#bonbanners ul {
  margin-bottom: 0;
}

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

#bonbanners a img {
  width: auto;
  max-width: 100%;
  height: auto;
  transition: all .3s linear;
}

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

#bonbanners a .banner-inner {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
  text-align: left;
}

#bonbanners .h1 {
  font-family: 'Baloo Paaji';
  color: #32355d;
  line-height: 1.33;
  margin: 0;
}

#bonbanners .banner-list .banner-item:nth-child(1) .banner-inner .h1,
#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner .h1 {
  writing-mode: vertical-lr;
}

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

@media screen and (min-width: 1881px) {
  #bonbanners {
    margin-bottom: 124px;
  }

  #bonbanners .h1 {
    font-size: 24px;
  }

  #bonbanners .banner-list {
    grid-column-gap: 32px;
    grid-row-gap: 32px;
  }
}

@media screen and (max-width: 1880px) {
  #bonbanners {
    margin-bottom: calc(30px + (124 - 30) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonbanners .h1 {
    font-size: calc(14px + (24 - 14) * ((100vw - 320px) / (1880 - 320)));
  }
}

@media (min-width: 576px) and (max-width: 1880px) {
  #bonbanners .banner-list {
    grid-column-gap: calc(10px + (32 - 10) * ((100vw - 576px) / (1880 - 576)));
    grid-row-gap: calc(4px + (32 - 4) * ((100vw - 576px) / (1880 - 576)));
  }
}

@media screen and (min-width: 576px) {
  #bonbanners .banner-list {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  
    grid-template-areas:
      "banner-item-1 banner-item-2 banner-item-2"
      "banner-item-1 banner-item-3 banner-item-4";  
  }
}

@media screen and (max-width: 575px) {
  #bonbanners .banner-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
   
    grid-template-areas:
      "banner-item-1 banner-item-3"
      "banner-item-1 banner-item-4"
      "banner-item-2 banner-item-2";  

      grid-column-gap: 20px;
      grid-row-gap: 20px;
  }

  #bonbanners a img {
    height: 100%;
  }
}

