@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'feathericons';
  src: url("../fonts/feathericons/feathericons.eot?-8is7zf");
  src: url("../fonts/feathericons/feathericons.eot?#iefix-8is7zf") format("embedded-opentype"), url("../fonts/feathericons/feathericons.woff?-8is7zf") format("woff"), url("../fonts/feathericons/feathericons.ttf?-8is7zf") format("truetype"), url("../fonts/feathericons/feathericons.svg?-8is7zf#feathericons") format("svg");
}
.grid {
  position: relative;
  overflow: hidden;
  list-style: none;
  text-align: center;
}

figure {
  position: relative;
  overflow: hidden;
  /* width: 500px; */
  text-align: center;
  cursor: pointer;
}
@media screen and (max-width: 50em) {
  figure {
    display: inline-block;
    float: none;
    margin: 10px auto;
    width: 100%;
  }
}
figure img {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  opacity: 0.8;
  top:-68px;
}
@media (min-width: 475px) {
	figure img {
	  top:-37px;
	}
}
@media (min-width: 680px) {
	figure img {
	  top:-30px;
	}
}
@media (min-width: 992px) {
	figure img {
	  top:0px;
	}
}
figure figcaption {
  color: #fff;
  /*text-transform: uppercase;*/
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
figure figcaption:after {
  pointer-events: none;
}
figure figcaption:before {
  pointer-events: none;
}
figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}
figure h2 {
  word-spacing: -0.15em;
  font-weight: 300;
  margin: 0;
  font-size: 30px;
}
figure h2 span {
  font-weight: 800;
  margin: 0;
}
figure p {
  margin: 0;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 350;
  font-size: 18px;
  text-align: left;
}

.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

figure.effect-ruby {
  /* background-color: #17819c; */
}
figure.effect-ruby figcaption {
  padding: 0 1.2em;
  /* width: 80%; */
}
@media (min-width: 768px) {
	figure.effect-ruby figcaption {
	  padding: 0 2em;
	  /* width: 80%; */
	}
}
@media (min-width: 992px) {
	figure.effect-ruby figcaption {
	  padding: 0 0.5em;
	}
}
@media (min-width: 1200px) {
	figure.effect-ruby figcaption {
	  padding: 0 1.3em;
	}
}
@media (min-width: 1500px) {
	figure.effect-ruby figcaption {
	  padding: 0 1.5em;
	}
}
figure.effect-ruby:hover{
	background-color: #000000;
	opacity:1;
}
figure.effect-ruby img {
  opacity: 0.7;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: scale(1.15);
  transform: scale(1.15);
}
figure.effect-ruby:hover img {
  opacity: 0.5;
  -webkit-transform: scale(1);
  transform: scale(1);
}
figure.effect-ruby h2 {
  letter-spacing:3px;
  margin-top: 7%;
  -webkit-transition: -webkit-transform 0.4s;
  transition: transform 0.4s;
  -webkit-transform: translate3d(0, 20px, 0);
  transform: translate3d(0, 50px, 0);
  font-size:20px;
  font-weight:500;
}

@media (min-width: 475px) {
	figure.effect-ruby h2 {
		letter-spacing:5px;
		font-size:25px;
		margin-top: 10%;
	}
}

@media (min-width: 680px) {
	figure.effect-ruby h2 {
		line-height:30px;
		letter-spacing:5px;
		font-size:26px;
		margin-top: 18%;
	}
}

@media (min-width: 1200px) {
	figure.effect-ruby h2 {
		line-height:40px;
		letter-spacing:5px;
		font-size:30px;
		margin-top: 20%;
	}
}


figure.effect-ruby p {
  line-height:1.5em;
  color: #fff;
  padding: 0.8em;
  border: 1.5px solid #fff;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0, 20px, 0) scale(1.1);
  transform: translate3d(0, 20px, 0) scale(1.1);
  font-size:10.5px;
  margin: 1em 0 0;
}

@media (min-width: 475px) {
	figure.effect-ruby p {
		line-height:1.8em;
		padding:0.5em;
		font-size:15px;
		margin: 1.5em 0 0;
	}
}
@media (min-width: 680px) {
	figure.effect-ruby p {
		line-height:1.8em;
		padding:1em;
		font-size:16px;
		margin: 2em 0 0;
	}
}
@media (min-width: 992px) {
	figure.effect-ruby p {
		line-height:2em;
		padding: 0.5em;
		margin: 1.2em 0 0;
		font-size:14px;
	}
}
@media (min-width: 1200px) {
	figure.effect-ruby p {
		margin: 1.5em 0 0;
		line-height:2em;
		font-size:16.2px;
	}
}
@media (min-width: 1500px) {
	figure.effect-ruby p {
		margin: 2em 0 0;
		line-height:2em;
		font-size:17.2px;
	}
}

figure.effect-ruby:hover h2 {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
figure.effect-ruby:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}

