/* styles for Front Page
*/
.nav-top + .fpage-widgets {
    padding-top: 50px;
}

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

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

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

.fpage-widgets section {
    padding: 0 5%;
    margin-bottom: 50px;
}

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

/* fPage Slider
--------------------------------------------- */
section#fpage-slider {
    position: relative;
    padding: 0;
    margin: auto auto 50px;
} 

.slideshow-inner {
    position: relative;
    display: flex;
    max-width: 100%;
    max-height: 900px;
    overflow: hidden;
    align-items: center;
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-delay: both;
    animation-delay: both;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}

.mySlides > a {
    height: 100%;
    width: 100%;
}

.slide1 .mySlides,
.mySlides.fade {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mySlides .slide-caption {
    display: block;
    position: absolute;
    font-weight: 300;
    line-height: 1.2;
    font-size: 1.7em;
    text-align: center;
    color: #222;
    background: var(--cps--secondary);
    width: 70%;
    height: auto;
    padding: 15px;
    z-index: 3;
}

.slide-pagi {
    position:absolute;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.slideshow-inner .prev, .slideshow-inner .next {
    cursor: pointer;
    padding: 10px;
    color: #222;
    font-size: 2em;
    height: 2em;
    width: 2em;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    transition: all .6s ease;
}

.slideshow-inner .next {
    float: right;
}

.slideshow-inner .prev {
    float: left;
}

.slideshow-inner .prev:before, .slideshow-inner .next:before {
    content: "\e943";
    position: absolute;
}

.slideshow-inner .prev:before {
    -webkit-transform: rotate( 90deg );
    -ms-transform: rotate( 90deg );
    transform: rotate( 90deg );
}

.slideshow-inner .next:before {
    -webkit-transform: rotate( -90deg );
    -ms-transform: rotate( -90deg );
    transform: rotate( -90deg );
}


.navidot{
    text-align: center;
    position: absolute;
    display: flex;
    width: 100%;
    height: 50px;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.navidot .dot {
    cursor: pointer;
    height: 2px;
    width: 15px;
    margin: 0 3px;
    background: #eee;
    display: inline-block;
    transition: background-color .6s ease
}

.navidot .active,
.navidot .dot:hover {
    background-color: #000
}

.slide1 + .navidot,
.slide1 .slide-pagi {
    display: none;
}

/* Fading animation */
@-webkit-keyframes fade {
    0% {opacity: .6} 
    100% {opacity: 1}
}

@keyframes fade {
    0% {opacity: .6} 
    100% {opacity: 1}
}

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

/* fPage Popular
--------------------------------------------- */
.nav-below nav + .fpage-widgets #popular-posts-section {
    padding-top: 50px;
}

#cps-popular .popular-posts {
    display: grid;
    column-gap: 1.5em;
    row-gap: 1.5em;
    align-items: center;
    justify-content: center;
}

#cps-popular .popular-posts.col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.popular-posts li {
    
    width: 100%;
    overflow: hidden;
}

.popular-posts li img{
    width: 100%;
    object-fit: cover;
    object-position:
    center;
    margin-bottom: 20px;
}

.popular-posts li a {
    display: flex;
    color: #222;
    position: relative;
    align-items: flex-end;
    justify-content: center;
    min-height: 200px;
}

.popular-posts li span.entry-title {
    width: 85%;
    padding: 15px;
    font-size: 18px;
    line-height: 1.2;
    position: absolute;
    text-align: center;
    z-index: 9999;
    text-transform: uppercase;
    background: var(--cps--secondary);
}

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

.fpage-widgets .enews,
.fpage-widgets section.enews-widget {
    background-color: var(--cps--primary);
    color: var(--cps--primary--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--secondary);
    color: var(--cps--secondary--font);
    padding: 11.5px;
    border: 1px solid var(--cps--secondary);
}

.fpage-widgets .enews-widget input#subbutton:hover {
    background: transparent;
    color: var(--cps--primary--font);
}

/* 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) {
    #header.fixed + .fpage-widgets{
        margin-top: 75px;
    }

#header.fixed + #fpage-popular.fpage-widgets {
    margin-top: 125px;
}

    header.fixed + div#container.fpage-content {
        margin-top: 75px;
    }

/* 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: 100px;
    }
}

@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) {
    #header.fixed + .fpage-widgets{
        margin-top: 50px;
    }

#header.fixed + #fpage-popular.fpage-widgets {
    margin-top: 100px;
}

    header.fixed + div#container.fpage-content {
        margin-top: 50px;
    }
    
    /* 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: 0 auto 10px;
        padding: 5px;
    }
}

@media only screen and (min-width: 1000px) {
    #cps-popular .popular-posts.col-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    #cps-popular .popular-posts.col-4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media only screen and (min-width: 651px) and (max-width: 999px) {  
    #cps-popular .popular-posts {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 650px) {
    #cps-popular .popular-posts,
    #cps-popular .popular-posts.col-3 {
        grid-template-columns: 1fr;
    }

    .popular-posts li span.entry-title,
    .mySlides .slide-caption {
        font-size: 1.2em;
    }

    .slide-pagi {
        opacity: 0;
        transition: .5s linear;
    }

    .slide-pagi:hover,
    .slideshow-inner:hover .slide-pagi {
        opacity: 1;
    }
}