/*

Theme Name: X – Child Theme
Theme URI: http://theme.co/x/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.0
Template: x
*/

body {
    background: #f3f3f3 url(images/white-waves.png) top left repeat !important; /* Gross override for theme styling */
    line-height: 1.5;
}

p {
    line-height: 1.7;
}

h1,
.h1 {
    font-size: 30px;   
}

h2,
.h2 {
    font-size: 26px;
}

h3,
.h3 {
    font-size: 20px;
}

h4,
.h4 {
    font-size: 16px;
}

h5,
.h5,
h6,
.h6 {
    font-size: 14px;
}

@media (min-width: 768px) {
    h1,
    .h1 {
        font-size: 38px;   
    }
    
    h2,
    .h2 {
        font-size: 30px;
    }
    
    h3,
    .h3 {
        font-size: 24px;
    }
    
    h4,
    .h4 {
        font-size: 20px;
    }
    
    h5,
    .h5,
    h6,
    .h6 {
        font-size: 18px;
    }
}

.x-text a {
    text-decoration: underline;
}

.x-text a:hover {
    text-decoration: none;
}

.c-gallery {
    display: flex;
    flex-wrap: wrap;
}

.c-gallery_item {
    border: 2px solid transparent;
    width: 100%;
}

.c-gallery_image {
    display: block;
    transition: filter 300ms ease-in-out;
    width: 100%;
}

.c-gallery_link:hover .c-gallery_image {
    filter: grayscale(1);
}

@media (min-width: 480px) {
    .c-gallery_item {        
        width: 50%;
    }
}

@media (min-width: 720px) {    
    .c-gallery_item {
        width: 33.3333%;
    }
}

.c-hero {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1600px;
}

.c-hero_left,
.c-hero_right {
    width: 100%;
}

.c-hero_left {
    align-items: center;
    display: flex;
    order: 2;
}

.c-hero_image {
    display: block;
    width: 100%;
}

@supports( object-fit: cover ) {        
    .c-hero_image {
        height: 75vw;    
        max-height: 600px;
        min-height: 300px;
        object-fit: cover;
        object-position: top center;
    }
    
    @media (min-width: 1024px) {
        .c-hero_image {
            height: auto;
            max-height: 100vh;
        }
    }
}


.c-hero_headline {
    background: hsla(205, 100%, 21%, .6);
    color: #fff;
    margin: 0;
    padding: 1.5em 32px .5em;
}

.c-hero_text {
    background: hsl(0, 0%, 98%);
    color: hsl(0, 0%, 13%);
    font-size: 1rem;
    padding: 32px;
    position: relative;
    z-index: 1;
}

.c-hero_content {
    position: relative;
}

.c-hero_content::after {
    border: 1em solid hsla(184, 65%, 59%, .6);
    bottom: 0;
    content: '';
    height: 25%;
    left: 1em;
    position: absolute;
    right: 1em;
    transform: translateY(1em);
}

@media (min-width: 768px) {    
    .c-hero_left,
    .c-hero_right {
        width: 50%;
    }
    
    .c-hero_left {
        order: 0;
        padding: 5%;
    }
    
    .c-hero_content::after {
        left: 0;
        right: 0;
        transform: translate(1em, 1em);    
    }
}

.x-feature-box-title {
    font-size: 1.285em;
}

.x-feature-box-text a {
    background-color: rgba(255,255,255,1);
    border-radius: 0.35em;
    box-shadow: 0em 0.15em 0.65em 0em rgba(0,0,0,0.25);    
    color: #222;
    font-size: 1em;
    margin-top: 1em;
    padding: 0.575em 0.85em 0.575em 0.85em;
}

.x-feature-box.left-text .x-feature-box-text {
    align-items: flex-start;    
    display: flex;
    flex-flow: column wrap;
}

@media (max-width: 639px) {    
    .x-feature-box.mobile-stack {
        display: block;
        text-align: center;
    }
    
    .x-feature-box.mobile-stack .x-feature-box-graphic-outer {
        margin: 0 !important; /* Override for inline styles */    
    }
    
    .x-feature-box.mobile-stack .x-feature-box-graphic {
        margin: 0 0 20px;
    }
    
    .x-feature-box.left-text .x-feature-box-text {
        align-items: center;    
    }
}
