.library-container * {
  font-family: "Futura PT",sans-serif;
}
.library-container {
  max-width: 1366px;
  margin: auto;
  
}
.library-container p {
  margin:0;
}
.library-intro {
  padding:0 1.5rem 3rem 1.5rem;
}
.library-intro h1 {
  font-family: "Futura PT Heavy",sans-serif;
  line-height: 1.5;
  font-size:2em;
  font-weight:bold;
  margin-bottom:1rem;
}
.library-intro h2 {
  font-size:1.5rem;
}
.library-description, .library-description p {
  font-size:1.25rem;
}

.video-library {
  display:flex;
  flex-wrap:wrap;
  row-gap:3rem;
  column-gap:1.5rem;
  /*justify-content: space-between;*/
  justify-content: flex-start;
  width:100%;
  padding-left:1.5rem;
  padding-right:1.5rem;
}
.library-item {
  flex:1 0 100%;
}
.library-item-fullwidth {
  flex:1 0 100%;
  display:block;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap:3rem;
}
.library-item-fullwidth.alt {
  flex-direction:row-reverse;
}
.library-item-fullwidth > div {
  flex:0 1 50%;
}
.video-thumbnail {
  padding-bottom:1rem;
}
.video-thumbnail img {
  display:block;
  width:100%;
}
.video-title h2 {
  font-family: "Futura PT Heavy",sans-serif;
  line-height: 1.27;
}
.library-item .video-title h2 {
  font-size:1.25em;
}
.video-description {
  font-size:1.125rem;
  line-height: 1.375;
  color: #333;
  font-family: "Futura PT",sans-serif;
}
.video-description p {
  font-size:1.125rem;
}

.video-button-container {
  padding:1rem 0;
}
.video-button-container .video-button {
  border-style:solid;
  border-width:1px;
  padding:.5rem 1rem;
  display:inline-block;
  text-decoration:none;
  font-size:1em;
  font-family: "Futura PT",sans-serif;
}
@media screen and (min-width:600px){
  .video-library {
    column-gap:10%;
  }
  .library-item-fullwidth {
    display:flex;
  }
  .library-item {
    flex:0 1 45%;
  }
  .library-item-fullwidth .video-title h2 {
    font-size:1.5em;
  }
  .library-item-fullwidth .video-description {
    font-size:1.25em;
    color:#666666;
  }
}
@media screen and (min-width:768px){
  .video-library {
    column-gap:5%;
  }
  .library-item {
    flex:0 1 30%;
  }
}
/* Video Modal
-----------------------------------------*/
.video-modal,
.video-modal .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
}
.video-modal {
	overflow: hidden;
	position: fixed;
	opacity: 0.0;

  -webkit-transform: translate(500%,0%);
  transform: translate(500%,0%);
  -webkit-transition: -webkit-transform 0s linear 0s;
  transition: transform 0s linear 0s;
  /* using flexbox for vertical centering */

  /* Flexbox display */
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;

  /* Vertical alignment */
  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;

  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.video-modal .overlay {
  z-index: 0;
  /*background: rgba(13,1,61,0.82); /* overlay color */
  /*opacity: 0.0;*/
  -webkit-transition: opacity 0.2s ease-out 0.05s;
  transition: opacity 0.2s ease-out 0.05s;
}


.video-modal-content {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 1;
	margin: 0 auto;
	overflow-y: visible;
	background: #000;
  width: calc(100% - 12em);
  height: 0;
  padding-top: calc((100% - 12em) * 0.5625); /* 16:9 calc */
}

/* Scaling to fit within the current Viewport size:
   When viewport aspect ratio is greater than 16:9
   work off the height instead of the width for calc */
 @media (min-aspect-ratio: 16/9) {
  .video-modal-content {
    width: 0;
    height: calc(100vh - 10em);
    padding-top: 0;
    padding-left: calc((100vh - 10em) * 1.7778); /* 16:9 calc */
  }
}

/* Mobile Layout Tweaks - side margins reduced */
@media (max-width: 640px) {
	.video-modal-content {
		width: calc(100% - 1em);
    padding-top: calc((100% - 1em) * 0.5625); /* 16:9 calc */
	}
}

/* modal close button */
.close-video-modal {
	display: block;
    position: absolute;
    left: 0;
    top: -40px;

    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

/* set the iframe element to stretch to fit its parent element */
iframe#youtube {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: #000;
	box-shadow: 0px 2px 16px rgba(0,0,0,0.5);
}

/* show the modal: 
   add class to the body to reveal */
.show-video-modal .video-modal {
	opacity: 1.0;
	transform: translate(0%,0%);
	-webkit-transform: translate(0%,0%);
}
.show-video-modal .video-modal .overlay {
	/*opacity: 1.0;*/
}
.show-video-modal .video-modal-content {
	transform: translate(0%,0%);
	-webkit-transform: translate(0%,0%);
}