

/* Videos */

.nav-video-player:not(:empty) {
  text-align: center;
  margin: 25px 0;
}
.nav-video-player:not(:empty) > * {
  background: #eee;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 20px 0 var( --ms-colour-highlight );
}

.ms-video-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.ms-video {
  display: inline-grid;
  position: relative;
  margin: 10px 10px;
  overflow:hidden;
  min-height:60px;
  border:1px solid rgba(0,0,0,0);
  border-radius:10px;
  text-align:left;
  transition:0.25s;
  /* grid-template-columns: min-content auto 33%; */
  min-width:0;
  box-sizing: border-box;
  /* width: min( 400px , 50vw ); */
  width: 295px;
  min-width: 295px;
}
  .ms-video.purchased {
    box-shadow: 0 2px 10px 0 var( --ms-colour-highlight );
  }

.ms-video > * {
  display: none;
  grid-column: 1 / 2;
  z-index: 1;
}

.ms-video > .ms-preview {
  display: block;
  background: #eee;
  height: 166px;
  width: 295px;
  justify-self: center;
  grid-row: 1 / 2;
  border-radius: 5px;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
}
.ms-video > .ms-title {
  display: block;
  grid-row: 2 / 3;
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}
.ms-video > .ms-desc-plain-150 {
  display: block;
  grid-row: 3 / 4;
  font-size: 0.9em;
  padding: 0 10px 10px 10px;
  cursor: pointer;
}
  .ms-video.desc-overflows > .ms-desc-plain-150 {
    cursor: pointer;
  }
  .ms-video.desc-overflows > .ms-desc-plain-150:after {
    content: "More";
    text-decoration:underline;
    font-style: italic;
    margin-left: 0.25em;
  }

.ms-video > .ms-action {
  display: block;
  grid-row: 5 / 6;
  max-width: calc( 100% - 10px );
  justify-self: center;
  text-align: center;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0);
  width: 10em;
  border-radius: 5px;
  line-height: 32px;
  height: 32px;
  margin: 5px;
  cursor: pointer;
  background-color: var(--ms-colour-highlight);
  color: white;  
}

.ms-video.canbuy > .ms-action:before {
  content: "Buy";
}

.ms-video.purchased > .ms-action:before {
  content: "Watch";
}
.ms-video.desc-overflows > .ms-toggleexpand {
  grid-row: 4 / 5;
  display: block;
  justify-self: center;
  align-self: center;
}
.ms-video.desc-overflows > .ms-toggleexpand:before {
  content: "More...";
  text-decoration: underline;
  cursor: pointer;
}

.ms-video.expand .ms-description {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.26);
  margin: 5px;
  background: rgba( 255 , 255 , 255 , 0.75 );
  backdrop-filter: blur( 2px );
  cursor: pointer;
  z-index: 2;
  border-radius: 7px;
}