/**
 * 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 {
  top: 12.8%;
  left: 11.75%;
}

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

#bonbanners .banner-list .banner-item:nth-child(2) .banner-inner {
  left: 6.97%;
  top: 23.17%;
}

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

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner {
  right: 11.25%;
  transform: translateY(-50%);
}

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

#bonbanners .banner-list .banner-item:nth-child(3) .banner-inner .h1::after {
  width: 5px;
  height: 100%;
  bottom: 0;
  right: 8px;
  left: unset;
}

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

#bonbanners .banner-list .banner-item:nth-child(4) .banner-inner {
  right: 22%;
  top: 14.32%;
}

#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;
  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: 10px;
  top: 50%;
  z-index: 2;
  text-align: left;
  max-width: max-content;
  padding: 5px;
}

#bonbanners .h1 {
  font-family: 'Baloo Paaji';
  color: RGB(var(--gray-black));
  line-height: 1.33;
  margin: 0;
  position: relative;
}

#bonbanners .h1:after {
  content: "";
  position: absolute;
  height: 5px;
  width: 100%;
  bottom: 8px;
  z-index: -1;
  left: 0px;
  background: RGB(var(--brand-primary));
}

@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;
  }
}

