/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme
 Author:       Will Baker
 Author URI:   https://zookri.com
 Template:     generatepress
 Version:      0.1
*/


header {
    margin: 0 auto;
    padding: 0 10%;
}

/*Primary navigation*/

#site-navigation {
    margin: auto;
}

.header-links {
    display: inline-block;
    width: 280px;
}

/*
.main-navigation {
    width:100%
}

.main-nav {
    width: 60% !important;
    margin:0 auto !important;
}

#menu-primary-navigation{
    justify-content: center;
}

.inside-navigation {
    justify-content: center !important;
}

*/

.main-navigation ul li:not(:last-child):not(ul ul li)::after {
background-color: #fff;
content: "";
height: 16px;
margin-top: -8px;
position: absolute;
right: -1px;
top: 50%;
width: 2px;
}

.main-navigation ul ul {
    width: 225px;   
}

.main-navigation ul ul li {
    padding: 0.375rem 0;
    border-bottom: solid 1px #000   
}


.header-social a {
    color: #00b9b4 !important; 
}

.header-social a:hover {
    color: #fff !important; 
}

a.gb-button-b430076b, a.gb-button-b430076b:hover {
    color: #333333 !important;
}

/*Language switcher*/

#language-switcher button {
    padding: 0;
    margin: 0;
    line-height: 0;
    
}

  

/*Homepage hero*/

.background-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

.page-hero {
    position: relative;
    overflow: hidden;
}

.background-video-content {
    height:100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

video[poster] {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/*Wordpress divider*/
.wp-block-separator {
    border:none;
}

hr {
    background-color: rgb(245 245 245 / 45%);
    border: 0;
    height: 1px;
    margin-bottom: 56px;
    margin-top: 56px;
}

/*Font styling*/
.noto-teal {
    color:#00b9b4;
    font-style: italic;

}

.ed-quote::before{
    content: url("/wp-content/uploads/2022/10/quotes.svg");
    display: block;
    width: 56px;    
    margin-bottom: 16px;
}

.ed-quote::after{
    content: '';
    display: block;
    margin-top: 16px;
    width: 465px;
    height: 8px;
    background-color: #00b9b4;

    width: 100%;
    
}


.strapline-teal h2::after{
    content: '';
    display: block;
    margin-top: 8px;
    width: 200px;
    height: 2px;
    background-color: #ffffff;
    float: right;
}

      

/*Clipped div*/

.clip-dark, .clip-mid, .clip-light, .clip-teal {
    position: relative;
}

.clip-dark::after, .clip-mid::after, .clip-light::after, .clip-teal::after {    
    content: "";
    transform: rotate(45deg) translate(-50%, -50%);
    display: block;
    width: 32px;
    height: 32px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -32px;
    z-index: 999;
}
.clip-dark::after  {
    background: #1a1a1a;    
}
.clip-mid::after  {
    background: #333333;    
}
.clip-light::after  {
    background: #4d4d4d;    
}
.clip-teal::after  {
    background: #00b9b4;    
}

/*Article text alignment*/
.story-text {
    text-align: right;
}

.story-text a:hover {
    color: #00b9b4;
}



/* Make YouTube videos inserted via WordPress oEmbed full-width */
figure.is-provider-youtube .wp-block-embed__wrapper {
    height:88vh;
}
.home-youtube .wp-block-embed__wrapper {
    height: inherit !important;
}


/* YouTube story hook */
.youtube-embed-container { 
    position: relative; 
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: auto;
} 

.youtube-embed-container iframe,
.youtube-embed-container object,
.youtube-embed-container embed { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Prezi story hook */
.prezi-embed-container{ 
    position: relative; 
   /*padding-bottom: 56.25%;*/
    overflow: hidden;
    max-width: 100%;
    height: 450px;
} 

.prezi-embed-container iframe,
.prezi-embed-container object,
.prezi-embed-container embed { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
}

.resource-buttons a {
    min-width: 19rem;
}

.button-download {
    font-weight: 600;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: transparent !important;
    background-image: url(/wp-content/uploads/2022/10/download-white.svg);
    background-position: right 0 top 0;
    background-repeat: no-repeat;
    background-size: 45px 45px;
    border: 1px solid #00b9b4;
    border-radius: 4px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: 1;
    padding: 15px 45px 15px 15px;
    text-transform: capitalize;
}

.button-download::first-letter {
    text-transform: uppercase;
}

.button-download:hover {
    color:#00b9b4 !important;
}

.gb-container.linked-container .gb-inside-container {
    position: relative;
}

.gb-container.linked-container a:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.gb-container.linked-container a {
    text-decoration: none;
}

.resource-download-list {
    display: flex;
}


.resource-download-list select {
    background-color: #1a1a1a !important;
    background-image: none;
    color: #fff;
    padding-right: 20px;
    margin-right: 10px;
}


.resource-download-list a {
flex-grow: 1;
background-position: center;
}

.resource-download-list a:hover {
    background-color: #00b9b4;

}

.additional-resource-btns {
    line-height: 16px;
}



/*Stories layout - alternate list layout*/
article:nth-child(even) .alternating-layout {
    flex-direction: row-reverse;
    } 
    

    .site-footer .gb-button-wrapper {
        justify-content: center !important;
    }

/*More stories grid*/
.more-stories  {
    position: relative;
    width: 100%;
}

.more-stories img{
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
}

.more-stories .middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}


.more-stories:hover img {
    opacity: 0.3;
}
  
  .more-stories:hover .middle {
    opacity: 1;
}

.more-stories h3 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25em;
}

.more-stories .text a {
    color:#fff;
    
}

/*Formidable forms*/
.frm_form_title {
    display: none;
}

.frm_forms label {
    font-weight: 700;
}

.frm_fields_container input, .frm_fields_container textarea {
  margin: 10px 0;
}


.frm_fields_container input[type='checkbox'] {
    transform: scale(1.5);
    -ms-transform: scale(1.5); /* IE */
    -moz-transform: scale(1.5); /* FF */
    -webkit-transform: scale(1.5); /* Safari and Chrome */
    -o-transform: scale(1.5); /* Opera */
    margin-right: 15px;    
}

.frm_submit {
  display: flex;
  justify-content: end;
  padding-top: 32px;
}

.frm_message {
    font-weight: bold;
}


.frm_message p {
    text-align: center;
}

.frm_error {
    color: red;
}

/* media queries */


    @media (max-width: 768px) {


        /* Menu */

        .header-links {
            display: none;
        }

        .main-navigation .menu-toggle {
            font-size: 1.5rem !important;
            color: #00b9b4;
        }

        .menu-item {
            border-bottom: solid 1px #000;
        }

        .sub-menu .menu-item {
            border-bottom: none;
        }
        .dropdown-menu-toggle {
            color: #000;
        }

        .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a {
            color: #000;
        }

        .main-navigation ul li:not(:last-child):not(ul ul li)::after {
            display: none;
        }

        .main-navigation .main-nav ul ul li a {
            line-height: normal;
            padding: 0px 20px;
            font-size: 14px;
        }

        .slideout-navigation.do-overlay .menu-item-has-children .dropdown-menu-toggle {
            border-left: none !important;
            padding: 0 10px;
            margin: 0 0 0 10px;
        }

        .slideout-navigation .main-nav, .slideout-navigation .slideout-widget:not(:last-child) {
            margin-bottom: 12px !important;
        }

        .slideout-navigation button.slideout-exit {
            padding-top: 8px !important;
            padding-bottom: 16px !important;
            font-size: 20px !important;
        }

        .off-canvas-social .gb-button-wrapper {
            color: #fff;
        }

        /*Homepage hero*/
        
        .background-video-content img {
            max-width: 80%;
        }

        .ed-quote::before {
            content:none;
        }    

        /*Stories*/
        .story-text {
            text-align: center;
        }


    }


    @media (max-width: 1172px) and (min-width: 769px) { /* Header centers */
        .site-logo, .site-branding {
        margin-bottom: 0;
        }
        .header-links {
            margin-top: 16px;
        }
}
    
    @media (min-width: 769px) and (max-width: 1024px) {
    /* CSS in here for tablet only */
    }
    
    @media (min-width: 1025px) {
    /* CSS in here for desktop only */

    }


