/*--------------------------------------------------------------
# Brand gallery
--------------------------------------------------------------*/
.brand-gallery {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
      flex-flow: row wrap;
  margin: 0 -10px 20px -10px;
}

.brand-gallery .gallery-item {
	box-sizing: border-box;
  position: relative;
  float: left;
  padding: 0 10px;
  margin: 0 0 20px 0;
}

.brand-gallery-thumb {
  padding-bottom: 80%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: all 1s ease-in-out;
}

.brand-gallery figcaption {
  margin-top: 1rem;
}

.brand-gallery figcaption > p {
  font-size: 0.9rem;
}

.brand-gallery .gallery-item a {
  background-color: #000;
  display: block;
  overflow: hidden;
  position: relative;
	border:0;
}

.brand-gallery .gallery-item a:hover {
	display:block;
	border:0;
  background-color: #000;
}

.brand-gallery .gallery-item a:hover .brand-gallery-thumb {
  opacity: 0.5;
  transform: scale(1.2);
}

.brand-gallery a:before {
  content: "\f0fe";
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-block;
  opacity: 0;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  font-family: 'FontAwesome';
  transform: translate3d(-50%, -50%, 0) scale(0);
  transition: all 0.5s ease-in-out;
  z-index: 1;
}

.brand-gallery a:hover:before {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.brand-gallery span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0);
  transition: all 0.5s ease-in-out;
  background: #fff;
  padding: 5px 10px;
  z-index: 1;
  color: #222;
}

.brand-gallery a:hover span {
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.brand-gallery figure.gallery-item {
	max-width: 100%;
	-ms-flex-preferred-size: 100%;
	flex-basis: 100%;
}

@media (min-width: 641px) {
  .brand-gallery figure.gallery-item {
    max-width: 50%;
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
  }

	.gallery-columns-1 figure.gallery-item {
	  max-width:100%;
		flex-basis:100%;
	}
}

@media (min-width: 1025px) {
	.brand-gallery {
	  margin: 0 -15px 30px -15px;
	}

	.brand-gallery .gallery-item {
		padding:0 15px;
		margin-bottom: 30px;
	}

	.gallery-columns-2 figure.gallery-item {
	  max-width:50%;
		flex-basis:50%;
	}

	.gallery-columns-3 figure.gallery-item {
	  max-width:33.3%;
		flex-basis:33.3%;
	}

	.gallery-columns-4 figure.gallery-item {
	  max-width:25%;
		flex-basis:25%;
	}

	.gallery-columns-5 figure.gallery-item {
	  max-width:20%;
		flex-basis:20%;
	}

	.gallery-columns-6 figure.gallery-item {
	  max-width:16.6%;
		flex-basis:16.6%;
	}

	.gallery-columns-7 figure.gallery-item {
	  max-width:14.28%;
		flex-basis:14.28%;
	}

	.gallery-columns-8 figure.gallery-item {
	  max-width:12.5%;
		flex-basis:12.5%;
	}

	.gallery-columns-9 figure.gallery-item {
	  max-width:11.1%;
		flex-basis:11.1%;
	}
}

/*--------------------------------------------------------------
# Instagram and Flickr widgets
--------------------------------------------------------------*/
.brand-instagram-feed,
.flickr-stream {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
      flex-flow: row wrap;
  -ms-flex-pack: left;
      justify-content: left;
  margin: 0 -2px;
}

.brand-instagram-feed a,
.widget_brand_flickr .flickr_badge_image {
	box-sizing: border-box;
  display: block;
  padding: 2px;
}

.brand-instagram-feed img,
.flickr_badge_image img,
.flickr_stream_wrap {
  width: 100%;
}

.flickr_stream_wrap {
  margin-top: 1em;
  margin-bottom: 0;
  font-size: 0.8em;
}

.flickr_stream_wrap a {
  background-image: url(../img/flickr.png);
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 25px;
  display: inline-block;
}

.brand-instagram-feed > a,
.flickr-stream a,
.flickr-stream a > img {
  border:0;
  box-shadow:none !important;
}

.brand-instagram-feed > a > figure {
	margin:0;
  background-position: center;
  background-size: cover;
  padding-bottom: 100%;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.flickr_badge_image img {
  transition: all 0.25s ease-in-out;
}

.brand-instagram-feed figure:hover,
.flickr_badge_image a:hover img {
  opacity: 0.5;
}

.widget-2-col {
  width: 50%;
  -ms-flex-preferred-size: 50%;
      flex-basis: 50%;
}

.widget-3-col {
  width: 33.3%;
  -ms-flex-preferred-size: 33.3%;
      flex-basis: 33.3%;
}

.widget-4-col {
  width: 25%;
  -ms-flex-preferred-size: 25%;
      flex-basis: 25%;
}

.widget-5-col {
  width: 20%;
  -ms-flex-preferred-size: 20%;
      flex-basis: 20%;
}

.widget-6-col {
  width: 16.6%;
  -ms-flex-preferred-size: 16.6%;
      flex-basis: 16.6%;
}

.widget-7-col {
  width: 14.28%;
  -ms-flex-preferred-size: 14.28%;
      flex-basis: 14.28%;
}

.widget-8-col {
  width: 12.5%;
  -ms-flex-preferred-size: 12.5%;
      flex-basis: 12.5%;
}

.widget-9-col {
  width: 11.1%;
  -ms-flex-preferred-size: 11.1%;
      flex-basis: 11.1%;
}

.widget-10-col {
  width: 10%;
  -ms-flex-preferred-size: 10%;
      flex-basis: 10%;
}

/*--------------------------------------------------------------
# Social links widget
--------------------------------------------------------------*/
.brand-social-links ul {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  margin:0;
	padding:0;
  font-size: 16px;
}

.brand-social-links.left ul {
  -ms-flex-pack: left;
  justify-content: left;
}

.brand-social-links.center ul {
  -ms-flex-pack: center;
  justify-content: center;
}

.brand-social-links.right ul {
  -ms-flex-pack: right;
  justify-content: right;
}

.brand-social-links ul > li {
  width: 40px;
  margin: 0 0.5em 0.5em 0;
  height: 40px;
	border: 0 !important;
	padding: 0 !important;
	list-style-type: none;
}

.brand-social-links.right li {
  margin-left: 0.5em;
}

.brand-social-links li:last-child,
.brand-social-links.right li {
  margin-right: 0;
}

.brand-social-links a {
  width: 100%;
  height: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 1px solid;
	text-decoration: none;
}

.brand-social-links.circle a {
  border-radius: 100%;
}

.brand-social-links.none a {
  border: 0;
}
