/* use in navbar-banner.php */

figure.snip-line {
  font-family: 'Kanit', 'sans-serif';
  position: relative;
  overflow: hidden;
  margin: 0px;
  min-width: 230px;
  max-width: 315px;
  width: 100%;
  color: #fff;
  text-align: center;
  font-size: 22px;
  background-color: #000;
}

figure.snip-line *,
figure.snip-line *:before,
figure.snip-line *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.55s ease;
  transition: all 0.55s ease;
}

figure.snip-line img {
  max-width: 100%;
  backface-visibility: hidden;
  vertical-align: top;
  opacity: 0.9;
}

figure.snip-line .title {
  position: absolute;
  top: 58%;
  left: 25px;
  padding: 5px 10px 10px;
}

figure.snip-line .title:before,
figure.snip-line .title:after {
  height: 2px;
  width: 400px;
  position: absolute;
  content: '';
  background-color: #fff;
}

figure.snip-line .title:before {
  top: 0;
  left: 10px;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}

figure.snip-line .title:after {
  bottom: 0;
  right: 10px;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}

figure.snip-line .title div:before,
figure.snip-line .title div:after {
  width: 2px;
  height: 300px;
  position: absolute;
  content: '';
  background-color: #fff;
}

figure.snip-line .title div:before {
  top: 10px;
  right: 0;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
}

figure.snip-line .title div:after {
  bottom: 10px;
  left: 0;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
}

figure.snip-line h2,
figure.snip-line h4 {
  margin: 0;
  text-transform: uppercase;
}

figure.snip-line h2 {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
}

figure.snip-line h4 {
  display: block;
  font-weight: 700;
  font-size: 15px;
  background-color: #fff;
  padding: 5px 10px;
  color: #e64f70;
}

figure.snip-line figcaption {
  position: absolute;
  bottom: 42%;
  left: 25px;
  text-align: left;
  opacity: 0;
  padding: 5px 60px 5px 10px;
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 1.5px;
}

figure.snip-line figcaption p {
  margin: 0;
}

figure.snip-line a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

figure.snip-line:hover img,
figure.snip-line.hover img {
  zoom: 1;
  filter: alpha(opacity=35);
  -webkit-opacity: 0.35;
  opacity: 0.35;
}

figure.snip-line:hover .title:before,
figure.snip-line.hover .title:before,
figure.snip-line:hover .title:after,
figure.snip-line.hover .title:after,
figure.snip-line:hover .title div:before,
figure.snip-line.hover .title div:before,
figure.snip-line:hover .title div:after,
figure.snip-line.hover .title div:after {
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

figure.snip-line:hover .title:before,
figure.snip-line.hover .title:before,
figure.snip-line:hover .title:after,
figure.snip-line.hover .title:after {
  -webkit-transition-delay: 0.15s;
  transition-delay: 0.15s;
}

figure.snip-line:hover figcaption,
figure.snip-line.hover figcaption {
  opacity: 1;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

/* ---------------- Responsive ----------------- */
@media only screen and (max-width: 320px) {
  figure.snip-line h2 {
    font-size: 12px;
  }
  
  figure.snip-line h4 {
    font-size: 13px;
  }
  
  figure.snip-line figcaption {
    font-size: 13px;
  }
}