/*
Submenu Gallery
Author:         Greg Chatzinikolaou (written for 4ty.gr)
Description:    A simple gallery styler for 4ty web pages. It basically styles image thumbnails with a link and links them to light box (if any)
Usage:          1. In CKEditor create a table, go to "Advanced/Stylesheet Classes" and give it the class "gallery".
                2. Then add the class of the effect you wish to have on your images (ie marley),
                   so now you should have 2 classes "gallery marley".
                3. Add the images you want and give them a link. (Images with no link will not be processed).
                4. Add the title in the "Advisory Title" field and a description if you wish in the "Alternative Text" field.
                That's it!
*/

/* Generic animations ========================================================== */
.animated {
  animation-fill-mode: both;
}

@keyframes flip {
  from {
    -webkit-transform: perspective(800px) rotate3d(0, 1, 0, -360deg);
    transform: perspective(800px) rotate3d(0, 1, 0, -360deg);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  40% {
    -webkit-transform: perspective(800px) translate3d(0, 0, 80px) rotate3d(0, 1, 0, -190deg);
    transform: perspective(800px) translate3d(0, 0, 80px) rotate3d(0, 1, 0, -190deg);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  50% {
    -webkit-transform: perspective(800px) translate3d(0, 0, 80px) rotate3d(0, 1, 0, -170deg);
    transform: perspective(800px) translate3d(0, 0, 80px) rotate3d(0, 1, 0, -170deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  80% {
    -webkit-transform: perspective(800px) scale3d(0.95, 0.95, 0.95);
    transform: perspective(800px) scale3d(0.95, 0.95, 0.95);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  to {
    -webkit-transform: perspective(800px);
    transform: perspective(800px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
}
.animated.flip {
  backface-visibility: visible;
}

@keyframes rubberBand {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes jello {
  from,
  11.1%,
  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  22.2% {
    -webkit-transform: skewX(-12.5deg) skewY(-12.5deg);
    transform: skewX(-12.5deg) skewY(-12.5deg);
  }

  33.3% {
    -webkit-transform: skewX(6.25deg) skewY(6.25deg);
    transform: skewX(6.25deg) skewY(6.25deg);
  }

  44.4% {
    -webkit-transform: skewX(-3.125deg) skewY(-3.125deg);
    transform: skewX(-3.125deg) skewY(-3.125deg);
  }

  55.5% {
    -webkit-transform: skewX(1.5625deg) skewY(1.5625deg);
    transform: skewX(1.5625deg) skewY(1.5625deg);
  }

  66.6% {
    -webkit-transform: skewX(-0.78125deg) skewY(-0.78125deg);
    transform: skewX(-0.78125deg) skewY(-0.78125deg);
  }

  77.7% {
    -webkit-transform: skewX(0.390625deg) skewY(0.390625deg);
    transform: skewX(0.390625deg) skewY(0.390625deg);
  }

  88.8% {
    -webkit-transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
    transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
  }
}

.jello {
  transform-origin: center;
}

@keyframes jackInTheBox {
  from {
    opacity: 0;
    -webkit-transform: scale(0.1) rotate(30deg);
    transform: scale(0.1) rotate(30deg);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }

  50% {
    -webkit-transform: rotate(-10deg);
    transform: rotate(-10deg);
  }

  70% {
    -webkit-transform: rotate(3deg);
    transform: rotate(3deg);
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
/* ============================================================================= */


/* Gallery custom tile sizes =================================================== */
#submenu-gallery .micro,
#submenu-gallery .nano,
#submenu-gallery .pico,
.submenu-gallery .micro,
.submenu-gallery .nano,
.submenu-gallery .pico {
  position: relative;
  padding-right: 15px;
  padding-right: 15px;
  min-height: 1px;
  float: left;
}

#submenu-gallery .micro,
.submenu-gallery .micro { width: 7.142857142857143%; }
#submenu-gallery .nano,
.submenu-gallery .nano { width: 6.25%; }
#submenu-gallery .pico,
.submenu-gallery .pico { width: 5.555555555555556%; }

/* ============================================================================= */

/* Submenu gallery ============================================================= */
#submenu-gallery,
.submenu-gallery {
  position: relative;
  font-size: 0;
}
#submenu-gallery .img-wrapper,
.submenu-gallery .img-wrapper {
  padding: 5px;
}

#submenu-gallery a,
.submenu-gallery a {
  display: inline-block;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  overflow: hidden;
}
#submenu-gallery:not(.smart-gallery) a img,
.submenu-gallery:not(.smart-gallery) a img {
  margin: auto;
  width: 100% !important;
  height: auto !important;
}

#submenu-gallery a h3,
#submenu-gallery a p,
.submenu-gallery a h3,
.submenu-gallery a p {
  position: absolute;
}

/*MARLEY*/
#submenu-gallery.marley a h3,
#submenu-gallery.marley a p,
.submenu-gallery.marley a h3,
.submenu-gallery.marley a p {
  color: white;
  text-align: right;
  margin: 0;
  padding: 0;
  max-width: 90%;
  transition: all 0.3s ease;
}
#submenu-gallery.marley a h3,
.submenu-gallery.marley a h3 {
  font-size: 24px;
  font-weight: bold;
  top: 30px;
  right: 20px;
  padding-bottom: 30px;
  border-bottom: 2px solid transparent;
  line-height: 100%;
}
#submenu-gallery.marley a p,
.submenu-gallery.marley a p {
  bottom: -200px;
  right: 20px;
  opacity: 0;
}

#submenu-gallery.marley.overlay a,
.submenu-gallery.marley.overlay a {
  background-color: #121212;
}
#submenu-gallery.marley.overlay a img,
.submenu-gallery.marley.overlay a img {
  transition: all 0.3s ease;
}
#submenu-gallery.marley.overlay a:hover img,
.submenu-gallery.marley.overlay a:hover img {
  opacity: 0.7;
}
#submenu-gallery.marley a:hover h3,
.submenu-gallery.marley a:hover h3 {
  top: 20px;
  padding-bottom: 10px;
  border-bottom-color: white;
}
#submenu-gallery.marley a:hover p,
.submenu-gallery.marley a:hover p {
  bottom: 20px;
  opacity: 1;
}

/* PRODUCTS - PINS */
#submenu-gallery.products a,
#submenu-gallery.pins a,
.submenu-gallery.products a,
.submenu-gallery.pins a {
  margin: 1%;
  min-height: 250px;
  width: 100%;
  background-color: #ffffff;
  transition: all 0.4s ease;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.4);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.4);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.4);
}
#submenu-gallery.products a:hover,
#submenu-gallery.pins a:hover,
.submenu-gallery.products a:hover,
.submenu-gallery.pins a:hover {
  text-decoration: none;
  -webkit-box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.51);
  -moz-box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.51);
  box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.51);
}
#submenu-gallery.products a img,
#submenu-gallery.pins a img,
.submenu-gallery.products a img,
.submenu-gallery.pins a img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
}
#submenu-gallery.products a:hover img,
#submenu-gallery.pins a:hover img,
.submenu-gallery.products a:hover img,
.submenu-gallery.pins a:hover img {
  -webkit-transform:scale(1.1);
	-moz-transform:scale(1.1);
	-ms-transform:scale(1.1);
	-o-transform:scale(1.1);
	transform:scale(1.1);
}
#submenu-gallery.products a h3,
#submenu-gallery.products a p,
#submenu-gallery.pins a h3,
#submenu-gallery.pins a p,
.submenu-gallery.products a h3,
.submenu-gallery.products a p,
.submenu-gallery.pins a h3,
.submenu-gallery.pins a p {
  position: relative;
  text-align: left;
  margin: 0;
  padding: 5px;
  max-width: 100%;
  line-height: 100%;
  background-color: #ffffff;
  transition: all 0.3s ease;
}
#submenu-gallery.products a h3,
#submenu-gallery.pins a h3,
.submenu-gallery.products a h3,
.submenu-gallery.pins a h3 {
  font-size: 14px;
  font-weight: bold;
  color: #5e5e5e;
}
#submenu-gallery.products a p,
#submenu-gallery.pins a p,
.submenu-gallery.products a p,
.submenu-gallery.pins a p {
  font-size: 12px;
  color: #5e5e5e;
}

/* PINS */
#submenu-gallery.pins .col-one,
#submenu-gallery.pins .col-two,
#submenu-gallery.pins .col-three,
.submenu-gallery.pins .col-one,
.submenu-gallery.pins .col-two,
.submenu-gallery.pins .col-three {
  padding: 0;
  margin: 0;
}

#submenu-gallery.pins a,
.submenu-gallery.pins a {
  min-height: 10px;
}
#submenu-gallery.pins a img,
.submenu-gallery.pins a img {
  margin: auto !important;
  transition: all 3s ease;
}

#submenu-gallery.pins a h3,
.submenu-gallery.pins a h3 {
  margin-top: 0;
  border-top: 1px solid #bcbcbc;
}
/* ============================================================================= */

/* Smart Gallery =============================================================== */
.submenu-gallery.smart-gallery .pic-container {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.submenu-gallery.smart-gallery a {
  display: block;
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.3s ease;
}
.smart-gallery a .contents-container {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  margin: 0;
  background-color: rgba(0,0,0,0.5);
  color: #ffffff;
  transition: all 0.3s ease;
}
.smart-gallery a .contents-container h3,
.smart-gallery a .contents-container p {
  display: block;
  position: relative;
}
.smart-gallery a .contents-container h3 { font-weight: bold; }
.submenu-gallery.smart-gallery h4 {
  display: block;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  margin: 0;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Hide the images of this gallery */
.submenu-gallery.smart-gallery a img {
  display: none;
}

/* Smart simple */
.smart-gallery.simple a .contents-container {
  opacity: 0;
  text-align: center;
}
.smart-gallery.simple a .contents-container h3 { margin-top: 15%; }
.smart-gallery.simple a:hover .contents-container { opacity: 1; }
.smart-gallery.simple a:hover h4 { opacity: 0; }

/* Smart zoom */
.smart-gallery.zoom a:hover { transform: scale(1.2); }
.smart-gallery.zoom a .contents-container {
  transform: scale(1.1);
  opacity: 0;
}
.smart-gallery.zoom a:hover .contents-container {
  transform: scale(0.8);
  opacity: 1;
}
.smart-gallery.zoom a:hover h4 { opacity: 0; }

/* Smart slide */
.smart-gallery.slide a { width: 110%; }
.smart-gallery.slide a .contents-container { width: 93%; }
.smart-gallery.slide a .contents-container {
  transform: translateX(100px);
  opacity: 0;
}
.smart-gallery.slide a:hover { transform: translateX(-20px); }
.smart-gallery.slide a:hover h4 {
  transform: translateX(100px);
  opacity: 0;
}
.smart-gallery.slide a:hover .contents-container {
  transform: translateX(20px);
  opacity: 1;
}

/* Smart blur */
.smart-gallery.blur img {
  display: block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 140%;
  width: auto;
  min-width: 101%;
  opacity: 1;
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  transition: all 0.3s ease;
}
.smart-gallery.blur a .contents-container h3 { margin-top: 15%; }
.smart-gallery.blur a .contents-container {
  opacity: 0;
  text-align: center;
}
.smart-gallery.blur a:hover img {
  -webkit-filter: blur(5px);
	filter: blur(5px);
}
.smart-gallery.blur a:hover h4 { opacity: 0; }
.smart-gallery.blur a:hover .contents-container { opacity: 1; }

/* Smart reveal */
.smart-gallery.reveal h4 { display: none; }
.smart-gallery.reveal a .contents-container {
  background: #1b1b1b;
  height: 100%;
}
.smart-gallery.reveal a .contents-container>h3 {
  margin: 0;
  height: 36px;
  overflow: hidden;
}
/* reveal up */
.smart-gallery.reveal.up a .contents-container {
  top: calc(100% - 56px);
  bottom: auto;
}
.smart-gallery.reveal.up a:hover .contents-container { top: 0; }
.smart-gallery.reveal.up a:hover { background-position-y: -100px; }

/* reveal down */
.smart-gallery.reveal.down h3 {
  position: absolute;
  bottom: 10px;
  top: auto;
}
.smart-gallery.reveal.down a .contents-container {
  bottom: calc(100% - 56px);
  top: auto;
}
.smart-gallery.reveal.down a:hover .contents-container { bottom: 0; }
.smart-gallery.reveal.down a:hover { background-position-y: 100px; }


/* Smart gapless */
.smart-gallery.gapless .img-wrapper { padding: 0; }

/* Smart bordered */
.smart-gallery.bordered .pic-container { border: 1px solid #2d2d2d38; }
.smart-gallery.wide-bordered .pic-container { border: 5px solid #2d2d2d38; }

/* Colors */
.smart-gallery.red a .contents-container { background-color: rgba(180, 55, 42, 0.8); }
.smart-gallery.green a .contents-container { background-color: rgba(63, 131, 31, 0.8); }
.smart-gallery.olive a .contents-container { background-color: rgba(108, 131, 31, 0.8); }
.smart-gallery.yellow a .contents-container { background-color: rgba(149, 131, 13, 0.8); }
.smart-gallery.blue a .contents-container { background-color: rgba(28, 43, 124, 0.8); }
.smart-gallery.navy a .contents-container { background-color: rgba(19, 39, 78, 0.8); }
.smart-gallery.purple a .contents-container { background-color: rgba(64, 19, 78, 0.8); }
.smart-gallery.fucsia a .contents-container { background-color: rgba(78, 19, 63, 0.8); }
.smart-gallery.turquoise a .contents-container { background-color: rgba(23, 69, 61, 0.8); }
.smart-gallery.orange a .contents-container { background-color: rgba(172, 94, 44, 0.8); }
.smart-gallery.grey a .contents-container { background-color: rgba(20, 20, 20, 0.8); }

.smart-gallery.red:not(.reveal) h4 { color: #e74c3c; }
.smart-gallery.green:not(.reveal) h4 { color: #27ae60; }
.smart-gallery.olive:not(.reveal) h4 { color: rgba(108, 131, 31, 1); }
.smart-gallery.yellow:not(.reveal) h4 { color: #f39c12; }
.smart-gallery.blue:not(.reveal) h4 { color: #2980b9; }
.smart-gallery.navy:not(.reveal) h4 { color: rgba(19, 39, 78, 1); }
.smart-gallery.purple:not(.reveal) h4 { color: #8e44ad; }
.smart-gallery.fucsia:not(.reveal) h4 { color: rgb(248, 21, 199); }
.smart-gallery.turquoise:not(.reveal) h4 { color: #16a085; }
.smart-gallery.orange:not(.reveal) h4 { color: #e67e22; }
.smart-gallery.grey:not(.reveal) h4 { color: #2d2d2d; }

.smart-gallery.red .pic-container { border-color: #e74c3c; }
.smart-gallery.green .pic-container { border-color: #27ae60; }
.smart-gallery.olive .pic-container { border-color: rgba(108, 131, 31, 1); }
.smart-gallery.yellow .pic-container { border-color: #f39c12; }
.smart-gallery.blue .pic-container { border-color: #2980b9; }
.smart-gallery.navy .pic-container { border-color: rgba(19, 39, 78, 1); }
.smart-gallery.purple .pic-container { border-color: #8e44ad; }
.smart-gallery.fucsia .pic-container { border-color: rgb(248, 21, 199); }
.smart-gallery.turquoise .pic-container { border-color: #16a085; }
.smart-gallery.orange .pic-container { border-color: #e67e22; }
.smart-gallery.grey .pic-container { border-color: #2d2d2d; }
.smart-gallery.white .pic-container { border-color: #ffffff; }

.smart-gallery.reveal.red a .contents-container { background-color: #e74c3c; }
.smart-gallery.reveal.green a .contents-container { background-color: #27ae60; }
.smart-gallery.reveal.olive a .contents-container { background-color: rgba(108, 131, 31, 1); }
.smart-gallery.reveal.yellow a .contents-container { background-color: #f39c12; }
.smart-gallery.reveal.blue a .contents-container { background-color: #2980b9; }
.smart-gallery.reveal.navy a .contents-container { background-color: rgba(19, 39, 78, 1); }
.smart-gallery.reveal.purple a .contents-container { background-color: #8e44ad; }
.smart-gallery.reveal.fucsia a .contents-container { background-color: rgba(78, 19, 63, 1); }
.smart-gallery.reveal.turquoise a .contents-container { background-color: #16a085; }
.smart-gallery.reveal.orange a .contents-container { background-color: #e67e22; }
.smart-gallery.reveal.grey a .contents-container { background-color: #2d2d2d; }
/* ============================================================================= */

/* Slides gallery ============================================================== */
#submenu-gallery.slides .img-box,
.submenu-gallery.slides .img-box,
#submenu-gallery.slides .text-box,
.submenu-gallery.slides .text-box {
  position: relative;
  vertical-align: top;
  font-size: 16px;
}

#submenu-gallery.slides .img-box,
.submenu-gallery.slides .img-box {
  padding-left: 0;
  padding-right: 0;
}

#submenu-gallery.slides .img-box img,
.submenu-gallery.slides .img-box img {
  width: 100% !important;
  height: auto !important;
}

#submenu-gallery.slides .text-box p:nth-child(1),
.submenu-gallery.slides .text-box p:nth-child(1) {
  margin-top: 0;
}

#submenu-gallery.slides .img-box .next-slide,
#submenu-gallery.slides .img-box .prev-slide,
.submenu-gallery.slides .img-box .next-slide,
.submenu-gallery.slides .img-box .prev-slide {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  margin: auto;
  font-size: 23px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: rgba(256,256,256,0.6);
  cursor: pointer;
}
#submenu-gallery.slides .img-box .prev-slide,
.submenu-gallery.slides .img-box .prev-slide {
  left: 0;
  right: auto;
}

/* Thumbnails */
.thumbs-box {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  background-color: rgba(0,0,0,0.5);
  overflow: auto;
  z-index: 99;
}
.thumbs-container {
  display: inline-block;
  width: auto;
  white-space: nowrap;
}
.thumbs-box a {
  display: inline-block;
  width: 70px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbs-box a:hover,
.thumbs-box a.current-active {
  border: 2px solid rgba(256,256,256,0.5);
  transform: scale(1.1);
  z-index: 99;
}


/* Make the side description of the slides as height as the image it shows */
@media (min-width: 992px) {
  #submenu-gallery.slides,
  .submenu-gallery.slides {
    position: relative;
  }
  #submenu-gallery.slides .text-box,
  .submenu-gallery.slides .text-box {
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    overflow: auto;
  }

  #submenu-gallery.slides.description-left .text-box,
  .submenu-gallery.slides.description-left .text-box {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    overflow: auto;
  }
  #submenu-gallery.slides.description-bottom .text-box,
  .submenu-gallery.slides.description-bottom .text-box {
    position: relative;
    width: 100%
  }
}

/* Hide all rows except the slide-gallery-main */
#submenu-gallery.slides tbody>tr:not(.slide-gallery-main),
.submenu-gallery.slides tbody>tr:not(.slide-gallery-main) {
  display: none;
}

/* Hide all slides excetpt the active one */
#submenu-gallery .slide-gallery-main div[class^='slide-']:not(.active),
.submenu-gallery .slide-gallery-main div[class^='slide-']:not(.active) {
  display: none;
}
/* ============================================================================= */

/* Slider gallery ============================================================== */
.submenu-gallery.slider .slider-wrapper {
  width: 100%;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  font-size: 0px;
  left: 0px;
  overflow: hidden;
  transition: all 1s ease;
}
.submenu-gallery.slider a {
  white-space: normal;
  display: inline-block;
  margin: auto;
  padding: 0;
  text-align: center;
  background-color: #ededed;
  font-size: 12px;
  transition: all 0.5s ease;
}
.submenu-gallery.slider a>img {
  width: 100% !important;
  height: auto !important;
}
.submenu-gallery.slider a>.title {
  display: block;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  padding: 15px;
  margin: auto;
  color: #ffffff;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 1);
  font-size: 20px;
}
.submenu-gallery.slider .slider-controls {
  display: block;
  position: absolute;
  font-size: 40px;
  cursor: pointer;
  top: auto;
  bottom: 40%;
  left: auto;
  right: auto;
  background-color: rgba(255,255,255,0.8);
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 50%;
  opacity: 0.5;

  transition: all 0.3s ease;
  z-index: 99;
}

.submenu-gallery.slider .slider-controls span.glyphicon {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: 0;
  right: 0;
}

.submenu-gallery.slider .slider-controls:hover { opacity: 1; }

.submenu-gallery.slider .slider-controls.prev {
  left: 15px;
}
.submenu-gallery.slider .slider-controls.next {
  right: 15px;
}
/* ============================================================================= */

/* GPics gallery =============================================================== */
#submenu-gallery.gpics .img-wrapper,
.submenu-gallery.gpics .img-wrapper {
  position: static;
  display: inline-block;
  float: none;
  transition: all 0.3s ease;
}

#submenu-gallery.gpics a,
.submenu-gallery.gpics a {
  text-decoration: none;
  color: #252525;
}
#submenu-gallery.gpics h3,
.submenu-gallery.gpics h3,
#submenu-gallery.gpics p,
.submenu-gallery.gpics p {
  display: block;
  position: relative;
  width: 100%;
  height:auto;
}

.submenu-gallery.gpics .img-wrapper>a>h3,
#submenu-gallery.gpics .img-wrapper>a>h3,
#submenu-gallery.gpics .img-wrapper>a>p,
.submenu-gallery.gpics .img-wrapper>a>p {
  display: none;
}

#submenu-gallery.gpics .contents-container,
.submenu-gallery.gpics .contents-container {
  padding: 15px;
  background-color: #ffffff;
  height: 80px;
}

#submenu-gallery.gpics .contents-container h3,
.submenu-gallery.gpics .contents-container h3 {
  margin-top: 0;
  margin-bottom: 5px;
}
#submenu-gallery.gpics .contents-container p,
.submenu-gallery.gpics .contents-container p {
  margin-top: 5px;
}

#submenu-gallery.gpics .contents-container::after,
.submenu-gallery.gpics .contents-container::after {
  content: '';
  display: block;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0+0,1+100 */
  background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}

.submenu-gallery.gpics.title-description .img-wrapper>a>h3,
#submenu-gallery.gpics.title-description .img-wrapper>a>h3,
#submenu-gallery.gpics.title-description .img-wrapper>a>p,
.submenu-gallery.gpics.title-description .img-wrapper>a>p {
  display: block;
}
.submenu-gallery.gpics.title-description .img-wrapper>a>h3,
#submenu-gallery.gpics.title-description .img-wrapper>a>h3 {
  font-weight: bold;
  margin-bottom: 0;
}
#submenu-gallery.gpics.title-description .img-wrapper>a>p,
.submenu-gallery.gpics.title-description .img-wrapper>a>p {
  margin-top: 10px;
}

#submenu-gallery.gpics .btn.more,
.submenu-gallery.gpics .btn.more {
  display: block;
  position: relative;
  width: 100%;
  background-color: #ffffff;
  color: #252525;
  border: 1px solid #545454;
  border-radius: 0;
  transition: all 0.3s ease;
}
#submenu-gallery.gpics .btn.more:hover,
.submenu-gallery.gpics .btn.more:hover {
  background-color: #252525;
  color: #ffffff;
}
#submenu-gallery.gpics .pChildren,
.submenu-gallery.gpics .pChildren {
  display: block;
  position: absolute;
  top: inherit;
  bottom: auto;
  left: 0;
  right: 0;
  width: auto;
  height: 0;
  margin-top: -50px;
  padding: 0;
  font-size: 0;
  color: #d5dfe9;
  overflow: hidden;
  opacity: 0;
  background-color: #252525;
  transition: all 0.3s ease;
}
#submenu-gallery.gpics .pChildren h3,
.submenu-gallery.gpics .pChildren h3,
#submenu-gallery.gpics .pChildren p,
.submenu-gallery.gpics .pChildren p {
  display: block;
}

#submenu-gallery.gpics .img-wrapper.expand,
.submenu-gallery.gpics .img-wrapper.expand {
  margin-bottom: 510px;
}
#submenu-gallery.gpics .pChildren.expand,
.submenu-gallery.gpics .pChildren.expand {
  padding: 15px;
  padding-top: 60px;
  height: 500px;
  margin-top: 10px;
  overflow: hidden;
  opacity: 1;
}
#submenu-gallery.gpics.toggle-button .pChildren.expand,
.submenu-gallery.gpics.toggle-button .pChildren.expand {
  margin-top: 40px;
}

#submenu-gallery.gpics .pChildren.expand .full-image,
.submenu-gallery.gpics .pChildren.expand .full-image {
  display: inline-block;
  width: 60%;
  height: calc(100% + 45px);
  margin-top: -45px;
  border-right: 1px solid #575757;
}
#submenu-gallery.gpics .pChildren.expand .full-image img,
.submenu-gallery.gpics .pChildren.expand .full-image img {
  display: block;
  height: auto !important;
  max-height: 100%;
  width: auto !important;
  max-width: 100%;
  margin: auto;
}
#submenu-gallery.gpics .pChildren.expand .contents,
.submenu-gallery.gpics .pChildren.expand .contents {
  display: inline-block;
  width: 35%;
  height: auto;
  margin-left: 15px;
  vertical-align: top;
  color: #dadada;
  font-size: 16px;
  float: right;
}
#submenu-gallery.gpics .pChildren.expand .contents p,
.submenu-gallery.gpics .pChildren.expand .contents p {
  height: auto;
}
#submenu-gallery.gpics .pChildren.expand .contents h3,
.submenu-gallery.gpics .pChildren.expand .contents h3 {
  font-size: 1.5em;
}

#submenu-gallery.gpics .pChildren.expand .close-btn,
.submenu-gallery.gpics .pChildren.expand .close-btn {
  display: block;
  position: relative;
  color: #ffffff;
  margin-top: -40px;
  float: right;
  z-index: 999;
  font-size: 20px;
  cursor: pointer;
}

#submenu-gallery.gpics.dark .contents-container,
.submenu-gallery.gpics.dark .contents-container {
  background-color: #252525;
}
#submenu-gallery.gpics.dark a,
.submenu-gallery.gpics.dark a {
  text-decoration: none;
  color: #ffffff;
}

/* Mobile layout */
@media (max-width: 760px) {
  #submenu-gallery.gpics .pChildren.expand,
  .submenu-gallery.gpics .pChildren.expand {
    height: 600px;
  }
  #submenu-gallery.gpics .img-wrapper.expand,
  .submenu-gallery.gpics .img-wrapper.expand {
    margin-bottom: 620px;
  }
  #submenu-gallery.gpics .pChildren.expand .full-image,
  .submenu-gallery.gpics .pChildren.expand .full-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0;
    border-right: 0;
  }
  #submenu-gallery.gpics .pChildren.expand .contents,
  .submenu-gallery.gpics .pChildren.expand .contents {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 15px;
    margin-left: 0;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
  }
}
/* ============================================================================= */

/* Sidebar image =============================================================== */
.bg-image {
  background-repeat: no-repeat;
  background-position: top left;
}
.bg-repeat {
  background-repeat: repeat;
  background-size: auto;
}
.bg-center-responsive {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}
.bg-cover-responsive {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.bg-fixed-responsive {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* ============================================================================= */

/* Header image ================================================================ */
/*#header-image { display: none; }*/
.cycle-wrap.with-header-image {
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* ============================================================================= */

/* Panels ====================================================================== */
.panels th {
  position: relative;
  cursor: pointer;
  padding: 10px;
}
.panels td {
  padding: 0 10px;
}
.panels td .panel-content { display: none; }

/* First opened */
.panels.first-open tr:nth-child(2) .panel-content { display: block; }

/* Bordered */
.panels.bordered th { display: block; }
.panels.bordered tr:nth-child(odd) {
  border-bottom: 1px solid #959595;
}
.panels.bordered tr:nth-child(odd) th {
  padding-bottom: 5px;
}

/* Arrows */
.panels.arrows th {
  padding-right: 40px;
}
.panels.arrows th .arrow {
  position: absolute;
  top: 25%;
  bottom: auto;
  left: auto;
  right: 10px;
  transition: all 0.3s ease;
}
.panels.arrows th.active .arrow {
  transform: rotateZ(180deg);
}

/* Plus-minus */
.panels.plus-minus th {
  padding-left: 30px;
}
.panels.plus-minus th .plus-minus {
  position: absolute;
  top: 25%;
  bottom: auto;
  right: auto;
  left: 10px;
}
/* ============================================================================= */

/* Tabs ======================================================================== */
.tabs>tbody {
  display: none;
}

/* Vertical */
.tabs.vertical .tabs-container>li {
  display: block;
  width: 100%;
  float: none;
}
.tabs.vertical.classic .tabs-container {
  border-bottom: 0;
}
.tabs.vertical.left.classic .nav>li a { border-right-color: #dddddd; }
.tabs.vertical.left.classic .nav-tabs>li.active a,
.tabs.vertical.left.classic .nav-tabs>li.active a:hover,
.tabs.vertical.left.classic .nav-tabs>li.active a:focus {
  border-bottom-color: #dddddd;
  border-right: transparent;
  border-radius: 4px 0 0 4px;
}
.tabs.vertical.right.classic .nav>li a { border-left-color: #dddddd; }
.tabs.vertical.right.classic .nav-tabs>li.active a,
.tabs.vertical.right.classic .nav-tabs>li.active a:hover,
.tabs.vertical.right.classic .nav-tabs>li.active a:focus {
  border-bottom-color: #dddddd;
  border-left: transparent;
  border-radius: 0 4px 4px 0;
}

/*  Tabs Center */
.tabs.tabs-center .tabs-container { text-align: center; }
.tabs.tabs-center .nav-pills>li {
  display: inline-block;
  float: none;
  margin: 0 10px;
}

/* Right */
.tabs.tabs-right .tabs-container { text-align: right; }
.tabs.tabs-right .nav-pills>li {
  display: inline-block;
  float: none;
  text-align: center;
}

/* Classic style */
.tabs .nav>li>a {
  color: inherit;
  outline: none;
}

/* Pills */
.tabs .nav-pills>li a {
  border-radius: 0;
  color: inherit;
}
.tabs .nav-pills>li.active a, .tabs .nav-pills>li.active a:hover,
.tabs .nav-pills>li.active a:focus {
  color: inherit;
  font-weight: bold;
  background-color: transparent;
  outline: none;
}

/* Border style */
.tabs.border .nav-pills>li a { border-bottom: 2px solid transparent; }
.tabs.border .nav-pills>li.active a, .tabs.border .nav-pills>li.active a:hover,
.tabs.border .nav-pills>li.active a:focus {
  border-color: inherit;
}
.tabs.border.red .nav-pills>li.active a, .tabs.border.red .nav-pills>li.active a:hover,
.tabs.border.red .nav-pills>li.active a:focus {
  border-color: #e74c3c;
}
.tabs.border.green .nav-pills>li.active a, .tabs.border.green .nav-pills>li.active a:hover,
.tabs.border.green .nav-pills>li.active a:focus {
  border-color: #27ae60;
}
.tabs.border.blue .nav-pills>li.active a, .tabs.border.blue .nav-pills>li.active a:hover,
.tabs.border.blue .nav-pills>li.active a:focus {
  border-color: #2980b9;
}
.tabs.border.orange .nav-pills>li.active a, .tabs.border.orange .nav-pills>li.active a:hover,
.tabs.border.orange .nav-pills>li.active a:focus {
  border-color: #e67e22;
}
.tabs.border.purple .nav-pills>li.active a, .tabs.border.purple .nav-pills>li.active a:hover,
.tabs.border.purple .nav-pills>li.active a:focus {
  border-color: #8e44ad;
}
.tabs.border.turquoise .nav-pills>li.active a, .tabs.border.turquoise .nav-pills>li.active a:hover,
.tabs.border.turquoise .nav-pills>li.active a:focus {
  border-color: #1abc9c;
}
.tabs.border.golden .nav-pills>li.active a, .tabs.border.golden .nav-pills>li.active a:hover,
.tabs.border.golden .nav-pills>li.active a:focus {
  border-color: #bba678;
}


/* Fill style */
.tabs.fill .nav-pills>li.active a, .tabs.fill .nav-pills>li.active a:hover,
.tabs.fill .nav-pills>li.active a:focus {
  background-color: inherit;
}
.tabs.fill.red .nav-pills>li.active a, .tabs.fill.red .nav-pills>li.active a:hover,
.tabs.fill.red .nav-pills>li.active a:focus {
  background-color: #e74c3c;
  color: #ffffff;
}
.tabs.fill.green .nav-pills>li.active a, .tabs.fill.green .nav-pills>li.active a:hover,
.tabs.fill.green .nav-pills>li.active a:focus {
  background-color: #27ae60;
  color: #ffffff;
}
.tabs.fill.blue .nav-pills>li.active a, .tabs.fill.blue .nav-pills>li.active a:hover,
.tabs.fill.blue .nav-pills>li.active a:focus {
  background-color: #2980b9;
  color: #ffffff;
}
.tabs.fill.orange .nav-pills>li.active a, .tabs.fill.orange .nav-pills>li.active a:hover,
.tabs.fill.orange .nav-pills>li.active a:focus {
  background-color: #e67e22;
  color: #ffffff;
}
.tabs.fill.purple .nav-pills>li.active a, .tabs.fill.purple .nav-pills>li.active a:hover,
.tabs.fill.purple .nav-pills>li.active a:focus {
  background-color: #8e44ad;
  color: #ffffff;
}
.tabs.fill.turquoise .nav-pills>li.active a, .tabs.fill.turquoise .nav-pills>li.active a:hover,
.tabs.fill.turquoise .nav-pills>li.active a:focus {
  background-color: #1abc9c;
  color: #ffffff;
}
.tabs.fill.grey .nav-pills>li.active a, .tabs.fill.grey .nav-pills>li.active a:hover,
.tabs.fill.grey .nav-pills>li.active a:focus {
  background-color: #272727;
  color: #ffffff;
}
.tabs.fill.golden .nav-pills>li.active a, .tabs.fill.golden .nav-pills>li.active a:hover,
.tabs.fill.golden .nav-pills>li.active a:focus {
  background-color: #bba678;
  color: #ffffff;
}
/* ============================================================================= */

/* Contact form iFrame ========================================================= */
#form-container #contact-form,
#form-container #contact-form .container,
#form-container #contact-form .container * {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#form-container #contact-form #captcha {
  display: inherit;
  width: 300px !important;
}
/* ============================================================================= */

/* Metro Gallery =============================================================== */
.submenu-gallery.metro .tile {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  font-size: 18px;
  color: #ffffff;
}
.submenu-gallery.metro .tile>.tile-wrapper {
  display: block;
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  right: 2px;
  overflow: hidden;
  background-color: #2d2d2d;
}
.submenu-gallery.metro .tile>.tile-wrapper,
.submenu-gallery.metro .tile>.tile-wrapper a.img {
  background-size: cover;
  background-repeat: no-repeat;
}
.submenu-gallery.metro .tile>.tile-wrapper a.img {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 99;
  transition: all 0.3s ease;
}
.submenu-gallery.metro .tile>.tile-wrapper img { display: none; }

.submenu-gallery.metro .tile.square:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.submenu-gallery.metro .tile.horizontal:after {
  content: "";
  display: block;
  padding-bottom: 50%;
}
.submenu-gallery.metro .tile.vertical:after {
  content: "";
  display: block;
  padding-bottom: 200%;
}

.submenu-gallery.metro .tile .contents {
  display: block;
  position: absolute;
  width: 100%;
  top: 0;
  bottom: 0;
  padding: 0;
  background-color: transparent;
  color: #ffffff;
  transition: all 0.3s ease;
}
.submenu-gallery.metro .tile .contents>.inner { padding: 10px; }
.submenu-gallery.metro .tile h2,
.submenu-gallery.metro .tile h3 {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2em;
}
.submenu-gallery.metro .tile p {
  color: #ffffff;
  font-size: 0.8em;
}
.submenu-gallery.metro .tile.title-visible h3,
.submenu-gallery.metro .tile.title-visible h2 {
  display: block;
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  transition: all 0.1s ease;
  z-index: 999;
}
.submenu-gallery.metro .tile.title-visible:hover h3,
.submenu-gallery.metro .tile.title-visible:hover h2 {
  position: relative;
  top: auto;
  bottom: auto;
  padding: 0;
}
.submenu-gallery.metro.zoom .tile.title-visible:hover .contents { top: 0; }

/* Variations ------------------------------------------------------------- */
.submenu-gallery.metro.gapless .tile>.tile-wrapper {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.submenu-gallery.metro.bordered .tile>.tile-wrapper {
  border: 1px solid #2d2d2d;
}

.submenu-gallery.metro.solid .tile:hover a.img { opacity: 0; }

/* Hover effects ---------------------------------------------------------- */
/* Default */
.submenu-gallery.metro .tile:hover a.img { opacity: 0.2; }
.submenu-gallery.metro .tile .contents { opacity: 1; }

/* Drama ----------------------------------- */
.submenu-gallery.metro.drama .tile:hover>.tile-wrapper a.img {
  opacity: 1;
  filter: contrast(1.5) grayscale(0.8);
}
.submenu-gallery.metro.drama .tile>.tile-wrapper a.img {
  z-index: 1;
}
.submenu-gallery.metro.drama .tile>.tile-wrapper .contents {
  z-index: 1;
  bottom: 0;
  top: auto;
  background-color: rgba(1,1,1,0.5);
}
.submenu-gallery.metro.drama .tile h3 {
  font-size: 16px;
  margin: 5px 0;
}
.submenu-gallery.metro.drama .tile p {
  font-size: 14px;
  margin-bottom: 5px;
}

/* Inversed */
.submenu-gallery.metro.drama.inversed .tile>.tile-wrapper a.img {
  opacity: 1;
  filter: contrast(1.5) grayscale(0.8);
}
.submenu-gallery.metro.drama.inversed .tile:hover>.tile-wrapper a.img {
  opacity: 1;
  filter: contrast(1) grayscale(0);
}

/* Grayscale ------------------------------- */
.submenu-gallery.metro.grayscale .tile:hover>.tile-wrapper a.img {
  opacity: 1;
  filter: grayscale(1);
}
.submenu-gallery.metro.grayscale .tile>.tile-wrapper a.img {
  z-index: 1;
}
.submenu-gallery.metro.grayscale .tile>.tile-wrapper .contents {
  z-index: 1;
  bottom: 0;
  top: auto;
  background-color: rgba(1,1,1,0.5);
}
.submenu-gallery.metro.grayscale .tile h3 {
  font-size: 16px;
  margin: 5px 0;
}
.submenu-gallery.metro.grayscale .tile p {
  font-size: 14px;
  margin-bottom: 5px;
}

/* Inversed */
.submenu-gallery.metro.grayscale.inversed .tile>.tile-wrapper a.img {
  opacity: 1;
  filter: grayscale(1);
}
.submenu-gallery.metro.grayscale.inversed .tile:hover>.tile-wrapper a.img {
  opacity: 1;
  filter: grayscale(0);
}

/* Zoom ------------------------------------ */
.submenu-gallery.metro.zoom .tile .contents {
  opacity: 0;
  text-align: center;
  height: auto;
  top: 50%;
  bottom: auto;
  transform: scale(0.5) translateY(-50%);
}
.submenu-gallery.metro.zoom .tile:hover a.img {
  transform: scale(1.05);
}
.submenu-gallery.metro.zoom .tile:hover .contents {
  transform: scale(1) translateY(-50%);
  opacity: 1;
}

/* Slide up ------------------------------------ */
.submenu-gallery.metro.slide-up .tile .contents {
  top: 100%;
  bottom: 0;
}
.submenu-gallery.metro.slide-up .tile:hover a.img {
  transform: scale(1.05);
}
.submenu-gallery.metro.slide-up .tile:hover .contents {
  top: 10%;
}

/* Generic animations -------------------------- */
.submenu-gallery.metro.flip .tile { overflow: visible; }

.tile-wrapper.animated.flip { z-index: 0; }

.tile-wrapper.animated.flip:hover { z-index: 9999; }

.submenu-gallery.metro.flip .tile .contents,
.submenu-gallery.metro.rubber .tile .contents,
.submenu-gallery.metro.jello .tile .contents,
.submenu-gallery.metro.surprise .tile .contents {
  text-align: center;
  height: auto;
  top: 20%;
  bottom: auto;
}

/* Flip ----------------------------------------- */
.tile:hover .animated.flip { animation: flip 1s; }

/* Rubber ---------------------------------------- */
.tile:hover .animated.rubberBand { animation: rubberBand 1s; }

/* Jello ----------------------------------------- */
.tile:hover .animated.jello { animation: jello 1s; }

/* Surprise -------------------------------------- */
.tile:hover .animated.jackInTheBox { animation: jackInTheBox 1s; }


/* Colors ---------------------------------------------------------------------- */
.submenu-gallery.metro.red .tile>.tile-wrapper { background-color: #e74c3c; }
.submenu-gallery.metro.red.bordered .tile>.tile-wrapper { border-color: #e74c3c; }

.submenu-gallery.metro.crimson .tile>.tile-wrapper { background-color: #c0392b; }
.submenu-gallery.metro.crimson.bordered .tile>.tile-wrapper { border-color: #c0392b; }

.submenu-gallery.metro.green .tile>.tile-wrapper { background-color: #27ae60; }
.submenu-gallery.metro.green.bordered .tile>.tile-wrapper { border-color: #27ae60; }

.submenu-gallery.metro.blue .tile>.tile-wrapper { background-color: #2980b9; }
.submenu-gallery.metro.blue.bordered .tile>.tile-wrapper { border-color: #2980b9; }

.submenu-gallery.metro.turquoise .tile>.tile-wrapper { background-color: #1abc9c; }
.submenu-gallery.metro.turquoise.bordered .tile>.tile-wrapper { border-color: #1abc9c; }

.submenu-gallery.metro.orange .tile>.tile-wrapper { background-color: #e67e22; }
.submenu-gallery.metro.orange.bordered .tile>.tile-wrapper { border-color: #e67e22; }

.submenu-gallery.metro.gold .tile>.tile-wrapper { background-color: #ca9f11; }
.submenu-gallery.metro.gold.bordered .tile>.tile-wrapper { border-color: #ca9f11; }

.submenu-gallery.metro.yellow .tile>.tile-wrapper { background-color: #f1c40f; }
.submenu-gallery.metro.yellow .tile h3,
.submenu-gallery.metro.yellow .tile p { color: #2d2d2d; }
.submenu-gallery.metro.yellow.bordered .tile>.tile-wrapper { border-color: #f1c40f; }

.submenu-gallery.metro.white .tile>.tile-wrapper { background-color: #ecf0f1; }
.submenu-gallery.metro.white .tile h3,
.submenu-gallery.metro.white .tile p { color: #2d2d2d; }
.submenu-gallery.metro.white.bordered .tile>.tile-wrapper { border-color: #ecf0f1; }

/* Tile variations */
/* Live tiles */
@keyframes liveTileSlideHorizontal {
  0% {
    transform: translateX(0%);
    animation-timing-function: ease-out
  }
  7% {
    transform: translateX(-50%);
    animation-timing-function: ease-in;
  }
  50% {
    transform: translateX(-50%);
    animation-timing-function: ease-out;
  }
  57% {
    transform: translateX(0%);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateX(0%);
    animation-timing-function: ease-out;
  }
}

@keyframes liveTileSlideVertical {
  0% {
    transform: translateY(0%);
    animation-timing-function: ease-out
  }
  7% {
    transform: translateY(-50%);
    animation-timing-function: ease-in;
  }
  50% {
    transform: translateY(-50%);
    animation-timing-function: ease-out;
  }
  57% {
    transform: translateY(0%);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateY(0%);
    animation-timing-function: ease-out;
  }
}

.submenu-gallery.metro .tile.liveTile-x, .submenu-gallery.metro .tile.liveTile-y {
  border: 2px solid #ffffff;
}
.submenu-gallery.metro .tile.liveTile-x .tile-wrapper {
  overflow: hidden;
  right: -100%;
  top: 0;
  bottom: 0;
  left: 0;
  animation: liveTileSlideHorizontal 5s linear infinite;
}
.submenu-gallery.metro .tile.liveTile-x a.img,
.submenu-gallery.metro .tile.liveTile-x .contents {
  display: block;
  position: relative;
  width: 50%;
  height: 100%;
  z-index: 1;
  float: left;
}

.submenu-gallery.metro .tile.liveTile-y .tile-wrapper {
  overflow: hidden;
  right: 0;
  top: 0;
  bottom: -100%;
  left: 0;
  animation: liveTileSlideVertical 5s linear infinite;
}
.submenu-gallery.metro .tile.liveTile-y a.img,
.submenu-gallery.metro .tile.liveTile-y .contents {
  display: block;
  position: relative;
  width: 100%;
  height: 50%;
  z-index: 1;
  float: left;
}

/* Text only tiles */
.submenu-gallery.metro .tile.textOnly a.img {
  display: none;
}

/* ============================================================================= */
/* Slideshows ================================================================== */
.submenu-gallery.slideshow { display: none; }
.submenu-gallery-slideshow .carousel-inner>.item,
.submenu-gallery-slideshow .carousel-inner>.item img {
  width: 100%;
  height: auto;
}

.submenu-gallery-slideshow .nextArrow,
.submenu-gallery-slideshow .prevArrow { display: none; }
.submenu-gallery-slideshow  .carousel-control>img {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: auto;
  right: auto;
  margin: auto;
}
.submenu-gallery-slideshow  .carousel-control>.nextArrow {
  right: 0;
  left: auto;
}
.submenu-gallery-slideshow  .carousel-control>.prevArrow {
  left: 0;
  right: auto;
}
.submenu-gallery-slideshow  .carousel-indicators.thumbs {
  margin-bottom: 0;
  bottom: 5px !important;
}
.submenu-gallery-slideshow  .carousel-indicators li.thumb-nav-item {
  width: 50px;
  height: 50px;
  overflow: hidden;
  margin: 1px 5px;
  opacity: 0.6;
  background-repeat: no-repeat;
  background-size: cover;
}
.submenu-gallery-slideshow  .carousel-indicators li.thumb-nav-item:hover,
.submenu-gallery-slideshow  .carousel-indicators li.thumb-nav-item.active {
  opacity: 1;
}
.submenu-gallery-slideshow .carousel-caption {
  text-align: initial;
}

/* Dialogs =================================================================== */
.dialog-box { display: none; }
.dialog .modal-content {
  border: 0;
  border-radius: 0;
}
.modal-dialog.custom-bg {
  background-repeat: no-repeat;
  background-size: cover;
}
.modal-dialog.custom-bg .modal-content,
.modal-dialog.custom-bg .modal-body {
  box-shadow: none !important;
  background-color: transparent;
}

.modal-dialog.custom-bg img.dialogBackground {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
