.product-modal-box {
  position: relative;
  cursor: pointer;
  z-index: 5;
}
.product-modal-link {
  position: relative;
}
.product-modal-link img {
  object-fit: cover;
  width: 100%;
  border-radius: 20px;
}
.product-modal-link::after {
  content: '';
  position: absolute;
  border-radius: 20px;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 9px);
  background-color: rgba(0, 0, 0, 0.699);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.product-modal-link.after-on::after {
  content: '';
  position: absolute;
  border-radius: 20px;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 9px);
  background-color: rgba(0, 0, 0, 0.699);
  opacity: 0.9;
  transition: all 0.3s ease;
}
.product-modal-link:hover::after {
  opacity: 0.9;
}

.product-modal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
.product-modal-logo img {
  transition: all 0.4s ease;
}
.product-modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow-y: auto;
  transition: all 0.4s;
}
.product-modal.is-show {
  opacity: 1;
  visibility: visible;
  z-index: 1000;
  overflow: hidden;
}
.product-modal-content {
  position: relative;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.507);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 100px 40px;
  border: 1px solid #888;
  border-radius: 20px;
  width: 60%; /* Could be more or less, depending on screen size */
  z-index: 10000;
}
.product-modal-header-close {
  position: absolute;
  padding: 10px;
  top: 10px;
  right: 20px;
  z-index: 15;
  cursor: pointer;
  font-size: 20px;
}
.product-modal-header-close:hover {
  color: #f9bd00;
}

.product-modal-content-bg {
  /*  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat !important;
}

.product-modal-1 .product-modal-content-bg {
  background: url('https://rt-rk.com/wp-content/uploads/Klipsch_Cinema_1200_Soundbar-scaled.jpg');
}
.product-modal-2 .product-modal-content-bg {
  background: url('https://rt-rk.com/wp-content/uploads/MQA-bg.jpg');
}
.product-modal-3 .product-modal-content-bg {
  background: url('https://rt-rk.com/wp-content/uploads/woman-looking-towards-camera-with-code-projected-onto-her-face.jpg');
}
.product-modal-4 .product-modal-content-bg {
  background: url('https://rt-rk.com/wp-content/uploads/auro-bg.jpg');
}
.product-modal-5 .product-modal-content-bg {
  background: url('https://rt-rk.com/wp-content/uploads/MQA-bg-scaled.webp');
}
.product-modal-6 .product-modal-content-bg {
  background: url('https://rt-rk.com/wp-content/uploads/ECf2em7XkAIt2Bo-scaled.jpg');
}
.product-modal-content-logo {
  position: absolute;
  width: 250px;
  right: 40px;
  top: 40px;
}
.product-modal-content h2 {
  color: #fff;
}
.product-modal-images-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.product-modal-images-logos img {
  max-width: 150px;
}
.has-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  max-width: 1290px;

  margin: 0 auto;
}
.historical-timeline,
.historical-timeline-header {
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .product-modal {
    /*   position: absolute; */
  }
  .product-modal-content {
    width: 90%; /* Could be more or less, depending on screen size */
    margin: 20% auto;
    padding: 50px 40px;
  }
  .product-modal-content-logo {
    position: static;
  }
  .has-products {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .product-modal-images-logos {
    /*  width: 150px; */
    flex-direction: column;
  }
  .x-peri-left {
    transform: translateX(-50px);
  }
}
