@import "variables";
@import "mixins";

.component-testimonials {
  .row {
    align-items: center;
  }
  .quote-mark {
    content: url(theme-url("/assets/icons/captions.svg"));
    &.mark-last {
      margin-left: auto;
    }
  }
  .testimonials-slider {
    .testimonial-box {
      .author-box {
        display: flex;
        align-items: center;
        .author-image {
          flex: 1 0 48px;
          max-width: 48px;
          margin-right: $space-xs;
          picture img {
            border-radius: 100px;
          }
        }
        .author-content {
          .small {
            margin-bottom: 0;
          }
        }
      }
    }
    .testimonial-popup {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 999;
      background: rgba(0, 0, 0, 0.5);
      width: 100%;
      height: 100%;
      &.active {
        display: block;
      }
      .popup-content {
        position: relative;
        background-color: white;
        width: 1170px;
        max-width: 90%;
        max-height: 90%;
        overflow: auto;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: $space-md;
        .close-btn {
          position: absolute;
          right: 0;
          top: 0;
          cursor: pointer;
          padding: $space-sm;
        }
        .author-box {
          display: flex;
          align-items: center;
          .author-image {
            flex: 1 0 48px;
            max-width: 48px;
            margin-right: $space-xs;
            picture img {
              border-radius: 100px;
            }
          }
          .author-content {
            .small {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }
}
body.testimonial-popup-opened {
  overflow: hidden;
}
