section[data-module="az-testimonial-box"] {
}

section[data-module="az-testimonial-box"] .testimonial_box {
  display: flex;
  cursor: pointer;
  max-height: 500px;
}

section[data-module="az-testimonial-box"] .testimonial_box * {
  transition: all 0.5s ease-in-out;
}

section[data-module="az-testimonial-box"] .testimonial {
  background: #a0acb0;
  min-width: 75px;
  position: relative;
  display: flex;
  width: 20px;
  overflow: hidden;
}

section[data-module="az-testimonial-box"] .expanded {
	width: 100%;
	background: #dce5f0;
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
	z-index: 1;
}

section[data-module="az-testimonial-box"] .testim_content {
  transform: translateX(3000px);
  padding: 3rem;
  max-width: 70%;
}

section[data-module="az-testimonial-box"] .expanded .testim_content {
  transform: none;
}

section[data-module="az-testimonial-box"] .testimonial img {
	position: absolute;
	height: 80%;
	filter: grayscale(1);
	transform-origin: bottom right;
	transform: scale(0.9);
	bottom: 0;
	object-position: right;
	right: -20px;
	min-width: 220px;
}

section[data-module="az-testimonial-box"] .expanded img {
  filter: none;
  right: -1px;
  transform: none;
  transition: all 0.2s ease-in-out;
}

section[data-module="az-testimonial-box"] .testimonial:hover img {
  filter: none;
  transition: all 0.2s ease-in-out;
}

section[data-module="az-testimonial-box"] .highlight, section[data-module="az-testimonial-box"] .name {
	font-size: 16px;
	position: relative;
}

section[data-module="az-testimonial-box"] .name {
  padding-left: 15px;
}

section[data-module="az-testimonial-box"] .name::before {
	content: '';
	position: absolute;
	/* transform: skew(-15deg); */
	width: 4px;
	left: 0;
	height: 100%;
	background: #757575;
}

section[data-module="az-testimonial-box"] .full_testim {
  font-style: italic;
  line-height: 1.5;
}


section[data-module="az-testimonial-box"] .fa-quote-left {
	font-size: 40px;
	padding-bottom: 10px;
}

section[data-module="az-testimonial-box"] .close-testimonial {
	display: none;
	position: absolute;
	top: 0;
	right: 5px;
	font-size: 28px;
	background: transparent;
	border: none;
	color: #333;
	z-index: 10;
	cursor: pointer;
}


section[data-module="az-testimonial-box"] .testimonial-overlay {
  display: none;
}


/* Media Queries */
@media only screen and (max-width: 1440px) and (min-width: 1200px) {
  section[data-module="az-testimonial-box"] {
    /* Add styles here if needed */
  }
}

@media (min-width: 768px) and (max-width: 980px) {

  section[data-module="az-testimonial-box"] .testim_content {
    padding: 20px;
  }

  section[data-module="az-testimonial-box"] .testimonial img {
    position: absolute;
    height: 55%;
    bottom: 0;
    object-position: right;
    right: -25px !important;
    min-width: 170px;
  }

}

@media (max-width: 480px) {
  section[data-module="az-testimonial-box"] .testimonial_box {
    display: flex;
    cursor: pointer;
    max-height: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  section[data-module="az-testimonial-box"] .testimonial {
    background: #a0acb0;
    min-width: 45%;
    position: relative;
    display: flex;
    width: 45%;
    overflow: hidden;
    height: 150px;
    margin: 5px;
  }

  section[data-module="az-testimonial-box"] .testim_content {
    transform: translateX(3000px);
    padding: 10px;
    max-width: 80%;
    width: 65%;
  }

  section[data-module="az-testimonial-box"] .testimonial img {
    position: absolute;
    height: 100%;
    filter: grayscale(1);
    transform-origin: bottom right;
    transform: scale(0.9);
    bottom: 0;
    object-position: right;
    right: -10px;
    min-width: 120px;
  }

  section[data-module="az-testimonial-box"] .highlight,
  section[data-module="az-testimonial-box"] .name,
  section[data-module="az-testimonial-box"] .full_testim,
  section[data-module="az-testimonial-box"] .company {
    font-size: 12px !important;
  }

  section[data-module="az-testimonial-box"] .expanded {
    width: 100%;
    background: #dce5f0;
    position: absolute;
    top: 25%;
    left: 0;
    /* z-index: 1; */
    min-height: 300px;
    transition: 0.3s;
    z-index: 1000;
  }

  section[data-module="az-testimonial-box"] .expanded .close-testimonial {
    display: block;
  }

  section[data-module="az-testimonial-box"] .fa-quote-left {
    font-size: 25px;
    padding-bottom: 5px;
  }

  section[data-module="az-testimonial-box"]  .expanded  img {
    filter: grayscale(0);
  }

  section[data-module="az-testimonial-box"] .testimonial-overlay.active {
    display: block;
  }

  section[data-module="az-testimonial-box"] .testimonial-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

}
