/* LAST UPDATED: 07.16.2024 - SM */

/* Testimonials tend to be handcoded - there are a couple of unfinished testimonial content types in T4 */
/* The unfinished content type is for the video version. There is a handcoded text & photo version on the community landing page that does have a 
content type for typical pages */


/* Testimonial videos go with videos.css */

.testimonial {
    /*background-position: 75%;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;*/
    position: relative;
}

.testimonial::before {
    background: var(--primary-dark);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.testimonial__bgimg {
  background-image: url(https://evms.edu/research/full-width-video-thumbnail.jpg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
}

.testimonial__bgimg:before {
  display: block;
}

.testimonial__content {
    color: var(--primary-neutral-light);
    font-size: 0.75em;
    padding: 30px 0;
    position: inherit;
    width: 100%;
    z-index: 6;
}

.testimonial__quote {
    color: var(--white);
    font-family: var(--primary-font-family);
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px var(--primary-neutral-dark);
}

.testimonial__image {
    border: 1px solid var(--primary-neutral-light);
    margin: 0.5em 0;
}

.testimonial__name {
    margin-bottom: 0.25em;
    text-transform: uppercase;
}

.testimonial__name,
.testimonial__position {
    color: var(--primary-neutral-light);
    font-weight: 500;
}

.testimonial__position {
    font-size: 0.9em;
    font-style: italic;
    line-height: 120%;
    margin-bottom: 30px;
    margin-top: 0;
}


/* Blockquote text & photo version - generic blockquote CSS is in typography.css */
blockquote.bq {
    margin: 0 auto;
}

.bq p:not(.evms-bq-with-img p) {
  margin: 0;
  font-family: var(--secondary-font-family) !important;
  font-weight: 700;
}

blockquote.bq footer {
    font-family: var(--primary-font-family);
    font-weight: 500;
}

.bq-footer-inner {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 100%;
}

.bq-footer-inner p {
    font-size: 0.66em;
    margin: 0 !important;
    width: 100%; /* Formerly 40% */
}

.evms-bq-headshot {
    max-width: 100%;
}

/* For button on MPH page */
#align-btn {
  font-size: 0.66em;
}




/***** MEDIA QUERIES *****/
@media screen and (min-width: 500px) {
  	.testimonial__content {
      padding: 0 0 30px 0;
      position: inherit;
      z-index: 10;
    }
  
    .testimonial__quote {
        font-size: 1.5em;
      	width: 100%;
    }
}

@media screen and (min-width: 576px) {
    .evms-bq-with-img {
        text-align: right;
    }

    .evms-bq-headshot {
        margin: 0 0 0 30px;
    }
}

@media screen and (min-width: 600px) {
    blockquote.bq {
        font-size: 1.2em;
        max-width: 100%;
    }

    blockquote.bq footer.evms-bq-with-img {
        margin: 30px 0 0 0;
        max-width: 100%;
    }
}


@media screen and (min-width: 768px) {
    blockquote.bq {
        font-size: 1.5em;
        max-width: 100%;
    }

    blockquote.bq footer {
        font-size: 0.75em;
    }
}


@media screen and (min-width: 800px) {
    .testimonial {
        margin-bottom: 0;
    }

    .testimonial::before {
        display: block;
    }

    .testimonial__bgimg {
        display: block;
    }

    .testimonial__content {
        background-color: transparent;
        position: relative;
    }

    .testimonial__quote {
        font-size: 2em;
        line-height: 110%;
        max-width: 50%;
        padding-top: 4em;
    }

    .testimonial__image {
        max-width: 10em;
    }

    .testimonial__name {
        font-size: 1.2em;
    }
}


@media screen and (max-width: 810px)  {
 	.testimonial {
      overflow-x: hidden;
      width: 100%;
    }
  
  	.testimonial__content {
      width: 100%;
    }
}


@media screen and (min-width: 992px) {
    blockquote.bq {
        font-size: calc(var(--base-font-size) * 2);
        max-width: 85%; /* Formerly 100%, changed 07.16.2024 */
    }
}
