.modal {
  /* This way it could be display flex or grid or whatever also. */
  display: block;
  max-width: 560px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 50%;
  background: white;
  box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.9);
  
  /* Use this for centering if unknown width/height */
  transform: translate(-50%, -50%);
  
  /* If known, negative margins are probably better (less chance of blurry text). */
  /* margin: -200px 0 0 -200px; */
}

.closed {
  display: none;
}

.close-button {
    z-index: 1;
    right: 2px;
    top: 1px;
    left: initial;
    position: absolute;
    width: 16px;
    height: 16px;
    overflow: hidden;
    color: #666;
    line-height: 16px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
}
.modal-guts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 0;
    text-align:center;
    overflow:hidden;
    z-index: 0;
    background: #111;
    border: 1px solid #666;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color:white;
}

.modal-guts iframe {
    width:100%;
    height:100%;
    border:0;
}

#f1access-modal {
    background: url(../png/f1access.png) center 50px no-repeat #000;
    background-size: contain;
    clear: both;
    overflow: hidden;
    padding-top: 140px;
}

#f1access-modal h2 {
    background: #d31411;
    font-size: 18px;
    padding: 15px;
    margin: 0;
}

#f1access-modal p {
        background: white;
    margin: 0;
    color: #292929;
    text-align: center;
    padding: 20px 40px;
    font-size: 14px;
    line-height: 20px;
}

#f1access-modal .f1ms-cta-btn {
    margin-top:20px;
}

#f1access-modal p:last-of-type {
    font-size: 11px;
    line-height: 12px;
    min-height: 100px;
    padding:0;
}

#f1access-modal #f1access-code {
    display:none;
    cursor:initial;
}

.videosub {
    width: 297px;
    margin: 20px auto 30px auto;
    text-transform: none;
    font-size: 11px;
    letter-spacing: 0;
    position: relative;
    padding-right: 20px;
}

.videosub svg {
    vertical-align: middle;
    font-size: 36px;
    position: absolute;
    right: 5px;
}

.videosub:hover {
    color:black !important;
}

@media (min-width: 375px) {
    .modal {
        height: 425px;
    }
}

@media (min-width: 768px) {
    #f1access-modal p:last-of-type {
        padding: 20px 40px;
        line-height: 14px;
    } 
}