/* LAST UPDATED: 07.11.2024 -SM */

/* NOTE: 
    ** This is for the videos that appear on pages, not the hero videos that appear on some EVMS landing pages. Those live in hero.css 
    *** Videos are the only pieces of content that actively use modals - so the modals are in this CSS too.
*/
      
audio,
video {
  display: inline-block;
}

.video-full {
    margin: 0 auto;
    position: relative;
}

/* The custom buttons that appear as an overlay on videos on the website. Clicking them usually opens a modal. 
/* These buttons were removed the week of 06.01.2024. They only remain on the handcoded testimonials on /education and /research */
.evms-video-btn,
.video-btn {
    background-image: url("https://www.evms.edu/uploads/refresh/play-btn.svg");
    background-repeat: no-repeat;
   /* background-size: 125px 75px; */
    border: 0;
    height: 60px;
    width: 100px;
}

.video-btn-label {
    color: var(--primary-neutral-light);
    font-size: 0.9em;
    opacity: 1;
    padding-left: 115px;
    position: relative;
}

.video-full .evms-video-btn,
.video-full .video-btn {
    bottom: 40%;
    left: 30%;
    min-height: 45px;
    opacity: 0.7;
    position: absolute;
}
      
.video-full img {
  width: 100%;
}

.embed-responsive-16by9 {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

/* After modal removal on General Content content type, 05.29.2024 - the video embeds in commencement.css already overrride iframe */
.gen-content-video {
  max-height: 315px !important;
  max-width: 560px !important;
}
  
/* Modals for videos */
/* A lot of these are overrides for Bootstrap modals */

/* For testimonial videos on /education and /research */
#myModal {
  background-color: rgba(0, 48, 87, 0.75);
  display: none;
  height: 100%;
  left: 0;
  overflow: hidden;
  padding-top: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.2s ease;
  width: 100%;
  z-index: 100;
}

/* Same as above for news grid modals, but with no z-index because then the close modal button doesn't work */
.modal-news-grid {
  background-color: rgba(0, 48, 87, 0.75);
  display: none;
  height: 100%;
  left: 0;
  overflow: hidden;
  padding-top: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.2s ease;
  width: 100%;
}

/* Bootstrap overrides */
.modal.show .modal-dialog {
  height: auto;
  width: 100%;
}


.modal-content {
  background-color: transparent;
  border: none;
  height: auto;
  width: auto;
}

.close {
  color: var(--primary-neutral-light);
  font-size: 2.66em;
  font-weight: bold;
  position: relative;
  z-index: 12;
}

.modal-dialog {
    margin: 5.5em auto;
    max-width: 800px;
}

.modal-body {
    padding: 0;
    position: relative;
}

/* Bootstrap override */
.modal-backdrop.show {
  opacity: 0;
}
      
      
/* For videos with controls */
.loop-controls {
  background-size: contain;
  border: 1px solid var(--primary-neutral-light);
  bottom: 3%; /* For hero videos that don't have the little curve at the bottom */
  height: 50px;
  left: 1.75%;
  opacity: 0.5;
  position: absolute;
  top: auto;
  transition: opacity 300ms;
    -moz-transition: opacity 300ms;
  	-o-transition: opacity 300ms;
  	-webkit-transition: opacity 300ms;
  width: 50px;
  z-index: 2;
}
      
.loop-controls:focus,
.loop-controls:hover {
  box-shadow: 0 0 0 0.2rem rgba(31, 127, 155, 0.25);
  outline: none;
  opacity: 0.6;
}      
   
.loop-controls-play {
  background: transparent url(/media/evms_public/evms_branding/images/icons/misc/svgs/playButton.svg) no-repeat center;
}

.loop-controls-pause {
    background: transparent url(/media/evms_public/evms_branding/images/icons/misc/svgs/pauseButton.svg) no-repeat center;
}
   
/* For hero videos that do have the little curve at the bottom */
.hero__video-wrapper .loop-controls {
  bottom: 1%; /* Formerly 15%, before curves were hidden on 05.29.2024 */
  left: 1%;
}
      
      

/***** MEDIA QUERIES *****/      
@media screen and (min-width: 360px) and (max-width: 800px) {
  /* For videos on landing pages like /community */
  .video-full img {
    max-width: 100%;
  }
  
  .video-full .evms-video-btn,
  .video-full .video-btn {
    bottom: 30%;
    left: 15%;
  }
}







