/**
 * Jack & Jill Co-op Preschool
 *
 * This file adds homepage styles to the Jack & Jill Co-op Preschool Theme.
 *
 * @package Jack & Jill Co-op Preschool
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
 */


/* Sections
---------------------------------------------------------------------------- */

.content > .entry {
    margin: 0;
}

.section {
    clear: both;
    position: relative;
}

.section > div {
    margin-left: 5%;
    margin-right: 5%;
    max-width: 90%;
}

.section.hide {
    display: none;
}

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

.feature {
    min-height: 0;
    padding: 0;
}

.feature .wp-block-cover__inner-container {
    padding: 50vh 0 60px;
}

.feature .wp-block-cover__inner-container > * {
    position: relative;
    z-index: 2;
}

.feature .value {
    background-color: rgba(154,186,173,.9);
    border-radius: 15px;
    padding: 30px 30px 25px;
}

.feature h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    margin: 0 0 10px;
}

.feature p {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    padding: 0 !important;
}

.feature p:last-child {
    margin: 0;
}

.feature .slider {
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 0;
}

.feature .slider,
.feature .slider > div,
.feature .slider .bx-wrapper,
.feature .slider .bx-viewport,
.feature .wp-block-gallery,
.feature .wp-block-gallery .bx-wrapper,
.feature .wp-block-gallery .bx-viewport,
.feature .wp-block-gallery .blocks-gallery-grid,
.feature .wp-block-gallery .blocks-gallery-item {
    height: 100% !important;
    width: 100% !important;
}

.feature .wp-block-gallery {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 1;
}

.feature .wp-block-gallery .blocks-gallery-grid {
    display: block;
    margin: 0;
}

.feature .wp-block-gallery .blocks-gallery-item,
.feature .slider .wp-block-image {
    height: 100%;
    width: 100% !important;
}

.feature .wp-block-gallery .blocks-gallery-item img {
    cursor: none;
    pointer-events: none;
}

/* CTA
--------------------------------------------- */

.cta {
    border-top: 10px solid #fff;
    color: #073340;
    font-size: 18px;
    font-weight: 400;
    padding: 50px 0;
}

.cta .gb-block-cta {
    display: flex;
    justify-content: space-between;
    margin: 0;
    min-height: 0;
    padding: 0 !important;
}

.cta .gb-cta-content {
    flex: 0 0 65%;
    text-align: left;
}

.cta .gb-cta-content h2 {
    color: #073340;
    font-size: 32px;
    font-weight: 600;
}

.cta .gb-block-cta .gb-cta-text {
    line-height: 1.25;
}

.cta .gb-cta-content p:last-child {
    margin: 0;
}

.cta .gb-cta-button {
    align-items: center;
    display: flex;
    flex: 0 0 25%;
}

.cta .gb-cta-button a {
    background-color: #073340;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 30px;
    text-transform: uppercase;
}

/* About
--------------------------------------------- */

.about {
    padding: 100px 0;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.33;
}

.about .gb-block-layout-column {
    width: auto;
}

.about .wp-block-image,
.about .wp-block-image > figure {
    margin-bottom: 15px;
}

.about h2 {
    font-size: 30px;
    font-weight: 300;
}

.about .wp-block-button {
    max-width: 100%;
    width: 275px;
}

.about .wp-block-button__link {
    width: 100%;
}

.about .wp-block-button__link:focus,
.about .wp-block-button__link:hover {

}

/* Quotes
--------------------------------------------- */

.quotes {
    background: #e8f1f7;
    background: -moz-linear-gradient(-45deg,  #e8f1f7 0%, #cde8dc 100%);
    background: -webkit-linear-gradient(-45deg,  #e8f1f7 0%,#cde8dc 100%);
    background: linear-gradient(135deg,  #e8f1f7 0%,#cde8dc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e8f1f7', endColorstr='#cde8dc',GradientType=1 );
    line-height: 1.33;
    padding: 120px 0;
    position: relative;
    text-align: center;
}

.quotes > div {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.quotes::before,
.quotes::after {
    animation: floatLeft 150s linear infinite;
    background: url("../../images/clouds.png") repeat-x bottom;
    background-size: cover;
    content: '';
    display: block;
    height: 100%;
    left: 0;
    opacity: .66;
    position: absolute;
    top: 0;
    width: 2583px;
    z-index: 0;
}

.quotes::after {
    animation-name: floatRight;
}

@keyframes floatLeft {
    0% { left: 2583px; }
    100% { left: 0; }
}

@keyframes floatRight {
    0% { left: 0; }
    100% { left: -2583px; }
}

.quotes .wp-block-group__inner-container {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.quotes .bx-wrapper .bx-controls {
    bottom: -100px;
}

.quotes .quote-desc {
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    position: relative;
}

.quotes .quote-desc::before,
.quotes .quote-desc::after {
    content: '"';
    display: inline;
}

.quotes .quote-desc p {
    display: inline;
}

.quotes .quote-name {
    font-size: 21px;
    font-weight: 700;
    margin-top: 40px;
}

/* Details
--------------------------------------------- */

.details {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    padding: 30px 0;
}

.details.first {
    padding-top: 100px;
}

.details.last {
    padding-bottom: 100px;
}

.details .wp-block-media-text__media {
    border-radius: 15px;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: calc(100% + 80px);
}

.details:nth-child(odd) .wp-block-media-text__media {
    grid-column: 2;
    left: 0;
    margin-left: 8%;
}

.details:nth-child(even) .wp-block-media-text__media {
    left: calc(-80px - 8%);
    margin-right: 8%;
}

.details .wp-block-media-text__content {
    margin: 0;
    max-width: none;
    padding-bottom: 75px;
    padding-top: 75px;
}

.details:nth-child(odd) .wp-block-media-text__content {
    grid-column: 1;
    padding-left: 0;
}

.details:nth-child(even) .wp-block-media-text__content {
    padding-right: 0;
}

.details img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.details h2 {
    font-size: 30px;
    font-weight: 300;
}


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

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

	.section > div {
        margin-left: auto;
        margin-right: auto;
        max-width: 960px;
    }
	
}

@media only screen and (min-width: 1200px) {
    
    .section > div {
        max-width: 1140px;
    }
    
}

@media only screen and (max-width: 999px) {
    
    .cta .gb-block-cta {
        display: block;
    }
    
    .cta .gb-cta-content {
        text-align: center;
    }
    
    .cta .gb-cta-button a {
        margin: 15px auto 0;
    }
    
    .about > div {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
}

@media only screen and (max-width: 767px) {
    
    .about > div {
        display: block;
    }
    
    .about .gb-block-layout-column {
        margin-bottom: 40px;
    }
    
    .about .gb-block-layout-column:last-child {
        margin-bottom: 0;
    }
    
    .quotes .quote-desc {
        font-size: 21px;
    }
    
    .quotes .quote-name {
        font-size: 18px;
    }
    
    .details.wp-block-media-text {
        display: block;
    }
    
    .details:nth-child(odd) .wp-block-media-text__media,
    .details:nth-child(even) .wp-block-media-text__media {
        left: 0;
        margin: 0 0 30px;
        max-height: 75vh;
        padding: 0;
        width: 100%;
    }
    
    .details:nth-child(odd) .wp-block-media-text__content,
    .details:nth-child(even) .wp-block-media-text__content {
        padding: 0;
        text-align: center;
    }
    
    .details .wp-block-buttons {
        display: block;
    }
    
}

@media only screen and (max-width: 650px) {
    
    .feature .value {
        padding: 30px 5% 25px;
    }
    
    .feature h1 {
        font-size: 34px;
        margin-bottom: 20px;
    }
    
    .feature p {
        font-size: 21px;
    }
    
}

@media only screen and (min-height: 768px) {

    .feature .wp-block-cover__inner-container {
        padding-top: 450px;
    }
    
}