.worldview-wrap {
    font-size: 18px;
    padding: 0 0 2em 0;
    width: fit-content;
    width:-moz-fit-content;
}

.worldview-wrap .hero {
    background-image: url("/img/domain/prayvotestand/Bible1600x500.jpg");
    background-position: 0 -15rem;
    background-repeat: no-repeat;
    width: 100%;
    height: 250px;
}

.worldview-wrap .hero-container {
    padding: 0;
    margin: 0;
    align-content: center;
}

.worldview-wrap .hero-container h2,
.worldview-wrap .hero-container p {
    display: flex;
    justify-content: center;
}

.worldview-wrap .bp-intro h2, .worldview-wrap .bp-intro p {
    color: #000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1em;
}

.worldview-wrap .series {
    /*display: flex;*/
    /*flex-direction: column;*/
    /*justify-content: space-between;*/
    /*padding: 1em;*/
}

.worldview-wrap .series h2 {
    text-transform: capitalize;
}
.worldview-wrap .series-content {
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: space-between;*/
    /*padding: 30px 0;*/
}

.worldview-wrap .series-content_container {
    width: calc(100% / 1.9 - 1em);
}
.worldview-wrap .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #003366;
}
.worldview-wrap .series-content_pub {
    display: flex;
    align-self: center;
    margin: 1rem;
    position: relative;
    text-align: center;
}
.worldview-wrap .series-content_pub:hover .overlay {
    opacity: 0.8;
}
.text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.worldview-wrap .series-content_grid {
    display: grid;
    grid-gap: 15px;
    justify-items: center;
    padding: 30px 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* Start Modal Style */
.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
    overflow: scroll;
}
.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}
.modalDialog > div {
    width: fit-content;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: #fff;
    background: -moz-linear-gradient(#fff, #999);
    background: -webkit-linear-gradient(#fff, #999);
    background: -o-linear-gradient(#fff, #999);
}
.modalDialog-container {
    width: 100%;
    max-width: 65%;
}
.worldview-wrap .modalDialog>div {
    top: 20px;
}

.close {
    /*background: #000;*/
    color: #000;
    line-height: 25px;
    position: absolute;
    right: 2px;
    text-align: center;
    top: -2px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    /*-webkit-border-radius: 12px;*/
    /*-moz-border-radius: 12px;*/
    /*border-radius: 12px;*/
    /*-moz-box-shadow: 1px 1px 3px #000;*/
    /*-webkit-box-shadow: 1px 1px 3px #000;*/
    /*box-shadow: 1px 1px 3px #000;*/
}
.close:hover {
    background: darkgray;
}
/* End Modal Style */


 .worldview-wrap .grid-item, .worldview-wrap a.grid-item {
     color: #fff;
     border: solid 1px #003366;
     width: 100%;
     text-align: center;
     transition: all 0.5s ease;
     padding: 1em;
     font-size: 15px;
     background: #003366;
     text-decoration: none;
     display: flex;
     justify-content: center;
     align-items: center;
     margin: 1em 0;
 }

 .worldview-wrap .grid-item:hover, .worldview-wrap a.grid-item:hover {
     filter: drop-shadow(0 0 10px rgba(0, 0, 0, .5));
 }

.worldview-wrap .series-content_summary h4 {
    text-transform: uppercase;
}

/*Media Queries */
@media screen and (min-width: 320px) {
    .worldview-wrap .series-content_grid {
        display: flex;
        flex-direction: column;
    }

    .worldview-wrap .series h2 {
        text-align: center;
    }

    .worldview-wrap .series-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .worldview-wrap .series-content_container {
        width: 100%;
    }
}

@media screen and (min-width: 576px) {
    .worldview-wrap a.grid-item {
        padding: 0.242em;
    }

    .worldview-wrap .modalDialog > div {
        width: auto;
        margin: auto;
    }
}

/*@media screen and (min-width: 674px) {*/
/*    .worldview-wrap .series {*/
/*        margin: 0 auto;*/
/*    }*/
/*}*/

@media screen and (min-width: 768px) {
    .worldview-wrap .series-content_grid {
        display: flex;
        flex-direction: column;
    }

    .worldview-wrap .series h2 {
        text-align: center;
    }

    .worldview-wrap .series-content {
        display: flex;
        flex-direction: column;
    }
    .worldview-wrap .series-content_summary {
        /*width:calc(100% / 2 - 1em);*/
        /*margin: auto;*/

    }
}

@media screen and (min-width: 900px){
    .worldview-wrap .series-content_grid {
        display: flex;
        flex-direction: column;
    }
    .worldview-wrap .series h2 {
        text-align: center;
    }
    .worldview-wrap .series-content {
    display: flex;
    flex-direction: column;
        align-items: center;
    }
    .worldview-wrap .series-content_grid {
    .worldview-wrap .series-content_grid {
        width:calc(100% / 2 - 1em);
        margin: auto;
    }
    }
    .worldview-wrap .grid-item, .worldview-wrap a.grid-item {
        padding: 1em 0.15em;
    }
}

@media screen and (min-width: 992px) {
    .worldview-wrap .series-content_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

    }
}

@media (min-width : 1200px) {
    .worldview-wrap .series-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .worldview-wrap .series-content_pub {
        width: 44%;
    }
    .worldview-wrap .series-content_container {
        width: 100%;
    }
    .worldview-wrap .series-content_grid {
        display: grid;
        grid-gap: 15px;
        justify-items: center;
        padding: 30px 0;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .worldview-wrap .series h2 {
        text-align: left;
    }

    .worldview-wrap .overlay {
        width: 250px;
    }

}