/*
Theme Name:  Illdy Child Theme.
Theme URI:  https://colorlib.com/wp/support/illdy/ 
Template:  illdy
Version:  1.0             
*/

/*

TABLE OF CONTENTS:

    (101)   HOMEPAGE
        (101-1)     Resource Buttons
        (101-2)     Faith Crisis book bundle
        (101-3)     Documentaries grid section
        (101-4)     Faith Crisis Ad (LDS Answers)
        (101-5)     Latest News section
        (101-6)     "Strengthen Faith" and "Changing Lives" area

    (102)   SHORTCODE
        (102-1)     Simple JSF Button (Shortcode: simpleJsfButton_sc)
        (102-2)     Category List JSF Shortcode Styling (Shortcode: categoryListJsfSC)
        (102-3)     Post List 1 (Shortcode: postList1)
        (102-4)     Post List 2 (Shortcode: postList2)

    (103)   PAGES
        (103-1)     Documentaries page

    (104)   MEDIA QUERIES

    (105)   FOOTER

    (106)   NAVIGATION MENU

    (107)   POSTS

    (108)   HEADER

    

*/



/* (101) HOMEPAGE CSS */

/* (101-1) Resource buttons */
@media all and (max-width: 300000000650px) {
    .sub-wrapper {
        width: 1500px;
        grid-template-areas: 
            "documentaries multimedia scripture scholar connect store";
        grid-template-columns: repeat(6, 1fr);
    }
    .service-wrapper {
        height: 175px;
    }
    .title-text {
        font-size: 23px;
    }
    .res-subtitle {
        font-size: 16px;
    }
    #doc-title {
        margin: 100px 0px 40px 0px;
    }
}

.wrapper {
    position: absolute;
    top: -50px;
    transition: 1s;
}

.outer-wrapper {
    width: 80%;
    margin: 0 auto;
    position: relative;
    height: 150px;
}

.sub-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    margin: 0 auto;
    line-height: 0;
    grid-gap: 5px;
}

#documentaries  { grid-area: documentaries; }
#multimedia     { grid-area: multimedia; }
#scripture      { grid-area: scripture; }
#scholar        { grid-area: scholar; }
#connect        { grid-area: connect; }
#store          { grid-area: store; }

.service-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 175px;
    background-color: #6E0000;
    transition: 0.5s ease;
    display: inline-block; 
    box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.75);
}

.service-wrapper:hover {
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.50);
}
    
.service-wrapper-inner {
    height: 100%;
    width: 100%;
    position: absolute;
    background: rgba(32, 32, 32, 0.8);
    color: white;
    transition: 0.5s ease;
    text-align: left;
    z-index: 2;
}

.swi-content {
    padding: 10px;
}

.res-subtitle {
    padding: 0px 0px 8px 0px;
    font-weight: bold;
}

/* Height of the ___ bar with buttons */
.swi-1, .swi-2, .swi-3 { top: 200px; }

.service-wrapper:hover .swi-1 { top: 0px; }
.service-wrapper:hover .swi-2 { top: 0px; }
.service-wrapper:hover .swi-3 { top: 0px; }

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

.img-parent-cover {
    width: 100%;
    height: 100%;
}

/* bg image fades in on :hover */
.service-wrapper img.cover {
    width: 100%;
    transition: 0.5s ease;
    opacity: 0.2;
    filter: grayscale(100%);
}

.service-wrapper:hover img.cover {
    opacity: 1;
    filter: grayscale(0%);
}

div#imagescroll {
    transition: 1.5s;
}

div#imagescroll:hover {
    margin-top: -375px;
    transition-delay: 1s !important;
    transition: 13s ;
}

.service-wrapper-inner .res-subtitle, .description {
    font-size: 16px;
}

.title-text {
    margin: 0 auto;
    top: 35%;
    font-family: lato black;
    letter-spacing: 0.7px;
    line-height: 1.4;
}

.service-wrapper .title-text {
    position: absolute;
    text-align: center;
    color: white;
    font-size: 23px;
    transition: 0.5s ease;
    width: 80%;
    font-family: roboto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    z-index: 1;
}
    
div.service-wrapper-inner .res-subtitle {
    font-family: roboto, arial;
}

.res-button {
    padding: 8px 10px;
    margin: 3px 1px;
    width: auto;
    color: white;
    text-transform: uppercase;
    font-size: 11px;
    /* font-family: lato; */
    font-weight: 800;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    word-wrap: break-word;
    line-height: 1;
}

.service-wrapper:hover .title-text{
    opacity: 0;
}

.wrapper a:link, .wrapper a:visited, .wrapper a:hover, .wrapper a:active {
    color: white;
    text-decoration: none;
}

ul.postsbycategory a:link, ul.postsbycategory a:visited, ul.postsbycategory a:hover, ul.postsbycategory a:active {
    color: white;
    text-decoration: none;
}

/* .res-subtitle heading + .res-subtitle hover */
.res-subtitle {
    transition: 0.3s;
    line-height: 1.4;
}

.res-subtitle:hover {
    color: #c1c1c1;
}

/* "See more" text + animate in */
div.service-wrapper-inner .res-subtitle:not(.no-see-more):after {
    content: 'See more' ;
    font-size: 11px;
    color: yellow;
    padding-left: 0px;
    opacity: 0;
}

.service-wrapper:hover .res-subtitle:after {
    opacity: 1;
    transition: 0.7s;
    padding-left: 10px;
    transition-delay: 1s;
}

.description { 
    margin-top: 20px; 
    transition-delay: 0.3s; 
    transition-duration: 0.6s; 
    transition-timing-function: ease-out; 
    opacity: 0.3;
    line-height: 0;
}
    
.service-wrapper:hover .description {
    margin-top: 0px; opacity: 1;
}

.service-wrapper:hover #reference, .service-wrapper:hover #docs, .service-wrapper:hover #papers, .service-wrapper:hover #wiki, .service-wrapper:hover #answers, .service-wrapper:hover #faqs, .service-wrapper:hover #teachings, .service-wrapper:hover #jod, .service-wrapper:hover #mylds, .service-wrapper:hover #ages, .service-wrapper:hover #ebooks, .service-wrapper:hover #audio, .service-wrapper:hover #ziontube, .service-wrapper:hover #maps, .service-wrapper:hover #timeline, .service-wrapper:hover #raisebar, .service-wrapper:hover #jsfFacebook, .service-wrapper:hover #jsfEvents, .service-wrapper:hover #jsfPodcast { opacity: 1; transition: .7s; }

/* When hovering over a button, the button pops out and shadow enlarges */
.res-button#ziontube:hover, .res-button#audio:hover, .res-button#ebooks:hover, .res-button#ages:hover, .res-button#faqs:hover, .res-button#answers:hover, .res-button#wiki:hover, .res-button#papers:hover, .res-button#docs:hover, .res-button#reference:hover, .res-button#maps:hover, .res-button#timeline:hover, .res-button#raisebar:hover, .res-button#jsfFacebook:hover, .res-button#jsfEvents:hover, .res-button#jsfPodcast:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transition: 0.4s;
    transition-delay: 0s !important;
    z-index: 1;
}

.res-button#teachings:hover, .res-button#mylds:hover, .res-button#jod:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transition: 0.4s;
    transition-delay: 0s !important;
    z-index: 1;
}

/* Standard gray button formatting (will be overwritten if button is assigned a color below) */ 
#ziontube, #audio, #ebooks, #ages, #mylds, #jod, #teachings, #faqs, #answers, #wiki, #papers, #docs, #reference, #maps, #timeline, #raisebar, #jsfFacebook, #jsfEvents, #jsfPodcast {  background-color: #555; }

#jsfPodcast {  background-color: #555; }

/* Button color formatting 
#ziontube { background-color: #143D56; opacity: 0; }
#audio { background-color: #821a1a; opacity: 0; }
#ebooks { background-color: #8e6135; opacity: 0; }
#ages { background-color: #555; opacity: 0; }
#mylds { background-color: #86782a; opacity: 0; }
#jod { background-color: #542524; opacity: 0; }
#teachings { background-color: #2f386a; opacity: 0; }
#faqs { background-color: #608835; opacity: 0; }
#answers { background-color: #277D4B; opacity: 0; }
#wiki { background-color: #567744; opacity: 0; }
#papers { background-color: #567744; opacity: 0; }
#docs { background-color: #567744; opacity: 0; }
#reference { background-color: #567744; opacity: 0; }
#raisebar { background-color: #567744; opacity: 0; }
#jsfFacebook { background-color: #567744; opacity: 0; }
#jsfEvents { background-color: #567744; opacity: 0; }
#jsfPodcast { background-color: #567744; opacity: 0; }
*/

/* When hovering over a button, the color lightens */
.res-button#ziontube:hover { background-color: #315d7f; } 
.res-button#audio:hover { background-color: #b02626; }
.res-button#ebooks:hover { background-color: #b3834f; }
.res-button#ages:hover { background-color: #888888; }
.res-button#mylds:hover { background-color: #a89735; }
.res-button#jod:hover { background-color: #70312f; }
.res-button#teachings:hover { background-color: #424b84; }
.res-button#faqs:hover { background-color: #7ca84d; }
.res-button#answers:hover { background-color: #277D4B; }
.res-button#wiki:hover { background-color: #4b2c61; }
.res-button#papers:hover { background-color: #46568a; }
.res-button#docs:hover { background-color: #471f2c; }
.res-button#reference:hover { background-color: #795b48; }
.res-button#maps:hover { background-color: #3d3d3d; color: #9f9f9f; }
.res-button#timeline:hover { background-color: #3d3d3d; color: #9f9f9f ; }
.res-button#raisebar:hover { background-color: #480000; }
.res-button#jsfFacebook:hover { background-color: #480000; }
.res-button#jsfEvents:hover { background-color: #480000; }
.res-button#jsfPodcast:hover { background-color: #480000; }


.unavailabletooltip {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
}

.res-button#maps:hover .unavailabletooltip, .res-button#timeline:hover .unavailabletooltip {
    visibility: visible;
}

/* (101-2) Faith Crisis book bundle */

.faithCrisisAdInner {
    width: 100%;
}

.faithCrisisAdOuter {

}

#fc_ad_outercontainer {
    height: 0px;
    width: 100%;
    background-image: url(https://josephsmithfoundation.org/wp-content/uploads/2020/07/011-Spiritual-Book-Set-PSD-Mockup-COVERVAULT_vs02.jpg);
    background-position: center center;
    background-size: 100%;
    background-repeat: no-repeat;

}

@media screen and (max-width: 880px) {
    #fc_ad_outercontainer {
        background-image: url(https://josephsmithfoundation.org/wp-content/uploads/2020/07/011-Spiritual-Book-Set-PSD-Mockup-COVERVAULT_vs02_cropped.jpg);
        background-position: center center;
        background-size: 100%;
        background-repeat: no-repeat;
    }
    
}

/* (101-3) Documentaries grid section */

.outer-doc-container {
	/* background: #222;
	background: url(http://josephsmithfoundation.org/wp-content/themes/dt-the7-child/images/background_red_jsf-2.jpg); */
    background-attachment: fixed;
    text-align: center;
}

#doc-title {
	color: white;
	margin: 80px 0px 40px 0px;
	font-family: Roboto;
	font-weight: 100;
	font-size: 30px;
    text-align: center;
}

#doc-title a:hover, #doc-title a:active {
    color: #b5b5b5;
    font-weight: 100;
    text-decoration: none;
}

#doc-title a:visited {
    color: white;
    font-weight: 100;
    text-decoration: none;
}

.doc-container1 {
    width: 70%;
	margin: 0 auto;
}

.doc-container2 {
    width: 70%;
	margin: 0 auto;
    padding: 40px 40px 70px 40px;
    text-align: center;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 45px;
	grid-row-gap: 10px;
	grid-auto-rows: minmax(100px, auto);
}

.doc-grid-item {
	color: white;
    font-family: roboto;
    text-align: center;
}

.doc-grid-item iframe {
box-shadow: 0px 10px 14px 0px rgba(0,0,0,0.30)
}

.doc-grid-item a { transition: 0.25s; color: #e0e0e0; }

.doc-grid-item a:hover {
	color: #999;
    text-decoration: none;
}

.grid-video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.doc-trailerwatch {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 13px;
    color: #dccc78;
    letter-spacing: 1px;
}

.doc-dvdtitle {
	padding: 10px;
	font-size: 15px;
}

.doc-button {
	background: #4a0000;
    padding: 19px;
    display: inline-block;
    color: white;
    font-family: roboto;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0px 10px 14px 0px rgba(0,0,0,0.40);
	transition: background-color .4s ease-out,color .4s ease-out, 0.4s;
}

.doc-button:hover {
    background: #1a3d31;
	transform: scale(1.05);
}

.doc-wrap {
  display: inline-block;
  position: relative;
  box-shadow: 0 2px 3px rgba(0,0,0,0.5);
}
.doc-text {
  /* background: rgba(0,0,0,0.8); */
  color: #fff;
  position: absolute;
  top: 33%; bottom: 33%; left: 30%; right: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
	font-weight: bold;
}

.doc-text img {
    opacity: 1;
}

.doc-text img {
	transition: 0.25s ease-out;
}

.doc-wrap:hover .doc-text img {
	transition: 0.25s ease-out;
    opacity: 0.95;
}

.doc-wrap img {
  max-width: 100%;
  display: block;
}

.play-symbol-red {
    margin: 0 auto;
    width: 65px;
}

.doc-dvd-image {
    filter: brightness(100%);
    transition: 0.25s ease-out;
}

.doc-dvd-image:hover {
    filter: brightness(130%);
}

/* Below is a list of ID's with the ::before. I tried to group the selectors together via "," but that does not work. Each selector needs it's own properties */

#grid-container-bloodlines::before { 
  display: block; 
  content: " "; 
  margin-top: -125px; 
  height: 125px; 
  visibility: hidden; 
  pointer-events: none;
	position: relative;
}

#grid-container-twoprophets::before { 
  display: block; 
  content: " "; 
  margin-top: -125px; 
  height: 125px; 
  visibility: hidden; 
  pointer-events: none;
	position: relative;
}

#grid-container-prophetjoseph::before { 
    display: block; 
    content: " "; 
    margin-top: -125px; 
    height: 125px; 
    visibility: hidden; 
    pointer-events: none;
      position: relative;
}

#grid-container-statesmen::before { 
    display: block; 
    content: " "; 
    margin-top: -125px; 
    height: 125px; 
    visibility: hidden; 
    pointer-events: none;
      position: relative;
}

#grid-container-governments::before { 
    display: block; 
    content: " "; 
    margin-top: -125px; 
    height: 125px; 
    visibility: hidden; 
    pointer-events: none;
    position: relative;
}

#grid-container-covenant::before { 
    display: block; 
    content: " "; 
    margin-top: -125px; 
    height: 125px; 
    visibility: hidden; 
    pointer-events: none;
      position: relative;
}

/* (101-4) Faith Crisis Ad (LDS Answers) */

.outer-faith-container {
    background: #222;
	background: url(http://josephsmithfoundation.org/wp-content/themes/dt-the7-child/images/ben-white-302160-unsplash-edited_SFW.jpg);
    background-position: 0px -120px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.faith-container1 {
    width: 70%;
    margin: 0 auto;
    padding: 40px 0px 5px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: center;
    resize: vertical;
    overflow: auto;
    height: 475px;
    overflow: visible;
}

.faith-container2 {
    width: 70%;
	margin: 0 auto;
	padding: 40px 40px 70px 40px;
}

#faith-title {
	color: white;
	margin: 40px;
	font-family: roboto;
	font-weight: 100;
	font-size: 35px;
}

#faith-title a:hover, #faith-title a:active {
    color: #b5b5b5;
    font-weight: 100;
    text-decoration: none;
}

#faith-title a:visited {
    color: white;
    font-weight: 100;
    text-decoration: none;
}

.faith-subtitle {
    font-size: 35px;
    padding-bottom: 15px;
    font-weight: 900;
}

.faith-descript {
    width: 41%;
    text-align: left;
    font-size: 25px;
    font-family: roboto;
    color: #333;
    line-height: 1.4;
}

.faith-descript a {
    color: #285F4D !important;
}

@media (max-width: 550px) {
    .faith-descript a {
        color: #bf8600 !important;
    }
}

.faith-descript a:hover {
    /* color: #1A3D31 !important; */
    text-decoration: none;
}

.faith-button:hover {
    background: #1a3d31 !important;
	transform: scale(1.05);
}

.faith-buttons { /* div surrounding buttons */
    padding: 30px 0px 40px 0px;
}

.faith-button { /* button styling */
	background: #285f4d;
    padding: 19px;
    display: inline-block;
    color: white;
    font-family: roboto;
    font-weight: 600;
    font-size: 16px;
    /* box-shadow: -2px 2px 6px 0px rgba(0,0,0,0.40); */
	transition: background-color .4s ease-out,color .4s ease-out, 0.4s;
    margin: 0px 20px 0px 0px;
}

.faith-buttons a {
	 color: white !important;
}

.faith-button:hover {
    color: white;
    text-decoration: none;
}

.faith-buttons a {
    color: white;
}

.home .faith-buttons a:hover {
    color: white !important;
}

.ldsanswers-logo {
    width: 300px;
}

.wrapper a.faith-link:link, a.faith-link:visited {
    text-decoration: none;
    color: #285f4d;
}

a.faith-link:hover, a.faith-link:active, a.faith-link:link {
    text-decoration: none;
    color: #555;
}

.faith-crisis-image {
    display: none;
    background: url(http://ldsanswers.org/wp-content/uploads/2016/07/gente-hablando-630x420.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
}
.ldsAnswersWhite {
    display: none;
}

/* (101-5) Latest News section */

.ziontubeHomepageTitle > a:hover {
    color: white;
}

.ziontubeHomepageTitle > a {
    color: #cacaca;
    transition: 0.2s ease;
}

.news-more:hover { /* Styling of "See more" button on HOVER */
    background-color: rgba(94,9,6,1);
	transform: scale(1.05);
}

.news-more { /* Styling of "See more" button */
	background-color: rgba(90,0,0,0.7);
    padding: 19px;
    display: inline-block;
    color: white;
    font-family: roboto;
    font-weight: 600;
    font-size: 16px;
	transition: background-color .4s ease-out,color .4s ease-out, 0.4s;  
}

.jsf-news-morelink { /* Styling of "Learn more" button */
    background-color: rgba(60, 15, 15, 0.5);
    border-radius: 5px;
    padding: 7px;
    margin-left: 10px;
    font-size: 12px;
    transition: background-color .4s ease-out, color .4s ease-out, 0.4s;
}

.jsf-latest-news-item:hover .jsf-news-morelink:hover { /* Changes background color of "Learn more" button */
    background-color: rgba(107, 24, 24, 0.5);
}

.jsf-latest-news-item:hover .jsf-news-morelink:hover a { /* Changes HOVER text color of "Learn more" button to white */
    color: white;    
}

.jsf-news-excerpt { /* Text color for the news exerpt text */
    color: #7d7d7d;
}

.jsf-latest-news { /* Grid layout for news posts */
    display: grid;
    /* grid-template-rows: repeat(5, 1fr); */
}

.jsf-latest-news-item { /* Margin space underneath each news post */
    padding-bottom: 20px;
}

.jsf-latest-news-item .jsf-news-title { /* News post title styling */
    font-size: 18px;
    font-family: roboto;
    font-weight: 900;
    display: block;
}

div.jsf-latest-news-item img { /* Size and padding of each news post image */
    width: 150px;
    margin-right: 15px; 
    height: auto;
}

ul.postsbycategory.jsf-latest-news:hover .jsf-latest-news-item:hover img { /* Image brightness when NOT hovering (i.e., normal) */
    -webkit-filter: brightness(100%);
    filter: brightness(100%);
}

ul.postsbycategory { /* Removes bullet points for each news post, aligns text */
    list-style-type: none;
    text-align: left;
    padding: 0px;
}

ul.postsbycategory li { /* Removes padding from original theme styling */
    padding: 0px;
}

ul.postsbycategory li:before { /* Removes bullet arrows from original theme styling */
    display: none;
}
 
.postsbycategory img { /* Styling of news post images */
    float:left; 
    padding:3px;
    margin:3px;
    transition: .4s ease-out;
}

.outer-news-container { /* Styling for Latest News homepage section */
    background: #222;
	background: url(http://josephsmithfoundation.org/wp-content/themes/dt-the7-child/images/background_red_jsf-2.jpg);
    background-attachment: fixed;
    text-align: center;
}

.inner-news-container { /* Width/centering of Latest News section */
    width: 60%;
    margin: 0 auto;
}

.inner-news-content { /* Padding of Latest News section */
    padding: 40px;
}

#news-title { /* Latest News title styling */
	color: white;
	margin: 40px;
	font-family: roboto;
	font-weight: 100;
	font-size: 35px;
    text-align: center;
}

#news-title a, #news-title a:visited { /* Latest News title LINK styling */
    color: white;
    text-decoration: none;
    transition: .4s ease-out;
}

#news-title a:hover, #news-title a:active { /* Latest News title LINK HOVER styling */
    color: #b5b5b5;
    font-weight: 100;
    text-decoration: none;
}

ul.postsbycategory.jsf-latest-news:hover a.jsf-news-title { /* News post title DARKENS when not being HOVERED over */
	color: #717171;
}

.jsf-news-morelink:hover > a { /* Changes HOVER text color of "Learn more" button to white */
    color: white;
    text-decoration: none;
}

.outer-news-container .postsbycategory .jsf-news-morelink a { /* Changes text color of "Learn more" button to gray */
    color: gray; 
}

ul.postsbycategory.jsf-latest-news:hover div.jsf-latest-news-item:hover a.jsf-news-title { /* Makes news post title WHITE on HOVER */
    color: white;
    text-decoration: none;
}

ul.postsbycategory.jsf-latest-news:hover img { /* news post images darken when NOT HOVERING */
    -webkit-filter: brightness(40%);
    filter: brightness(40%);
    transition: .4s ease-out;
}

.jsf-news-image { /* Styling of news post images */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
} 

/* (101-6) "Strengthen Faith" and "Changing Lives" area */
body #header .bottom-header {
    padding: 0px;
}
#header .bottom-header.front-page .frontpg-wrapper {
	position: relative;
    height: inherit;
    width: 80%;
    margin: 0 auto;
}
#header .bottom-header.front-page .frontpg-wrapper .frontpg-title {
    text-align: left;
    display: block;
}
#header .bottom-header.front-page .frontpg-wrapper h1 {
    font-size: 35px;
    line-height: initial;
}
.frontpg-wrapper-inner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.frontpg-learn {
    display: inline-block;
}
.frontpg-learn-btn img {
	vertical-align: middle;
	position: relative;
    max-height: 50px;
    max-width: 50px;
}
.frontpg-learn-btn {
    display: inline-block;
    overflow: hidden;
	position: relative;
	height: 60px;
	margin-left: 8px;
}
.frontpg-lnbrk:before {
    content: "\A";
    white-space: pre;
}
#changeLivesBtn a {
    color: white;
}
#changeLivesBtn > div:first-child {
	display: inline-block;
	font-size: 18px !important;
}
.frontpg-title-small {
	font-size: 28px !important;
	bottom: 4px;
  display: inline-block;
  position: relative;
}
.home #header .bottom-header {
    height: 600px;
    transition: 0.4s ease;
    text-align: left;
}
.home #header .bottom-header .container .row h1 {
	width: 30%;
	text-align: left;
	margin-bottom: 23px;
}
#header .bottom-header .container .row h1 {
  font-size: 35px;
  line-height: 1.2;
	font-family: Roboto;
}
body:not(.home) #header .bottom-header .container .row h1 {
	margin-bottom: 0px;
}
.home #header .bottom-header .container .row .col-sm-8 {
	text-align: left;
	margin: 0px;
	display: none;
}
.home .frontpg-title {
	color: white;
	text-shadow: -1.5px 2px 6px #000000;
	position: relative
}	
.home #header .bottom-header #changeLivesBtn {
	color: white;
	text-align: left;
	background-color: /* #6E0000 OR rgb(39 39 39 / 70%) */ rgb(191 134 0 / 85%);
	padding: 15px;
	display: inline-block;
	margin: 0px;
	font-family: Roboto;
	box-shadow: -1.5px 2px 8px #000000;
}
/* #header {
    background: url(https://josephsmithfoundation.org/wp-content/uploads/2020/11/js_lindsley_bg_clone3.png), #000000 !important;
} */
.home #header:after {
    content: "";
    background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4.png) center -680px;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: block;
    opacity: 1;
}
@media (max-width: 1700px) {
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4.png) center -575px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
@media (max-width: 1500px) {
    .bottom-header.front-page .container.jumbotronContainer {
        padding-right: 50px;
        padding-left: 50px;
    }
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4.png) center -475px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
@media (max-width: 1300px) {
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4.png) center -375px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
@media (min-width: 1200px) {
    .home #header .container.jumbotronContainer {
        width: 1410px;
    }
}
@media all and (max-width: 1024px) {
    .home #header .bottom-header #changeLivesBtn {
        background-color: #bf8600;
    }
    .home #header .bottom-header .container .row h1 {
        font-size: 25px;
    }
    .home #header {
        background-position: center -250px;
    }
    .home #header .bottom-header {
        height: 700px;
    }
    #header .bottom-header.front-page .frontpg-wrapper h1 {
        font-size: 25px;
        text-align: center;
        margin: 0px;
    }
    .frontpg-wrapper-inner {
        width: 100%;
        top: 370px;
        transform: inherit;
    }
    #header .bottom-header.front-page .frontpg-wrapper .frontpg-title {
        background-color: #00000080;
        padding: 20px;
    }
    #header .bottom-header.front-page .frontpg-wrapper {
        width: 100%;
    }
    .home #header .bottom-header #changeLivesBtn {
        display: block;
        text-align: center;
    }
    .frontpg-learn-btn {
        overflow: unset;
        height: auto;
        display: block;
        margin-left: 0px;
        margin-top: 10px;
    }
    .frontpg-learn-btn img {
        max-height: 40px;
        max-width: 40px;
    }
    .frontpg-title-small {
        bottom: 0px;
        font-size: 25px;
    }
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4_1000px.png) center -300px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
@media (max-width: 900px) {
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4.png) center -230px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
@media (max-width: 768px) {
    .frontpg-title {
        text-align: center;
    }
    .home #header {
        background-position: center -200px;
    }
    .home #header .bottom-header .container .row h1 {
        width: 100%;
        font-size: 25px;
        margin-bottom: 10px;
    }
    .home #header .bottom-header #changeLivesBtn {
        float: unset;
        text-align: center;
    }
    /* .frontpg-lnbrk:before {
        content: "\A";
        white-space: pre;
    } */
}
@media (max-width: 690px) {
    .frontpg-wrapper-inner {
        top: 315px;
    }
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4.png) center -200px;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .home #header .bottom-header {
        height: 575px;
    }
    .frontpg-wrapper-inner {
        top: 270px;
    }
    .frontpg-wrapper-inner {
        top: 250px;
    }
}
@media (max-width: 600px) {
    .home #header:after {
        background: url(https://josephsmithfoundation.org/wp-content/themes/illdy-child/images/js_lindsley_bg_clone4_600px.png) center -140px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
@media (max-width: 450px) {
    .frontpg-title {
        font-size: 20px;
    }
    .container.jumbotronContainer .col-sm-12 {
    padding: 5px;
    }
} 

/* (102-1) Simple JSF Button (Shortcode: simpleJsfButton_sc) */

.simple-jsf-button {
    padding: 15px 20px;
    display: inline-block;
    transition: 0.25s ease-out;
    color:#eee;
    font-weight: bold;
}

.page #main .simple-jsf-button>a {
	color:#eee !important;
}

.simple-jsf-button-red {
    background-color:#3d0603 !important;
    border-radius: 5px;
}

.simple-jsf-button-red:hover {
	background-color:#590d09 !important;	
}

.simple-jsf-button-gold {
    background-color: #c79530;
    border-radius: 0px;
}

.simple-jsf-button-gold:hover {
    background: #9c7524;
    transition: 0.25s ease-out;
}


/* (102-2) Category List JSF Shortcode Styling (Shortcode: categoryListJsfSC) */

div.categorylistjsf li {
    display: inline-block;
    background-color: #555;
    padding: 8px 10px;
    margin: 0px;
    width: auto;
    color: white;
    /*text-transform: uppercase;*/
    font-size: normal  15px / 27px "Roboto", Helvetica, Arial, Verdana, sans-serif;
    font-weight: 800;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    word-wrap: break-word;
    line-height: 1;
    transition: 0.4s;
    margin-bottom: 10px;
}

div.categorylistjsf li.cat-item:first-child {
    padding: 8px 10px;
}

div.categorylistjsf li:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 5px rgba(0,0,0,0.4);
    transition: 0.4s;
    transition-delay: 0s !important;
    background-color: #315d7f;
}

div.categorylistjsf a {
    color: white;
    text-align: center;
    text-decoration: none;
}

div.categorylistjsf {
    text-align: center;
}

/* (102-3) Post List 1 (Shortcode: postList1) */

.postList1-wrapper {
    list-style: none;
    display: grid;
    margin: 20px 0px;
    grid-gap: 20px;
}
.postList1-item {
    display: grid;
    grid-template-columns: 200px auto;
    grid-template-rows: 1fr;
    grid-gap: 20px;
    padding: 20px;
    border: solid #e8e8e8;
}

.postList1-title {
    font-size: 20px;
    padding-bottom: 10px;
    font-weight: bold;
}
.postList1-title a {
    color: #590d09 !important;
}
.postList1-postcontent {
    display: inline-block;
    vertical-align: top;
}
.postList1-postcontent {
    font-size: 16px;
}
.postList1-thumbnail {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-position: center center;
    background-size: cover;
}

.postList1-thumbnail img {
    position:absolute;
    top:-50%; bottom:-50%;
    margin:auto;
    width: 100%;
    height: auto;
}
.postList1-descript {
    margin-top: 6px;
}
.postList1-learnmore {
    background-color: #590d09;
    border-radius: 5px;
    padding: 7px;
    font-size: 12px;
    transition: background-color .4s;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    margin-left: 10px;
}

.postList1-learnmore a {
    color: white;
}

.noUpcomingEvents {
    margin-left: 30px;
    padding: 20px;
    background-color: #3d0603;
    line-height: 1.2;
    color: #f7f5ef;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

@media all and (max-width: 600px) {
    .noUpcomingEvents {    
        text-align: center;
        display: block;
        margin: 0 auto;
    }
}
@media all and (min-width: 990px) and (max-width: 1200px) {
    .postList1-item {
        grid-template-columns: 1fr;
        grid-template-rows: 200px auto;
    }
}
@media all and (max-width: 990px) {
    .postList1-wrapper {
        margin: 20px 0px;
    }
}
@media all and (max-width: 600px) {
    .postList1-item {
        grid-template-columns: 1fr;
        grid-template-rows: 200px auto;
        
    }
    .postList1-thumbnail img {
        width: 100%;
    }
}

/* (102-4) Post List 2 (Shortcode: postList2) */

.postList2-wrapper {
    list-style: none;
    display: grid;
    margin: 20px 0px;
    grid-gap: 20px;
    grid-template-columns: auto auto;
}
.postList2-item {
    display: grid;
    /* grid-template-columns: auto auto; */
    grid-gap: 20px;
    grid-template-rows: 150px auto;
}

.postList2-title {
    font-size: 20px;
    padding-bottom: 3px;
    font-weight: bold;
}
.postList2-title a {
    color: #590d09 !important;
    text-decoration: none;
}
.postList2-postcontent /* .postList2-thumbnail */ {
    display: inline-block;
    vertical-align: top;
}
.postList2-thumbnail {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-position: center center;
    background-size: cover;
}

.postList2-thumbnail img {
    position:absolute;
    top:-50%; bottom:-50%;
    margin:auto;
    width: 100%;
    height: auto;
}
.postList2-descript {
    margin-top: 3px;
}
.postList2-category {
    margin-top: 20px;
}
.postList2-category .post-categories {
    list-style: none;
    margin: 0px;
    padding: 0px;
}
.postList2-category .post-categories li {
    background-color: #a0a0a0;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    display: inline-block;
    margin-right: 3px;
    line-height: 1;
    font-weight: bold;
}
.postList2-info {
    display: grid;
    grid-template-columns: auto auto;
}
.postList2-infoItem {
}
.postList2-date {
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #a0a0a0;
}
.postList2-category .post-categories li a { color: white; text-decoration: none; font-size: 15px;}
.postList2-postcontent .postList2-category .post-categories > li {
    margin-bottom: 5px;
}

.postList2-learnmore {
    border-radius: 5px;
    padding: 5px;
    font-size: 12px;
    transition: background-color .4s;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    margin-left: 10px;
    border: #a0a0a0 solid;
}

.postList2-learnmore a {
    color: #a0a0a0;
}





/* (103-1) Documentaries page */

.docuIframeResponsive {
    border: 1px solid rgba(100, 100, 100, 0.6);
    background-color: rgba(100, 100, 100, 0.3);
    position: relative;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
}

.docuIframeResponsive > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: 36% 52% 12%;
    /* grid-template-rows: 2% 83% 15%; */
    line-height: normal;
    margin: 0 auto;
    grid-template-areas:
        "doc-one doc-two doc-four"
        "doc-one doc-three doc-four"
        "doc-one doc-five doc-four";
    margin-bottom: 25px;
}

.doc-one { /* Trailer */
    grid-area: doc-one;
}

.doc-two { /* Title and subtitle */
    grid-area: doc-two;
}

.doc-three { /* Description */
    grid-area: doc-three;
}

.doc-four { /* DVD image */
    grid-area: doc-four;
}

.doc-five { /* Not currently being used */
    grid-area: doc-five;
}

.doc-six { /* Not currently being used */
    grid-area: doc-six;
}   

.doc-center-flexbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

img.dvd-image {
    object-fit: cover;
    width: 100%;
    transition: .25s ease-out;
}

img.dvd-image:hover {
    transform: scale(1.05);
}

.grid-video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.title-header {
    font-size: 23px;
    color: #ececec;
}

.title-header:hover {
    color: #8e8d8d;
}

.grid-container .grid-item a:hover {
    text-decoration: none;
}

.grid-item {
    color: grey;
    padding: 10px;
}

.subtitle-header {
    font-size: 18px;
    font-weight: bold;
    padding-top: 5px;
}

.doc-description {
    line-height: 1.5;
    font-size: 17px;
    color: #ececec;
}

.doc-description div:nth-of-type(2) {
    padding-top: 10px;
}

.dvd-length {
    text-align: center;
    padding-top: 15px;
    font-weight: bolder;
    color: #ececec;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.watchNow {
    width: 85%;
    margin: 0 auto;
}

.dvdbuttons-style {
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 36px;
    width: 100%;
    font-weight: bold;
}

.buydvd-wrapper {
    position: relative;
}

.buydvd {
    width: 100%;
    color: white;
    background: 
        /* Previous red hover color: #7b0808 */
        #285f4d;
    text-align: center;
    position: absolute;
    overflow: hidden;
    font-weight: bold;
    transition: background-color .25s ease-out,color .25s ease-out;
}

.buydvd:hover {
    background: 
        /* Previous red hover color: #610606 */
        #1a3d31;
}

.buydvd:before {
    content: 'Buy now!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    width: 100%;
}

.buydvd:hover:before {
    top: -30px;
}

.buydvd:after {
    content: '$20.00';
    position: absolute;
    top: calc(100% + 30px);
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    font-size: 18px;
}

.buydvd:hover:after {
    top: 50%;
}

#dvdbuy {
    grid-area: dvdbuy;
}

#dvdlearn {
    grid-area: dvdlearn;
}

#dvdwatch {
    grid-area: dvdwatch;
}

#dvdgenre {
    grid-area: dvdgenre;
}

.learndvd {
    color: white;
    background-color: #565656;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color .25s ease-out,color .25s ease-out;
}

.learndvd:hover {
    background-color: #3a3a3a;
}

.watchdvd {
    color: #FCDB00;
    background-color: #565656;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    transition: background-color .25s ease-out,color .25s ease-out;
}

.watchdvd:hover {
    background-color: #3a3a3a;
}

.dvd-genre {
    font-size: 13px;
    text-align: center;
}

/*
#dvdbuttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 10px;
    width: 100%;
}

#dvdbuttons div {
    padding: 10px;
    margin: 0;
}
*/

.dvdbuttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    width: 100%;
    grid-template-areas: 
        "dvdbuy dvdlearn dvdwatch dvdgenre";
}

/* (104) MEDIA QUERIES */

/* List of current Media Query break points:
        min-width: 1650px   MIN WIDTH
        max-width: 1650px
        max-width: 1400px
        max-width: 1300px
        max-width: 1200px
        max-width: 999px
        max-width: 880px
        max-width: 768px
        min-width: 701px    MIN WIDTH
        max-width: 600px
        max-width: 550px
        max-width: 450px
        max-width: 400px
*/

@media all and (min-width: 1650px) {
    .sub-wrapper {
        width: 100%;
        grid-template-areas: 
            "documentaries multimedia scripture scholar connect store";
        grid-template-columns: repeat(6, 1fr);
    }
    .service-wrapper {
        height: 175px;
    }
    .title-text {
        font-size: 23px;
    }
    .res-subtitle {
        font-size: 16px;
    }
    #doc-title {
        margin: 100px 0px 40px 0px;
    }
}

@media screen and (max-width: 1650px) {
    
    /* Resource buttons */
    .outer-wrapper {
        height: 100px;
    }
    .sub-wrapper {
        width: 95%;
        grid-template-areas: 
            "documentaries multimedia scripture scholar connect store";
        grid-template-columns: repeat(6, 1fr);
    }
    .service-wrapper {
        height: 120px;
    }
    .service-wrapper .title-text {
        font-size: 20px;
    }
    .res-subtitle {
        font-size: 13px;
    }
    .wrapper {
        margin-bottom: 15px;
    }
    
    /* HOMEPAGE Documentaries grid section */
    .doc-container1 {
        width: 80%;
    }

    .doc-container2 {
        padding-top: 20px;
    }

    .homepageNewsletter {
        width: 85%;
        margin-top: -200px;
    }
}

@media all and (max-width: 1400px) {
      
    .home .outer-wrapper {
        width: 100%;
        height: 70px;
    }
    .sub-wrapper {
        width: 95%;
        grid-template-areas: 
            "documentaries multimedia scripture scholar connect store";
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 3px;
    }
    .service-wrapper .title-text {
        font-size: 18px;
    }
    .res-subtitle {
        font-size: 13px;
        display: none;
    }
    /* CSS below REMOVES the sub-resource buttons on hover */
     .service-wrapper {
        height: 100px;
        box-shadow: none;
    }
    .service-wrapper:hover {
        transform: none;
        z-index: 2;
        box-shadow: none;
    }
    .service-wrapper:hover img.cover {
        opacity: 0.2;
        filter: grayscale(100%);
    }
    .service-wrapper:hover .title-text{
        opacity: 1;
    }
    .res-subtitle {
        font-size: 13px;
    }
    .service-wrapper-inner {
        display: none;
    }
    .nivo-lightbox-wrap {
        top: 25%;
        bottom: 25%;
        left: 20%;
        right: 20%;
    }
    .homepageNewsletter {
        margin-top: -170px;
    }
    .wrapper {
        margin-bottom: 5px;
    }
   
    /* Homepage header height */
    .mobile-header-space {
        height: 0px !important;
    }

    /* HOMEPAGE Documentaries grid section */
    .doc-container1 {
        width: 85%;
    }

    .doc-container2 {
        padding-top: 10px;
    }
    .homepageCallToActionWrapper {
        display: none;
    }
    .homepageNewsletter {
        width: 95%;
    }
    #news-title {
        margin: 10px 0px 30px 0px;
    }
    .inner-news-container {
        width: 70%;
    }
    div.masthead.inline-header.right.widgets.full-height.shadow-decoration.show-mobile-logo.masthead-mobile {
        position: relative !important;
    }
    .page-title {
        min-height: 0px;
    }
}

@media all and (min-width: 1300px) {
    .faith-container1 {
        line-height: 1.3;
    }
}

@media all and (max-width: 1300px) {
    .faith-container1 {
        width: 80%;
        height: 450px;
    }
}

@media all and (max-width: 1200px) {
    .play-symbol-red {
        width: 45px;
    }
    .faith-descript .inner-faith-descript {
        font-size: 20px;
    }
    .faith-descript {
        width: 50%;
    }
    .faith-subtitle {
        font-size: 30px;
    }
    /* .grid-container {
        grid-template-columns: 50% 38% 12%;
        grid-template-areas: "doc-one doc-two doc-two" "doc-one doc-three doc-four" "doc-five doc-five doc-five";
    } */
    .doc-description {
        font-size: 14px;
    }
    .grid-container {
        grid-template-columns: 40% 50% 10%;
    }
    .nivo-lightbox-wrap {
        top: 25%;
        bottom: 25%;
        left: 20%;
        right: 20%;
    }
    .ages-grid {
        width: 100%;
    }
    .pa-image {
        width: 45%;
    }
    #jsfHeaderBar {
        display: none !important;
    }
}

@media all and (max-width: 1024px) {
    .home .outer-wrapper {
        height: 250px;
    }
    .sub-wrapper {
        grid-template-areas: 
            "documentaries multimedia scripture"
            "scholar connect store";
        grid-template-columns: repeat(3, 1fr);
        width: 80%;
    }
    .service-wrapper {
        height: 100px;
    }
    .service-wrapper .title-text {
        font-size: 18px;
    }
    .res-subtitle {
        font-size: 13px;
    }
    #doc-title {
        font-size: 25px;
    }
    .homepageNewsletter {
        width: 80%;
        margin-top: -50px;
    }
    .homepageAbout {
        display: block;
    }
    .homepageNewsletter .homepageNewsletter2 {
        display: none;
    }
    #doc-title {
        margin: 25px;
    }
    .ldsanswers-logo {
        width: 280px;
    }
    .inner-news-container {
        width: 95%;
    }
    .footerSidebar {
        width: 100% !important;
    }
    #footer-sidebar2 .widget {
        margin-bottom: 10px;
    }
    #footer-sidebar3 {
        float: none;
    }
    #footer .wf-container-footer .wf-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 25px;
    }
    #footer .wf-container-footer .wf-container::before {
        content: none;
    }
    #footer .wf-container-footer .wf-container #footer-sidebar1, #footer .wf-container-footer .wf-container #footer-sidebar2 {
        border-bottom: solid 3px #333;
    }
    .footer #footer-sidebar1 .widget {
        margin-bottom: 20px;
    }
    .footer .wf-wrap {
        padding: 0 40px;
    }
    #footer .wf-container-footer {
        padding-top: 30px;
    }
    .faith-container1 {
        height: 400px;
    }
    .grid-container {
        grid-template-areas: 
        "doc-two doc-two doc-two"
        "doc-one doc-three doc-four"
        "doc-one doc-five doc-five";
    }
    .doc-description {
        font-size: 17px;
    }
    .title-header {
        font-size: 25px;
    }
    .doc-center-flexbox {
        display: block;
    }
    .nivo-lightbox-wrap {
        top: 20%;
        bottom: 20%;
        left: 10%;
        right: 10%;
    }
    .service-wrapper .title-text {
        font-size: 16px;
    }
    .jsfvideo {
        height: 400px;
        background-size: 130%;
    }
    #page #main {
        padding: 40px 0px 0px 0px;
    }
    #page #main .wf-container-main h2 {
        font-size: 1.6em;
    }
    .page-id-285 #page .mauticform_wrapper {
        max-width: 100%;
        margin: 0px;
    }
    .wrapper {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 990px) {
    .pa-image {
        width: 35%;
    }
    .faith-container1 {
        height: 500px;
    }
}

@media screen and (min-width: 880px) and (max-width: 999px) {
    .subtitle-header {
        font-size: 21px;
        font-weight: normal;
        display: inline-block;
    }
    .title-header {
        font-size: 21px;
    }
    .grid-container {
        margin-bottom: 20px;
    }
}

@media all and (max-width: 880px) {
    #header .top-header .row {
        height: 30px;
    }
    
    .doc-grid {
        grid-column-gap: 15px;
    }
    #doc-title {
        margin: 20px;
        font-size: 23px;
    }
    .doc-dvdtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    .doc-container2 {
        padding: 20px 40px 40px 40px;
    }
    .jsfvideo {
        background-size: 140%;
    }
    .wrapper {
        margin-top: 0px;
    }
    .homepageNewsletter {
        text-align: center;
    }
    .homepageNewsletter2 {
        margin-bottom: 0px;
    }
    .faith-container1 {
        width: 85%;
    }
    .faith-button {
        font-size: 14px;
        margin: 0px 10px 0px 0px;
        padding: 4px 10px;
    }
    .faith-descript {
        width: 50%;
    }
    .faith-subtitle {
        font-size: 25px;
    }
    .ldsanswers-logo {
        padding: 30px 0px 0px 0px;
    }
    .doc-button {
        padding: 15px 20px;
    }
    .grid-container {
        grid-template-columns: 40% 45% 15%;
        grid-template-areas: 
            "doc-two doc-two doc-two"
            "doc-one doc-three doc-four"
            "doc-five doc-five doc-four";
    }
    .page-template-template-documentaries-v1 #main .wf-wrap {
        padding: 0 20px;
    }
    .faith-container1 {
        height: 400px;
    }
}

@media all and (max-width: 800px) {

    /* Removes the post title and breadcrumbs from the ZionTube page */

    .page-title[jsf-header-ziontube] .wf-container-title .wf-td.hgroup, .page-title[jsf-header-ziontube] .wf-container-title .wf-td {
        display: none;
    }
    
    /* Makes post title centered */
    #page div[jsf-header-template]:not([jsf-header-manager]).page-title h1 {
        float: none;
        padding: 10px 0px;
    }

    /* Makes resource/jsf header logos mobile friendly */
    .jsf-header-logo {
        height: auto;
        margin: 0 auto;
        float: none;
        width: auto;
    }
    .jsf-header-logo img {
        position: relative;
        top: unset;
        transform: none;
        width: 150px;
    }
    div.page-title.title-center[jsf-header-template] .wf-table .wf-td.hgroup, div.page-title.title-center[jsf-header-template] .wf-table .wf-td {
        text-align: center;
    }
    div.page-title.title-center[jsf-header-template] .wf-table .wf-td.hgroup, div.page-title.title-center[jsf-header-template] .wf-table .wf-td.hgroup {
        margin-bottom: 12px;
    }
    #page div[jsf-header-template].page-title h1 {
        float: none;
        margin: 0 auto;
    }
    .page-title.page-title-responsive-enabled .wf-table, .page-title.page-title-responsive-enabled .wf-td {
        text-align: center;
    }
    .page-title[jsf-header-template] .wf-wrap .wf-container-title .wf-table {
        padding: 25px 0px 25px 0px;
    }
    .page-title .breadcrumbs {
        margin: 0px;
    }
}

@media all and (max-width: 768px) {
    #footer .row .widget {
        margin-bottom: 30px;
    }    
    #latest-news .section-header {
        margin-bottom: 0px;
    }
    #latest-news { padding-top: 30px; }
    .faith-button {
        font-size: 16px;
        padding: 10px 10px;
        margin: 0px 10px 10px 0px;
    }
    .faith-buttons {
        padding: 20px 0px 40px 0px;
    }
    .inner-news-container {
        width: 90%;
    }
    .doc-button {
        padding: 10px 10px;
    }
    .dvdbuttons-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "dvdbuy dvdlearn dvdwatch"
            "dvdgenre dvdgenre dvdgenre";
    }
    .dvd-genre {
        text-align: left;
    }
    .ages-grid .grid-item {
        font-size: 16px;
    }
    .pa-image {
        width: 40%;
    }
    .jsfvideo {
        background-size: 180%;
    }
}



@media all and (max-width: 680px) {
    .doc-container1 .doc-grid .doc-grid-empty-space {
        display: none;
    }
    .grid-item.doc-two {
        padding-top: 10px;
    }
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #doc-title {
        font-size: 20px;
    }
    .homepageAbout {
        width: 80%;
        /* padding-bottom: 20px;
        border-bottom: 2px solid #333; */
    }
    .ldsanswers-logo {
        width: 250px;
    }
    .grid-container {
        grid-template-columns: 80% 20%;
        grid-template-rows: 300px;
        grid-template-areas:
        "doc-one doc-one"
        "doc-two doc-two"
        "doc-three doc-four"
        "doc-five doc-four";
    }
    .faith-subtitle {
        font-size: 20px;
    }
    .faith-descript .inner-faith-descript {
        font-size: 18px;
    }
}

@media screen and (max-width: 720px) and (min-height: 300px ) {
    .nivo-lightbox-wrap {
        top: 5px;
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
}

@media all and (max-width: 600px) {
    .wrapper {
        padding-top: 0px;
    }
    .sub-wrapper {
        grid-template-areas: 
            "documentaries multimedia scripture"
            "scholar connect store";
        grid-template-columns: repeat(3, 1fr);
        width: 90%;
        grid-gap: 4px;
    }
    #doc-title {
        margin: 25px;
        font-size: 25px;
        line-height: 1.5;
    }
    .jsfvideo {
        height: 320px ;
        top: -50px;
    }
    #footer-sidebar1 {
        grid-column: 1 / 3;
        text-align: center;
    }
    #footer-sidebar4 {
        grid-column: 1 / 3;
    }
    .footer .wf-wrap {
        padding: 0 30px;
    }
    .footer .widget {
        margin-bottom: 0px;
    }
    #footer .wf-container-footer {
        padding-bottom: 0px;
    }
    #footer-sidebar3 {
        border-bottom: solid 3px #333;
    }
    .doc-description {
        font-size: 15px;
    }
    .faith-container1 {
        width: 88%;
    }
    #footer .wf-container #footer-sidebar1 img.wp-image-1096 {
        max-width: 70% !important;
    }
}

@media all and (max-width: 550px) {
    .jsf-latest-news-item {
        padding-bottom: 30px;
    }
    .service-wrapper img.cover {
        opacity: 0;
    }
    .sub-wrapper {
        grid-template-areas: 
            "documentaries multimedia"
            "scripture scholar" 
            "connect store";
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
        grid-gap: 2px;
    }
    .service-wrapper {
        height: 60px;
        box-shadow: none;
    }
    .service-wrapper:hover {
        transform: none;
        z-index: 2;
        box-shadow: none;
    }
    .service-wrapper:hover .title-text{
        opacity: 1;
    }
    .service-wrapper .title-text {
        font-size: 15px;
    }
    .res-subtitle {
        font-size: 13px;
    }
    .service-wrapper-inner {
        display: none;
    }
    .doc-container1 {
        width: 90%;
        margin-bottom: 20px;
    }
    .outer-faith-container {
        background: none;
        border-top: solid 2px #2f2f2f;
    }
    .faith-container1 a {
        margin: 0 auto;
    }
    .faith-container1 {
        padding: 0px;
        width: 80%;
        height: 350px;
    }
    .ldsanswers-logo {
        padding: 0px 0px 0px 0px;
    }
    .faith-descript {
        width: 100%;
        text-align: center;
        color: #e0e0e0;
    }
    .faith-descript a {
        color: white;
    }
    .faith-crisis-image {
        display: block;
    }
    .ldsAnswersWhite {
        display: block
    }
    .ldsAnswersGreen {
        display: none;
    }
    a.faith-link:hover, a.faith-link:active, a.faith-link:link {
        color: #dccc78;
    }
    .faith-crisis-image {
        background-position: top;
        height: 250px;
    }
    div.jsf-latest-news-item img {
        width: 100%;
        padding: 0px;
        margin: 0px;
        margin-bottom: 15px;
    }
    #footer-sidebar2, #footer-sidebar3 {
        grid-column: 1 / 3;
        text-align: center;
        border-bottom: solid 3px #333;
    }
    #footer-sidebar3 {
        padding-bottom: 15px;
    }
    .grid-container {
        grid-template-areas:
            "doc-one doc-one"
            "doc-two doc-two"
            "doc-three doc-four"
            "doc-five doc-four";
        grid-template-rows: 250px;
    }
    .subtitle-header {
        font-size: 16px;
    }
    .grid-item {
        padding: 5px;
    }
    .dvdbuttons-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "dvdgenre dvdgenre dvdgenre" "dvdbuy dvdlearn dvdwatch";
    }
    .dvd-genre {
        text-align: left;
    }
    .faith-buttons {
        padding: 20px 0px 20px 0px;
    }
    .jsf-embed-youtube {
        height: 250px;
    }
}

@media all and (max-width: 450px) {
    #doc-title {
        margin: 20px;
        font-size: 20px;
    }
    .inner-news-content {
        padding: 15px 10px;
    }
    #news-title {
        font-size: 30px;
    }
    .footer-sidebar {
        width: 100%;
        text-align: center;
    }
    .doc-container2 {
        padding: 20px 40px 40px 40px;
    }
    .grid-container {
        grid-template-areas:
            "doc-one doc-one"
            "doc-two doc-two"
            "doc-three doc-four"
            "doc-five doc-five";
    }
    .ages-grid {
        width: 80%;
        grid-template-columns: repeat(1, 1fr);
    }
    .pa-image {
        width: 100%;
        float: none;
        padding: 0px;
    }
    .homepageNewsletter {
        margin-top: 0px;
    }
    .jsfvideo {
        background-size: 220%;
        height: 280px;
    }
    .nivo-lightbox-wrap {
        top: 220px;
        bottom: 220px;
        right: 15px;
        left: 15px;
    }
    #page #main {
        padding: 20px 0px 0px 0px;
    }
    #page #main .wf-container-main h2 {
        font-size: 1.5em;
        text-align: center;
        line-height: 1.5;
    }
}

@media all and (max-width: 400px) {
    .home .outer-wrapper {
        height: 290px;
    }
    
    .sub-wrapper {
        grid-template-areas: 
            "documentaries"
            "multimedia"
            "scripture"
            "scholar" 
            "connect"
            "store";
        grid-template-columns: 1fr;
        width: 90%;
        grid-gap: 2px;
    }
    .service-wrapper {
        height: 40px;
        box-shadow: none;
    }
    .service-wrapper:hover {
        transform: none;
        z-index: 2;
        box-shadow: none;
    }
    .service-wrapper:hover .title-text{
        opacity: 1;
    }
    .service-wrapper .title-text {
        font-size: 14px;
    }
    .res-subtitle {
        font-size: 13px;
    }
    .service-wrapper-inner {
        display: none;
    }
    .doc-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .doc-container1 {
        width: 85%;
    }
    #doc-title {
        margin: 20px 10px;
    }
    .doc-button {
        padding: 5px 10px;
    }
    .play-symbol-red {
        width: 55px;
    }
    .faith-descript .inner-faith-descript {
        font-size: 17px;
    }
    .faith-button {
        font-size: 14px;
        padding: 5px 10px;
    }
    .faith-container1 {
        width: 85%;
    }
    .faith-buttons {
        padding: 20px 0px 20px 0px;
    }
    .ldsanswers-logo {
        width: 200px;
    }
    .grid-container {
        grid-template-columns: 100%;
        grid-template-rows: 200px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "doc-one"
            "doc-two"
            "doc-three"
            "doc-five" ;
    }
    .grid-item.doc-four {
        display: none;
    }
    .dvdbuttons-grid {
        grid-gap: 5px;
    }
    .dvdbuttons-style {
        font-size: 11px;
        height: 30px;
    }
    .page-template-template-documentaries-v1 #main .wf-wrap {
        padding: 0px 10px;
    }
    .dvd-genre {
        line-height: 3;
    }
    .ages-grid {
        width: 90%;
    }
    .jsf-embed-youtube {
        height: 200px;
    }
    #page #main h3 {
        font-size: 1.2em;
        line-height: 1.5;
    }
    #page #main {
        padding: 20px 0px 0px 0px;
    }
    .simple-jsf-button {
        margin: 0px 20px;
    }
}
@media (max-width: 335px) {
    .ldsanswers-logo {
        padding: 30px 0px 0px 0px;
    }
}
@media screen and (max-width: 320px) {
    #doc-title {
        font-size: 18px;
    }
    .grid-container {
        grid-template-rows: 150px;
    }
    .title-header {
        font-size: 20px;
    }
    .ages-grid {
        width: 100%;
    }
    .jsf-embed-youtube {
        height: 150px;
    }
}

/* (105) FOOTER */

#footer .row .widget {
	margin-bottom: 10px;
}

.outer-jsf-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
    margin: -5px;
}

.jsf-gallery {
	position: relative;
    margin: 8px;
}

.jsf-gallery-overlay {
	position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .30s ease-out;
  background-color: #232323;
}

.jsf-gallery-img {
	width: 100%;
}

.jsf-gallery-nmtag {
	color: white;
	text-align: center;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: bold;
	padding-top: 10px;
	line-height: 1.2;
	
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.jsf-gallery:hover .jsf-gallery-overlay {
  opacity: 0.9;
}

/* (106) NAVIGATION MENU */
@media (max-width: 1200px) and (min-width: 990px) {
    #header .top-header .header-navigation ul li {
        margin-left: 15px;
    }
}
#header .top-header .header-navigation #menu-joseph-smith-foundation-main-menu li.menu-item-has-children:hover ul.sub-menu ul.sub-menu {
    visibility: visible !important;
    position: relative;
    left: 0px;
    margin: 0px;
    background-color: unset;
    box-shadow: unset;
}

#header .top-header .header-navigation #menu-joseph-smith-foundation-main-menu li.menu-item-has-children:hover ul.sub-menu ul.sub-menu li {
    transition: 0.75s ease ;
}

#header .top-header .header-navigation #menu-joseph-smith-foundation-main-menu li.menu-item-has-children ul.sub-menu ul.sub-menu li {
    padding-left: 15px;
}

#header .top-header .header-navigation #menu-joseph-smith-foundation-main-menu li.menu-item-has-children .sub-menu li:first-child {
    padding-top: 0px
}

#menu-joseph-smith-foundation-main-menu .sub-menu li.menu-item-has-children > a {
    border-bottom: unset;
    border-bottom: #d8d8d8 solid;
}

#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li:hover > a, #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li:focus-within > a {
    border-color: #d8d8d8;
    border-left: unset;
}

#menu-joseph-smith-foundation-main-menu > li:hover .sub-menu li.menu-item-has-children > a {
    transition: 0.75s ease ;
}

/* (107) POSTS */

#blog .blog-post .blog-post-author {
    display: none;
}

#header .bottom-header.blog .col-sm-12 h1[class^='logoHeader'] {
	text-align: right;
	font-size: 45px;
	margin: 0px;
}

#header .bottom-header.blog {
	padding: 75px 0px !important;
}

.blog-post-related-articles .related-post:hover .related-post-title a:active span, .blog-post-related-articles .related-post:hover .related-post-title a:hover span, .blog-post-related-articles .related-post:active .related-post-title {
    color: #f1d204;
}

@media screen and (max-width: 700px) {
    #header .bottom-header.blog .col-sm-12 h1[class^='logoHeader'] {
        text-align: center;
        font-size: 35px;
        margin: 10px 0px;
    }
    #header .bottom-header.blog .col-sm-12 .bottomHeaderLogo {
        float: unset;
    }
    body #header .bottom-header.blog {
        padding: 25px 0px !important;
    }
}

/* (108) HEADER */

@media (max-width: 1550px) {
    .home .container {
        width: 95%;
    }
}