/**
 * 2015-2016 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-2016 Bonpresta
 *  @license   http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
 */

#bonbanners {
  margin-top: 30px;
}

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

#bonbanners a .banner-inner {
  z-index: 2;
  padding: 10px 30px;
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  -webkit-transform: translate(0,-50%);
  -o-transform: translate(0,-50%);
  transform: translate(0,-50%);
  background: rgba(0,0,0,.6);
}

#bonbanners a .banner-inner h4 {
  font-size: 25px;
}

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

#bonbanners a:before {
  background: rgba(200, 200, 200, 0.3) none repeat scroll 0 0;
  content: "";
  height: 150px;
  left: 0;
  position: absolute;
  top: 0;
  -webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0px, -100%, 0px);
  -ms-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0px, -100%, 0px);
  transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0px, -100%, 0px);
  -webkit-transition: -webkit-transform 0.7s linear 0s;
  transition: transform 0.7s linear 0s;
  width: 200%;
}

#bonbanners a:after {
  background-image: -webkit-linear-gradient(120deg, rgba(100, 100, 100, 0.15), rgba(255, 255, 255, 0));
  background-image: linear-gradient(-30deg, rgba(100, 100, 100, 0.15), rgba(255, 255, 255, 0));
  background-repeat: repeat-x;
  bottom: 0;
  content: "";
  display: block;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: all 0.3s linear 0s;
  transition: all 0.3s linear 0s;
  z-index: 1;
}

#bonbanners a:hover:before {
  -webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0px, 530%, 0px);
  -ms-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0px, 530%, 0px);
  transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0px, 530%, 0px);
}

#bonbanners a:hover:after {
  opacity: 1;
}