/*
 * Precision Health Performance.
 *
 * This file adds custom styles to the Precision Health Performance Theme.
 *
 * @package Precision Health Performance
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
*/


/* Blocks
---------------------------------------------------------------------------- */

.content .entry {
    margin-bottom: 0;
}

.feature-title {
    border-bottom: 2px solid #0a9da8;
}

.feature-title .wp-block-media-text {
    direction: rtl;
    min-height: 530px;
}

.feature-title h1 {
    line-height: 1;
    margin-bottom: 20px;
}

.feature-title h1::after {
    display: none;
}

.feature-title h6 {
    margin-bottom: 3px;
}

.feature-title .wp-block-media-text__media {
    overflow: hidden;
    position: relative;
}

.feature-title .wp-block-media-text__media::before,
.feature-title .wp-block-media-text__media::after {
    bottom: 0;
    content: '';
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    transform: translateZ(0) scale(-1.02, 1.02);
    z-index: 1;
}

.feature-title .wp-block-media-text__media::before {
    background: rgb(128,208,219);
    background: -moz-linear-gradient(top,  rgba(128,208,219,1) 0%, rgba(10,157,168,1) 100%);
    background: -webkit-linear-gradient(top,  rgba(128,208,219,1) 0%,rgba(10,157,168,1) 100%);
    background: linear-gradient(to bottom,  rgba(128,208,219,1) 0%,rgba(10,157,168,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80d0db', endColorstr='#0a9da8',GradientType=0 );
    clip-path: url(#swoosh-gradient);
    -webkit-clip-path: url(#swoosh-gradient);
    width: 135px;
    z-index: 2;
}

.feature-title .wp-block-media-text__media::after {
    background: #E9F2FA;
    clip-path: url(#swoosh-light);
    -webkit-clip-path: url(#swoosh-light);
    left: -33px;
    width: 165px;
}

.feature-title .wp-block-media-text__content {
    padding: 0 10px 0 0;
    max-width: calc(1140px / 2);
}

.feature-title .dashicons {
    margin: 0 auto 5px;
    position: relative;
    transition: color .2s ease-in-out;
    width: auto;
}

.feature-title .dashicons:focus,
.feature-title .dashicons:hover {
    cursor: pointer;
}

.feature-title .dashicons::before {
    background-color: #00223e;
    border-radius: 100%;
    color: #e9f2fa;
    font-size: 15px;
    left: 0;
    padding: 2px;
    position: absolute;
    top: 5px;
    transition: background-color .2s ease-in-out;
}

.feature-title .dashicons-phone::before {
    font-size: 30px;
    padding: 5px;
    top: 2px;
    transform: rotateY(180deg);
}


.feature-title .dashicons:focus::before,
.feature-title .dashicons:hover::before {
    background-color: #0a9da8;
}

.feature-title .dashicons-phone a {
    color: #00223e;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 48px;
    font-weight: 400;
    padding-left: 45px;
    text-decoration: none;
}

.feature-title .dashicons-phone:focus a,
.feature-title .dashicons-phone:hover a {
    color: #0a9da8;
}

.resume-list {
    position: relative;
}

.resume-list::before {
    background-color: #fafafa;
    content: '';
    display: block;
    height: 100%;
    left: -3em;
    position: absolute;
    top: 0;
    width: calc(100vw + 3em);
    z-index: 0;
}

.resume-list p {
    margin-bottom: 0;
}


/* Post Type Display
---------------------------------------------------------------------------- */

body.post-type-archive-videos .site-inner {
    padding-bottom: 60px;
}

body.post-type-archive-videos .content {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 3%;
    position: relative;
}

body.post-type-archive-videos .archive-header {
    flex-basis: 100%;
    margin-bottom: 30px;
}

body.post-type-archive-videos .archive-title {
    font-size: 35px;
}

body.post-type-archive-videos .content article {
    flex: 0 0 47%;
    margin-bottom: 20px;
    position: relative;
}

body.post-type-archive-videos .video-embed div.wpvl_auto_thumb_box,
body.post-type-archive-videos .video-embed img.video_lightbox_auto_anchor_image {
    cursor: pointer;
    height: 100%;
    width: 100%;
}

body.post-type-archive-videos .video-embed div.wpvl_auto_thumb_play {
    bottom: 5px;
    height: 30px;
    left: auto;
    right: 5px;
    top: auto;
    width: 30px;
    z-index: 1;
}

body.post-type-archive-videos .content article .wpvl_auto_thumb_box_wrapper {
    height: 0;
    opacity: 1;
    padding-bottom: 56%;
    position: relative;
    transition: opacity .2s ease-in-out;
}

body.post-type-archive-videos .content article .wpvl_auto_thumb_box_wrapper:focus,
body.post-type-archive-videos .content article .wpvl_auto_thumb_box_wrapper:hover {
    opacity: .8;
}

body.post-type-archive-videos .content article .wpvl_auto_thumb_box {
    position: absolute;
}

body.post-type-archive-videos .content article .video_lightbox_auto_anchor_image {
    object-fit: cover;
}

body.post-type-archive-videos .entry-title {
    background-color: rgba(117,203,214,0.9);
    color: #fff;
    font-size: 21px;
    margin: 0;
    padding: 10px 20px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: calc(50% - 15px);
    transform: translateY(-50%);
    width: 100%;
}

body.single .video-embed {
    margin-bottom: 100px;
}

body.single .wpvl_auto_thumb_box_wrapper {
    height: 0;
    padding-bottom: 56%;
    position: relative;
    width: 100%;
}

body.single .wpvl_auto_thumb_box_wrapper .wpvl_auto_thumb_box {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

body.single .wpvl_auto_thumb_box_wrapper .wpvl_auto_thumb_box img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

div.wpvl_auto_thumb_play {
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}


/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (min-width: 601px) {

    body.post-type-archive-videos .entry-title {
        font-size: 26px;
    }
    
    }

@media only screen and (max-width: 1199px) {
    
    .feature-title .wp-block-media-text__content {
        max-width: calc(960px / 2);
    }
    
}

@media only screen and (max-width: 999px) {
    
    .feature-title .wp-block-media-text__content {
        max-width: 90%;
    }
    
}

@media only screen and (max-width: 767px) {
    
    .feature-title .wp-block-media-text {
        display: block;
    }
    
    .feature-title .wp-block-media-text__media::before,
    .feature-title .wp-block-media-text__media::after {
        display: none;
    }
    
    .wp-block-media-text.is-image-fill .wp-block-media-text__media {
        height: 25vh;
        max-height: 400px;
        /*min-height: 0;*/
    }
    
    .feature-title .wp-block-media-text__content {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    
    body.post-type-archive-videos .content article {
        flex-basis: 100%;
    }
    
    body.post-type-archive-videos .entry-title {
        text-align: center;
    }
    
}

@media only screen and (max-width: 550px) {
    
    .feature-title .dashicons-phone::before {
        font-size: 18px;
        top: 1px;
    }
    
    .feature-title .dashicons-phone a {
        font-size: 32px;
        padding-left: 32px;
    }
    
}