/*
Theme Name: Impreza Child
Template: Impreza
Version: 0.1.2
Author:	Vagas VGS
Theme URI: http://impreza.us-themes.com/
Author URI: https://www.vagas.co.il/
*/

/* meta4 Slider */

.m4-slider-wrapper {
  margin: 10px;
  overflow: hidden;
}

.m4-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.m4-slider .m4-slide {
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.m4-slider .m4-content {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transition: none;
}

.m4-slider .m4-content-bg {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 0.4s ease-out;
}

.m4-slider .m4-second .m4-content-bg {
  filter: contrast(50%) sepia(1) hue-rotate(164deg);
}

html:not(.no-touch) .m4-slider .m4-second .m4-content-bg,
.m4-slider .m4-second.m4-hover .m4-content-bg {
  filter: contrast(100%) sepia(0) hue-rotate(0deg);
}

.m4-slider .m4-first .m4-content-bg {
  filter: contrast(50%) grayscale(100%);
}

html:not(.no-touch) .m4-slider .m4-first .m4-content-bg,
.m4-slider .m4-first.m4-hover .m4-content-bg {
  filter: contrast(100%) grayscale(0%);
}

.m4-slider .m4-caption {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  line-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.m4-slider .m4-caption-h {
  position: relative;
  display: block;
  width: auto;
  height: auto;
}

.m4-slider .m4-caption .m4-title,
.m4-slider .m4-caption .m4-subtitle {
  display: inline-block;
  text-transform: uppercase;
  line-height: 100%;
}

.m4-slider .m4-title {
  position: relative;
  display: block;
  color: #fff;
  padding: 1rem;
  margin: 0;
  transition: color 0.4s ease-in;
  width: 100%;
}

html:not(.no-touch) .m4-slider .m4-title,
.m4-slider .m4-hover .m4-title {
  color: #000;
}

.m4-slider .m4-title-bg {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transform: scale(0) rotate(-22.5deg);
  opacity: 0;
  background: #fff;
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

html:not(.no-touch) .m4-slider .m4-title-bg,
.m4-slider .m4-hover .m4-title-bg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.m4-slider .m4-title-content {
  display: block;
  position: relative;
  z-index: 1;
}

.m4-slider .m4-title .fas {
  color: #0066a2;
}

.m4-slider .m4-second .m4-title .fas {
  color: #404040;
}

html:not(.no-touch) .m4-slider .m4-title .fas,
.m4-slider .m4-hover .m4-title .fas {
  color: #0066a2;
}

.m4-slider .m4-subtitle {
  position: relative;
  left: 50%;
  top: -0.5rem;
  background: #0066a2;
  color: #fff;
  padding: 0.5rem;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease-out, left 0.4s ease-out;
}

.rtl .m4-slider .m4-subtitle {
  left: unset;
  right: 50%;
  transition: opacity 0.4s ease-out, right 0.4s ease-out;
}

html:not(.no-touch) .m4-slider .m4-subtitle,
.m4-slider .m4-hover .m4-subtitle {
  left: 0.5rem;
  opacity: 1;
}

html:not(.no-touch) .rtl .m4-slider .m4-subtitle,
.rtl .m4-slider .m4-hover .m4-subtitle {
  left: unset;
  right: 0.5rem;
  opacity: 1;
}
