/* Box */
.exq-gallery-box {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  float: left;
}

.exq-gallery-box .heading {
  position: absolute;
  z-index: 1;
  bottom: 0;
  margin-bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.exq-gallery-box img {
  position: absolute;
  height: 65%;
  width: auto;
  top: 0;
  margin-top: 5%;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
}

.exq-gallery-box .heading h4 {
  color: black;
  font-size: 40px;
  text-align: center;
}

.exq-gallery-box:before {
  content: "";
  display: block;
  padding-bottom: 85%;
}

{#.exq-gallery-image {
  position: relative;
  margin: auto;
  width: 100%;
  height: 100%;
  background-size: cover!important;
  background-repeat: no-repeat!important;
  background-position: center!important;
  transition: 0.3s ease;
  z-index: 1;
	padding: 50px;
}#}

.exq-gallery-image {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background-size: cover!important;
  background-repeat: no-repeat!important;
  background-position: center!important;
  transition: 0.3s ease;
  z-index: 1;
}

  .exq-gallery-section-v2 .exq-gallery-box:hover .exq-gallery-image {
    transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
  }

.exq-gallery-caption {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  opacity: 0;
  z-index: 3;
  -webkit-transition: 0.3s ease;
  -o-transition: 0.3s ease;
  transition: 0.3s ease;
  -webkit-transition-delay: 0.1s;
       -o-transition-delay: 0.1s;
          transition-delay: 0.1s;
}

.exq-gallery-box .exq-gallery-caption p {
  color: white;
  text-align: center;
  font-size: 20px;
  width: 80%;
  margin: auto;
}
  .exq-gallery-box:hover .exq-gallery-caption {
    opacity: 1;
  }

.exq-gallery-caption > div {
  display: inline-block;
  width: 100%;
  padding: 20px;
}
.exq-gallery-box .page-center h4,
.exq-gallery-box .page-center p {
  color: black;
}

.exq-gallery-box .page-center p {
  font-size: 20px;
}

@media (max-width:768px) {
  .exq-gallery-box .exq-gallery-caption,
  .exq-gallery-box:hover .exq-gallery-caption {
/*     background: rgba(0,0,0,0.4);
    opacity: 1; */
  }
}


@media (min-width: 768px) {
	.exq-gallery-box:before {
		content: "";
		display: block;
		padding-bottom: 85%;
	}
	.exq-gallery-image {
		position: absolute;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		margin: auto;
		width: 100%;
		height: 100%;
		background-size: cover!important;
		background-repeat: no-repeat!important;
		background-position: center!important;
		transition: 0.3s ease;
		z-index: 1;
		padding: 50px;
	}   
}

@media (max-width: 1650px) {
  .exq-gallery-box .heading h4 {
    font-size: 30px;
  }
}

@media (max-width: 1200px) {
  .exq-gallery-box .heading h4 {
    font-size: 26px;
  }
}

@media (max-width: 1023px) {
  .exq-gallery-box .heading h4 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .exq-gallery-box .heading h4 {
    font-size: 25px;
  }
}



/* ===============
 * Layout
 * ============ */
@media (min-width:768px) {
  .exq-gallery-section-repeater {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}

/* 1 Col */
.exq-gallery-one-full .exq-gallery-image {
	padding: 20px;
}
.exq-gallery-one-full > .exq-gallery-box {
	flex-basis: 100%;
	width: 100%;
}
.exq-gallery-one-full > .exq-gallery-box:before {
	display: none;
}
.exq-gallery-one-full .exq-gallery-image {
	position: relative;
}
.exq-gallery-one-full .exq-gallery-caption {
	background: none;
	display: none;
}

@media (min-width: 768px) {
	.exq-gallery-one-full .exq-gallery-image {
		padding: 40px;
	}
}

/* 2 column */
@media (min-width:768px) {
  .exq-gallery-two-full > a {
    flex-basis: 50%;
    width: 50%;
  }
}

/* 3 column */
@media (min-width:768px) {
  .exq-gallery-three-full > a {
    flex-basis: 50%;
    width: 50%;
  }
}

@media (min-width: 1025px) {
  .exq-gallery-three-full > a {
    flex-basis: 33.333333%;
    width: 33.333333%;
  }
}


/* 3 column Box */
.exq-gallery-three-box > a {
  margin-bottom: 20px;
}
@media (min-width:768px) {
  .exq-gallery-three-box > a {
    flex-basis: 31%;
    width: 31%;
    margin: 0 1% 2%;
  }
}

/* 4 column */
@media (min-width:768px) {
  .exq-gallery-four-full > a {
    flex-basis: 50%;
    width: 50%;
  }
}
@media (min-width:992px) {
  .exq-gallery-four-full > a {
    flex-basis: 25%;
    width: 25%;
  }
}
@media (max-width: 400px) {
  .exq-gallery-box .heading {
    margin-bottom: 30px;
  }
  .exq-gallery-box .exq-gallery-caption p {
    font-size: 16px;
    width: 100%;
  }
}