
/*
SimpleYouTubePlayer
by John E Maddox
*/

/* === media list === */

/* BOF For demo, centers video list on screen */

#mList {
text-align: center;
max-width: 600x;
}
 @media screen and (orientation: landscape) and (min-width: 801px) {

#mList {
  max-width: 1200px;
  margin: auto;
}
}

/* EOF demo */


#mList A {
  margin-top: 4px;
  width: 475px;
  height: 267px;
  line-height: 3px; /*match height */
  color: #FFF;
  font-family: Oswald;
  text-align: center;
  text-decoration: none;
  display: inline-table;


}

#description {
display: table-cell;
vertical-align: middle;
width:475px;
height:267px;
font-family: Oswald;
}




/* media list title overlay */


#mList A DIV {
  opacity:0;
  background: rgba(0, 0, 0, .3);
}

/* On hover actions */


#mList A:hover DIV { transition: 0.6s; opacity:1; }

/* #mList A:hover { border: 1px solid #000000; }*/

/* === popup media player === */

/* background overlay */

#mPlayer {
  display: none;
  background: rgba(0, 0, 0, .8);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 20;
  left: 0;
  top: 0;
}

/* video player */

#mPlayer DIV {
  position: fixed;
  background: #000;
  width: 1280px; /* width of YouTube Player */
  height: 720px; /* height of YouTube Player */
  left: calc(50vw - 640px); /* 280 is .5(560), centers x axis*/
  top: calc(50vh - 360px); /* 157 is .5(315), centers y axis*/
}
