/* styles for Front Page
*/

#container + #container {
    margin-top: 0;
}

.navitop + .fpage-widgets {
    padding-top: 50px;
}

.entry-content > *:last-child {
    margin: inherit;
}

.fpage-wrap,
.fpage-widgets-wrap,
.fpage-widgets section {
    max-width: 1440px;
    margin: auto;
}

.fpage-widgets section {
    padding: 0 3%;
    margin-top: 30px;
}

.fpage-widgets .widget-container h3.widget-title {
    border: 0;
    font-size: 28px;
    font-size: 1.75em;
    text-transform: uppercase;
}

#container.fpage-content {
    margin-top: 0;
    margin-bottom: 0;
}

/* Featured Content
--------------------------------------------- */
.fpage-widgets #fpage-featured {
    display: flex;
    grid-gap: 1.3em;
    justify-content: center;
}

#fpage-featured .fitem {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    align-items: center;
    justify-content: center;
    color: var(--cps--primary--font);
}

#fpage-featured .fitem h2 {
    width: 80%;
    font-weight: 300;
    text-align: center;
    position: absolute;
    border-radius: 8px;
    padding: 10px 20px;
    transform: scale(1);
    text-transform: uppercase;
    border: 2px solid #ffffff;
    transition: all .5s linear;
    font-size: calc(15px + 0.25vw);
    background: var(--cps--primary);
    outline: 5px solid var(--cps--primary);
}

#fpage-featured .fitem h2:hover {
    transform: scale(1.05) translateY(0);
    color: inherit;
    opacity: 1;
    color: inherit;
}

#fpage-featured .fitem img {
    object-fit: cover;
    width: 100%;
    padding: 0;
    transition: all .3s linear;
}

#fpage-featured #featured-3 {
    margin-right: 0;
    margin-bottom: 0;
}

#fpage-featured img:hover {
    background: #fff;
    padding: 1px;
}

/* fPage Sub Widget
--------------------------------------------- */
.fpage-widgets .enews {
    margin: auto;
}

.fpage-widgets .enews,
.fpage-widgets section.enews-widget {
    background-color: var(--cps--secondary);
    color: var(--cps--secondary--font);
}

.fpage-widgets .enews  h3.widget-title {
    margin-bottom: 5px;
}

.fpage-widgets .enews-widget form {
    text-align: center;
    display: flex;
    align-items: center;
}

.fpage-widgets .enews-widget form + p {
    margin-top: 5px;
    margin-bottom: 0;
}

.fpage-widgets .enews-widget input {
    line-height: 1.5;
    text-align: center;
}

.fpage-widgets .enews-widget input#subbutton {
    background: var(--cps--primary);
    color: var(--cps--primary--font);
    padding: 11.5px;
    border: 0;
    outline: 0 solid var(--cps--primary);
}

.fpage-widgets .enews-widget input#subbutton:hover {
    outline-width: 1px;
}

.header-area + .fpage-widgets section.enews-widget {
    margin-top: 0;
}

/* widget above footer
------------------------------------------ */
.fpage-footer section:last-child {
    margin-bottom: 0;
}

.fpage-footer .fpage-wrap {
    padding: 20px 2%;
    background: #fff;  
}

.fpage-widgets.fpage-footer.widget-area .wrap {
    width: 100%;
    margin: 0 auto;
    padding: 5px 0;
}

.fpage-widgets.fpage-footer .widget {
    margin-bottom: 0;
}

.fpage-widgets.fpage-footer .widget-container h3.widget-title {
    padding: 5px;
    border: 0;
}

.front-page #container.fpage-container {
    max-width: 100vw;
    margin: 0 auto;
}

.front-page .entry-content .alignfull:first-child {
    margin-top: 0;
}

/* Animate Site - Keyframes
------------------------------------------------------------ */
.fadeup-effect {
    opacity: 0;
}
/* fadeInUp
----------------------------------- */

@-webkit-keyframes fadeInUp {
    0% {opacity: 0;-webkit-transform: translateY(20px);}
    100% {opacity: 1;-webkit-transform: translateY(0);}
}

@keyframes fadeInUp {
    0% {opacity: 0;transform: translateY(20px);}
    100% {opacity: 1;transform: translateY(0);}
}

/* Fadeup Effect
--------------------------------- */
.js .fadeup-effect {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

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

/* fpage Sub
--------------------------------------------- */
    .fpage-widgets .enews {
        padding: 30px 30px 40px;
    }
    
    .fpage-widgets .enews-widget p {
        margin-bottom: 5px;
    }
    
    .fpage-widgets .enews-widget form {
        margin: auto;
        flex: 2;
    }

    .fpage-widgets .enews-widget input {
        margin: 0 5px 0 0;
    }

    .fpage-widgets .enews-widget input:last-child {
        margin-right: 0;
    }

    .front-page #container.fpage-container-i {
        margin-top: 0;
    }

    .fpage-widgets + #container {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 940px) {
    h2.fpage-title-section {
        font-size: 220%;
        line-height: 1.5;
    }
}

@media only screen and (max-width: 899px) {
    .fpage-widgets section {
        padding: 0 5%;
    }

    /* Home Sub
    --------------------------------------------- */
    .fpage-widgets .enews {
        padding: 5%;
    }

    .fpage-widgets .enews-widget form {
        width: 80%;
        margin: auto;
        flex-wrap: wrap;
    }

    .fpage-widgets .enews-widget input {
        margin: 0 0 5px;
    }

    .fpage-widgets .enews-widget input:last-child {
        margin-bottom: 0;
    }

    .fpage-widgets .enews-widget p {
        width: 80%;
        margin-bottom: 10px;
        padding: 5px;
    }
}

@media only screen and (max-width: 719px) {
    .fpage-widgets #fpage-featured {
        flex-wrap: wrap;
        column-gap: 4%;
    }

    #fpage-featured .fitem {
        width: 48%;
    }

    #fpage-featured > .fitem:only-child,
    #fpage-featured > .fitem:nth-child(1) +  .fitem:nth-child(2) + .fitem:last-child {
        width: 100%;
    }
}