
/*
SimpleYouTubePlayer
by John E Maddox
*/

/* === media list === */

/* BOF For demo, centers video list on screen */

#mList {
  max-width: 1200px;
  margin: auto;
}

/* EOF demo */


#mList A {
  width: 289px;
  height: 180px;
  color: #FFF;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 1px solid #000;
  display: inline-table;
}

#mList A:not(:last-child) {
	margin-right: 10px;
}
/* media list title overlay */


#mList A .mList_wrapper {
  position: relative;
  height: 180px;
  background: url(../img/youtube_small_video.png) no-repeat center center;
}
#mList A .mList_wrapper:hover {
	background: rgba(0, 0, 0, .8);
}

#mList A .mList_wrapper p {
	position: absolute;
	top: 60px;
	left: 0;
	width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 5px;
	visibility: hidden;
}
#mList A .mList_wrapper:hover p {
	visibility: visible;
}
/* On hover actions */



#mList A:hover { border: 1px solid #0066cc; }

/* === 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: 560px; /* width of YouTube Player */
  height: 315px; /* height of YouTube Player */
  left: calc(50vw - 280px); /* 280 is .5(560), centers x axis*/
  top: calc(50vh - 157px); /* 157 is .5(315), centers y axis*/
}
