/**
 * LMG Advanced Imaging Services.
 *
 * This file adds the homepage styles to the LMG Advanced Imaging Services Theme.
 *
 * @package LMG Advanced Imaging Services
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
 */


/* Defaults
---------------------------------------------------------------------------- */

.section.alignfull > div {
    margin-inline: auto;
    max-width: 90%;
}

.section.alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {
    padding: 0;
}

.content article {
    margin: 0;
}

/* Feature
--------------------------------------------- */

.feature {
    min-height: 0;
    padding: 15vh 0;
    position: relative;
}

.feature::before {
    background: -moz-linear-gradient(left,  rgba(15,52,76,1) 0%, rgba(15,52,76,0.8) 70%, rgba(15,52,76,0) 100%);
    background: -webkit-linear-gradient(left,  rgba(15,52,76,1) 0%,rgba(15,52,76,0.8) 70%,rgba(15,52,76,0) 100%);
    background: linear-gradient(to right,  rgba(15,52,76,1) 0%,rgba(15,52,76,0.8) 70%,rgba(15,52,76,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0f344c', endColorstr='#000f344c',GradientType=1 );
    content: '';
    display: block;
    left: 0;
    height: 100%;
    opacity: 1;
    position: absolute;
    top: 0;
    width: 66vw;
    z-index: 1;    
}

.feature > div {
    position: relative;
    z-index: 2;
}

.feature img {
    z-index: 0;
}

.feature .wp-block-cover__inner-container > .wp-block-group {
    max-width: 100%;
    width: 570px;
}

.feature h1 {
    margin-bottom: 18px;
    text-shadow: 0 0 20px #000;
}

.feature p:first-of-type {
    margin-bottom: 5px;
}

.feature p {
    font-weight: 300;
    line-height: 1.25;
    text-shadow: 0 0 30px #000;
}



/* Welcome
--------------------------------------------- */

.welcome {
    position: relative;
    
}

.welcome .swoosh {
    left: 50%;
    min-width: 1200px;
    pointer-events: none;
    position: absolute;
    top: -120px;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
}

.welcome a.wp-block-button__link {
    font-weight: 400 !important;
}

.welcome .services {
    font-size: 18px;
}

.welcome .services .gb-layout-column-wrap {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 3%;
    justify-content: center;
}

.welcome .services .gb-layout-column-wrap .gb-block-layout-column {
    flex: 0 0 17%;
}

.welcome .services .wp-block-image {
    height: 150px;
    margin-bottom: 10px;
    margin-inline: auto;
    position: relative;
    width: 150px;
}

.welcome .services .wp-block-image figure {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
}

.welcome .services .wp-block-image::before {
    background-color: #fafafa;
    border: 1px solid #e6e7e8;
    border-radius: 100%;
    content: '';
    display: block;
    height: 150px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 150px;
}

.welcome .services img {
    position: relative;
    width: 75px;
}

.welcome .services p {
    line-height: 1.25;
}

.welcome .services strong {
    display: block;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 3px;
}

/* Resources
--------------------------------------------- */

.resources .gb-2-col-wideleft>.gb-layout-column-wrap {
    grid-template-columns: 1.2fr .8fr;
}

.resources .gb-block-accordion {
    background-color: #fff;
    border-radius: 10px;
    outline: none;
    padding: 5px;
}

.resources .gb-block-accordion .gb-accordion-title {
    background-color: transparent;
    color: #00843f;
    outline: none;
    padding-left: 30px;
    text-indent: -19px;
}

.resources .gb-block-accordion details[open] .gb-accordion-title,
.resources .gb-block-accordion .gb-accordion-title:hover {
    color: #0060ae;
    cursor: pointer;
}

.resources .gb-block-accordion .gb-accordion-text {
    padding-top: 0;
}

.resources .gb-block-accordion p {
    font-size: 16px;
}

.resources .gb-block-accordion p:last-child {
    margin: 0 0 5px;
}

.resources .wp-block-button.is-style-outline .wp-block-button__link:focus, 
.resources .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #0060ae;
    border-color: #0060ae;
    box-shadow: none !important;
    color: #fff !important;
}

/* First Visit
--------------------------------------------- */

.first-visit {
    position: relative;
}

.first-visit::before {
    background: -moz-linear-gradient(left,  rgba(15,52,76,1) 0%, rgba(15,52,76,0.5) 70%, rgba(15,52,76,0) 100%);
    background: -webkit-linear-gradient(left,  rgba(15,52,76,1) 0%,rgba(15,52,76,0.5) 70%,rgba(15,52,76,0) 100%);
    background: linear-gradient(to right,  rgba(15,52,76,1) 0%,rgba(15,52,76,0.5) 70%,rgba(15,52,76,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0f344c', endColorstr='#000f344c',GradientType=1 );
    content: '';
    display: block;
    left: 0;
    height: 100%;
    opacity: 1;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 1;
}

.first-visit > div {
    position: relative;
    z-index: 2;
}

.first-visit .wp-block-cover__inner-container > .wp-block-group {
    max-width: 100%;
    width: 570px;
}

.first-visit h2 {
    margin-bottom: 18px;
    text-shadow: 0 0 30px #000;
}

.first-visit p:first-of-type {
    margin-bottom: 5px;
}

.first-visit p {
    font-weight: 300;
    line-height: 1.25;
    text-shadow: 0 0 40px #000;
}


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

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

	.section.alignfull > div {
        max-width: 960px;
    }

}

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

	.section.alignfull > div {
        max-width: 1140px;
    }

}

@media only screen and (max-width: 1199px) {
    
    .welcome .services .gb-layout-column-wrap .gb-block-layout-column {
        flex-basis: 30%;
    }
    
}

@media only screen and (max-width: 900px) {
    
    .resources .gb-layout-column-wrap {
        display: block;
    }
    
    .resources .gb-block-layout-column:nth-child(1) {
        margin-bottom: 60px;
    }
    
}

@media only screen and (max-width: 767px) {
    
    .feature {
        text-align: center;
    }

    .feature::before {
        opacity: 1;
        width: 100vw;
    }
    
    .feature .wp-block-cover__inner-container > .wp-block-group {
        margin-inline: auto;
    }
    
    .feature h1 {
        font-size: 48px;
    }
    
    .feature .wp-block-buttons.is-layout-flex {
        justify-content: center;
    }
    
}

@media only screen and (max-width: 650px) {
    
    .welcome .services .gb-layout-column-wrap .gb-block-layout-column {
        flex-basis: 100%;
    }
    
}

@media only screen and (max-width: 415px) {
    
    .feature h1 {
        font-weight: 300 !important;
        margin: 10px 0 20px;
    }
    
    .first-visit h2 {
        font-size: 42px;
    }
    
}