
.cm_flip_card_gallery {
  overflow: hidden;
  padding-top: 4%;
  padding-bottom: 4%;
}

.cm_flip_card_gallery .rotating-boxes-item {
  position: relative;
  width: 100%;
}

.cm_flip_card_gallery .rotating-boxes-item-cover, 
.cm_flip_card_gallery .rotating-boxes-item-content {
  min-height: 225px;
  padding: 2em 1.8em;
  text-align: center;
  border: 1px solid #C4C0BB;
  text-decoration: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #fff none repeat scroll 0 0;
  position: relative;
  transform: rotateY(0deg);
  transition: transform 0.3s ease 0s;
  box-sizing: content-box;
  line-height: normal;
}

.cm_flip_card_gallery .rotating-boxes-item-cover {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
} 
.cm_flip_card_gallery .rotating-boxes-item-content {
  overflow: hidden;
  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  background: -moz-linear-gradient(left,#F06E14,#F03C14);
  background: -webkit-linear-gradient(left,#F06E14,#F03C14);
  background: -o-linear-gradient(left,#F06E14,#F03C14);
  background: -ms-linear-gradient(left,#F06E14,#F03C14);
  background: linear-gradient(to right,#F06E14,#F03C14);
  -pie-background: linear-gradient(left,#F06E14,#F03C14);
  color: #fff;
}

.cm_flip_card_gallery .rotating-boxes-item-cover .image_container {
  max-width: 160px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.cm_flip_card_gallery .rotating-boxes-item h4 {
  line-height: 1.3;
}
.cm_flip_card_gallery .rotating-boxes-item p {
  text-decoration: none;
}
.cm_flip_card_gallery .rotating-boxes-item-content a.link {
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
}
.cm_flip_card_gallery .rotating-boxes-item-content * {
  color: inherit;
}

.cm_flip_card_gallery .rotating-boxes-item:hover > .rotating-boxes-item-cover, 
.cm_flip_card_gallery .rotating-boxes-item:focus > .rotating-boxes-item-cover {
  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.cm_flip_card_gallery .rotating-boxes-item:hover > .rotating-boxes-item-content, 
.cm_flip_card_gallery .rotating-boxes-item:focus > .rotating-boxes-item-content {
  -ms-transform: rotateY(360deg);
  -webkit-transform: rotateY(360deg);
  -moz-transform: rotateY(360deg);
  -o-transform: rotateY(360deg);
  transform: rotateY(360deg);
}

@media (min-width: 768px) {

  .cm_flip_card_gallery .rotating-boxes-item {
    width: 28.20513%;
    margin-right: 7.69231%;
    margin-top: 4%;
    float: left;
  }
  .cm_flip_card_gallery .rotating-boxes-item:nth-child(3n) {
    margin-right: 0;
  }
  .cm_flip_card_gallery .rotating-boxes-item:nth-child(-n + 3) {
    margin-top: 0;
  }
  .cm_flip_card_gallery .rotating-boxes-item:nth-child(3n + 1) {
    clear: left;
  }

}

@media (max-width: 767px) {
  .cm_flip_card_gallery .rotating-boxes-item:not(:first-child) {
    margin-top: 7.69231%;
  }
}