/* This CSS is only for dealing with the fullscreen dedicated player. */

/*.horizontalWarn, div.h5p-overlay {display: none;}*/

/* OVERLAY TESTING */
.h5p-playholder {
    position: relative;
    /* aspect-ratio: 16/9; */
    overflow: hidden;
}

.h5p-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    cursor: pointer;
}

.h5p-pleaserotate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    display: none;
}

.h5p-splash-hidden {
    display: none;
}

/* @media only screen and (max-device-width: 897px) and (orientation: portrait) {
    .horizontalWarn {
        display: block;
    }
} */

html.h5pPlaying, body.h5pPlaying {
    overflow: hidden;
}
body.h5pPlaying * {
    display: none;
}
body.h5pPlaying .dfinteractive {
    display: block;
    width: calc(100vw);
    height: calc(100vh);
    /*height: -webkit-fill-available;*/
}
/*body.h5pPlaying .dfinteractive > * {
    display: block;
}*/

#h5p-fullscreenlink {
    clear: both;
    display: block;
}


/* For fullscreen player, mobile only: */
@media only screen and (orientation: portrait) and (max-device-width:970px) {
    .h5p-playholder {
        height: 100vh;
    }
    div.forcerotate div.h5p-pleaserotate {
        background-image: url('/img/pleaserotate.png'); /* This is a quickly-created splash-screen, likely better to recreate */
        display: block;
    }
}

body.canSupportFullscreen div.h5p-fullscreenbutton {
    width: 44px;
    height: 44px;
    background-color: transparent;
    background-image: url(/img/fullscreenbutton.png); /* This is a quickly-created button which would be good to replace! */
    background-size: contain;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* For landscape devices, we need to go 100% height and float centre horizontal: */
@media screen and (orientation: landscape) {
    div.orientation_info.landscape {
        display: block;
    }
    div.aspect_holder.square div.aspect_content {
        height: 100%;
        aspect-ratio: 1/1;
    }
}

/* For portrait, we need to go 100% width and float centre vertical: */
@media screen and (orientation: portrait) {
    div.orientation_info.portrait {
        display: block;
    }
    div.aspect_holder.square div.aspect_content {
        width: 100%;
        aspect-ratio: 1/1;
    }
}

@media screen and (min-aspect-ratio: 16/9) {
    /* When window is wider so need to horizontally pad: */
    div.aspect_holder.sixteen_nine div.aspect_content {
        height: 100%;
    }
}

@media screen and (max-aspect-ratio: 16/9) {
    /* When window is narrower so need to vertically pad: */
    div.aspect_holder.sixteen_nine div.aspect_content {
        width: 100%;
        height: calc((0.562)*100vw);
    }
}

div.aspect_holder {
    /* background-color: #13844e; */
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
div.aspect_content {
    /* background-color: black;
    color: white;*/
    aspect-ratio: 16/9;
}
div.aspect_content h1 {
    margin: 0;
}
div.orientation_info {
    display: none;
}
div.not_support_aspect_ratio {display: none;}

