.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 200ms;
  visibility: hidden;
  opacity: 0;
  height: 0;
  z-index: 99999;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
  height: 100vh;
  z-index: 99999;
}

.popup {
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 1.4rem;
  background: var(--box-color);
  border-radius: 5px;
  width: 45%;
  position: relative;
  transition: all 200ms ease-in-out;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 0.25fr auto;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  align-items: start;
  align-content: start;
  justify-content: start;
}

@media (max-width: 768px) {
  .popup {
    width: 98%;
    max-height: 90vh;
  }
}

.popup.sec-blue {
  --box-color: var(--bp-cream);
  background-color: var(--box-color);
}

.popup.sec-blue .color_testimonials_item_profile {
  border: 2px solid #bee2fa;
}

.popup.green {
  --box-color: var(--bp-cream);
  background-color: var(--box-color);
}

.popup.green .color_testimonials_item_profile {
  border: 2px solid #c1ead2;
}

.popup.purple {
  --box-color: var(--bp-cream);
  background-color: var(--box-color);
}

.popup.purple .color_testimonials_item_profile {
  border: 2px solid #d3ced8;
}

.popup.yellow {
  --box-color: var(--bp-cream);
  background-color: var(--box-color);
}

.popup.yellow .color_testimonials_item_profile {
  border: 2px solid #f2d9b3;
}

.popup.blue {
  --box-color: var(--bp-cream);
  background-color: var(--box-color);
}

.popup.blue .color_testimonials_item_profile {
  border: 2px solid #bed0fa;
}

.popup.orange {
  --box-color: var(--bp-cream);
  background-color: var(--box-color);
}

.popup.orange .color_testimonials_item_profile {
  border: 2px solid #f8cabc;
}

.popup .top {
  grid-area: 1/1/2/3;
  display: grid;
  grid-template-columns: 0.3fr auto;
  align-items: center;
  align-content: start;
}

.popup .top img {
  max-width: 48px;
  width: 100%;
  height: auto;
  margin: auto;
}

.popup .top p {
  margin-top: 0;
}

.popup .body {
  grid-area: 2/1/3/3;
  max-height: 100% !important;
  height: 100%;
  font-size: 0.9rem;
  margin-bottom: 0;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .popup .content {
    margin-top: 0rem;
    padding-bottom: 2rem;
  }
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 20ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: var(--info-blue);
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}