.fg-body {
  position: relative;
}

.fg-card {
  position: absolute;
  -webkit-transform-origin: 50% 0%;
  -moz-transform-origin: 50% 0%;
  -o-transform-origin: 50% 0%;
  transform-origin: 50% 0%;
  display: block;
  opacity: 1;
}

.fg-card.animate {
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.fg-card.active {
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}

.fg-card.active.top {
  -webkit-transform-origin: 50% 0%;
  -moz-transform-origin: 50% 0%;
  -o-transform-origin: 50% 0%;
  transform-origin: 50% 0%;
}

.fg-card.active.left {
  -webkit-transform-origin: 0% 50%;
  -moz-transform-origin: 0% 50%;
  -o-transform-origin: 0% 50%;
  transform-origin: 0% 50%;
}

.fg-card.active.right {
  -webkit-transform-origin: 100% 50%;
  -moz-transform-origin: 100% 50%;
  -o-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
}

.fg-card img{
  display: block; 
}

.fg-card.fg-flipping {
  -o-transform: rotateX(360deg) !important;
  -webkit-transform: rotateX(360deg) !important;
  -moz-transform: rotateX(360deg) !important;
  transform: rotateX(360deg) !important;
  opacity: 0;
}

.fg-card.fg-flipping.top {
  -o-transform: rotateX(-180deg) !important;
  -webkit-transform: rotateX(-180deg) !important;
  -moz-transform: rotateX(-180deg) !important;
  transform: rotateX(-180deg) !important;
  opacity: 0;
}

.fg-card.fg-flipping.left {
  -o-transform: rotateY(-180deg) !important;
  -webkit-transform: rotateY(-180deg) !important;
  -moz-transform: rotateY(-180deg) !important;
  transform: rotateY(-180deg) !important;
  opacity: 0;
}

.fg-card.fg-flipping.right {
  -o-transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
  -moz-transform: rotateY(180deg) !important;
  transform: rotateY(180deg) !important;
  opacity: 0;
}

.fg-caption {
  position: absolute;  
  bottom: 0%;
  left: 0%;
  z-index: 50;  
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  padding: 4px 16px 2px;
  background-color: rgba(11, 16, 43, 0.4);
}

.btn {
  display: inline-block;
}

.prev, .next {
  width: 33px;
  height: 33px;
  background: rgba(8, 21, 85, 0.4);
  cursor: pointer;
  display: inline-block;
  -webkit-border-radius: 28px;
  -moz-border-radius: 28px;
  border-radius: 28px;
  text-align: center;
}

.prev img {
  margin-left: -3px; 
}

.next {
  margin-left: 20px;
}

.page-container {
  margin: auto;
  position: relative;
}

.gallery {
  width: 500px;
  height: 200px;
  margin: 80px auto 90px;
  position: relative;
}
 
.prev_next {
  float: left;
  margin-left: 30px;
  margin-top: -20px;
}
.fg-card, .fg-card > img {
   width: 100%;
   border-radius: 10px;
   box-shadow: 0px 0 20px rgba(27, 47, 69, 0.1);
}
@media screen and (max-width: 1199px) {
      .gallery { width:450px;  }
}
@media screen and (max-width: 991px) {
      .gallery { margin: 20px auto 90px; }
}
@media screen and (max-width: 767px) { 
       .gallery { margin: 20px auto 40px; }
  .fg-caption { 
    top: 40%;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    position: relative;
  }
  .prev_next {
    margin-left: 10px;
    margin-top: 0;
  }
}

@media screen and (min-width: 415px)and (max-width: 767px) {
   
}
@media screen and  (max-width: 500px) {
    .gallery {width: 100%;  } 
}
@media screen and  (max-width: 414px) {
    .gallery { margin: 20px auto 10px;} 
}