/*
Theme Name: Pleat v2
Author: LeCollective
Author URI: https://lecollective.co.uk/
Description: Theme for Pleat, developed by LeCollective
Version: 2.0
*/

.fancybox__slide.has-html5video{top: -25px;}
video.fancybox__html5video::-webkit-media-controls-panel{display: none;}

.fancybox__html5video, .fancybox__iframe, .fancybox_html5video_wrap {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
    background: transparent;
}

.fancybox_html5video_controls{
    width: 100%;
    height: 25px;
    padding-top: 5px;
}

.fancybox_html5video_controls button {
    border:none;
    cursor:pointer;
    background:transparent;
    background-size:contain;
    background-repeat:no-repeat;
}

.fancybox_html5video_controls button:hover, .fancybox_html5video_controls button:focus {
    opacity:0.5;
}
.fancybox_html5video_controls button:focus {outline:0 !important;}
.fancybox_html5video_controls .fancybox_html5video_play_pause{
    display: inline-block;
    float: left;
    width: 7%;
    font-size: 12px;
}

.fancybox_html5video_controls .fancybox_html5video_progress{
    display: inline-block;
    margin: 0 auto;
    width: 86%;
    cursor: default;
    padding-top: 2px;
    height: 2px;
    background-color: #cccccc;
    border-radius: 5px;
    vertical-align: middle;
}
.fancybox_html5video_controls .fancybox_html5video_progress div{
    height: 2px;
    margin-top: -2px;
    border-radius: 5px;
    width: 0;
    background-color: #202020;
}


.fancybox_html5video_controls .fancybox_html5video_mute_unmute{
    display: inline-block;
    float: right;
    width: 7%;
    font-size: 12px;
}

/* Vimeo embeds */

.vimeo-bg {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.vimeo-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none; /* clicks go to the link around the video */
}

/* Leave room under the video for the PLAY / MUTE bar, clear of the site
   footer that sits over the bottom of the lightbox */
.fancybox__slide.has-video { top: -25px; padding-bottom: 72px; }

.fancybox__slide.has-video .fancybox__content {
    overflow: visible;
}

.fancybox__slide.has-video .fancybox_html5video_controls {
    position: absolute;
    top: 100%;
    left: 0;
}

/* News posts: full-size Vimeo player with controls */

.vimeo-player {
    position: relative;
    width: 100%;
    height: 0;
}

.vimeo-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.single-post .galImg.vimeoRow:hover {
    opacity: 1;
}

/* Artist page: fade between gallery tabs */

.artistGalleryWrap .featGal {
    transition: opacity 0.3s ease;
}

.artistGalleryWrap .featGal.is-fading {
    opacity: 0;
}
