/*** HOME PAGE ***/





/* 1 home--banner */

.home--banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url('/images/home/CPMI_23rd_Anniversary_2023.04.22-congregation.JPG');
}

.home--banner .btn--container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2em;
    margin: 1em;
}

.home--banner .btn--container .button{
    box-shadow: 0px 0px 20px var(--mycolor-black, black);
}



/* 2 home--achievements */

.home--achievements {
    background-color: var(--mycolor-black, black);
    padding: 0; /* override fixed-bg padding */
    margin-bottom: -2px; /* avoid gap w next section */
}

.achievements{
    display: flex;
    flex-direction: row;
    gap: 3em;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    
    position: relative;
    top: -20px;
    right: -25%;
    
    border-radius: 18px 0 0 18px;
    width: 75%;
    padding: 2em;
    padding-right: 70px; /* same as scroll bg padding */
    background-color: white;
}

.achievements--tile {
    /* width: 200px; */
    /* margin: 12px; */
    font-family: 'Fjalla One';
    font-size: 1.5em;
    color: var(--mycolor-black, black);
}

.achievements--tile p{
    text-align: center;
}



/* embedded YT vid */
.vid-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.vid-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* certer horizontally */

    width: 75%;
    height: 75%;
}



/* 3 home--news */

.home--news {
    background-color: var(--mycolor-black, black);
    margin-bottom: -2px; /* avoid gap w next section */
}

#carouselNews .carousel-inner {
    padding-bottom: 100%; /* height adj on it's own */
}

/* make carousel img fit in div, but max height 75vh */
#carouselNews.horizontalfit,
#carouselNews.horizontalfit img {
    width: 100%;
    min-width: 100%;
    height: auto;
    min-height: 100%;
    max-height: 75vh;
}

#carouselNews img {
    object-fit: contain;
}

/* make carousel img fit in div, but shrinks to height */
#carouselNews.verticalfit,
#carouselNews.verticalfit img {
    width: 100%;
    min-width: auto;
    height: 100%;
    max-height: 75vh;
}




/* 3 home--goals */

.home--goals {
    background-color: var(--mycolor-black, black);
    min-height: 300px;
    margin-bottom: -2px; /* avoid gap w next section */
}

#goal {
    width: 75%;
    margin-bottom: 140px;
}

.overflow-img.life{
    float: right;
    margin-top: -140px;
    margin-right: 70px; /* double scroll bg padding */
}

.overflow-img.life img{
    max-width: 25vw;
    width: 400px;
}



/* 4 home--desc */

.home--desc {
    background-color: var(--mycolor-white, white);
    min-height: 300px;
    padding-bottom: 200px; /* for gap bw about-desc & home--quotes */
    color: var(--mycolor-black, black);
}

.overflow-img.ccf{
    margin-left: 70px; /* double scroll bg padding */
    margin-top: 100px; /* for gap w overflow-img.life */
}

.overflow-img.ccf img{
    max-width: 700px;
}

.overflow-img.jclbi{
    float: right;
    margin-top: 2em;
}

.overflow-img.jclbi img{
    max-width: 400px;
}

#about-desc {
    margin-top: 100px; /* tbh idk why this works, but maybe I should just move desc to left of jclbi*/
    margin-bottom: 2em; /* idk either */
    /* margin-left: 60%; */
    width: 60%;
}



/* 5 home--quotes */

.home--quotes {
    background-color: var(--mycolor-black, black);
    min-height: 300px;
}

.qoutes--container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6em;
    flex-wrap: wrap;
}

.qoute--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    text-align: center;
}

.qoute--img {
    margin-top: -140px; /* overflow to home--desc */   
    width: 100%;
    height: 240px;
}

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



/* 6 home--donate */

.home--donate {
    background-color: var(--mycolor-white, white);
    color: var(--mycolor-black, black);;
}

#donate-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    text-align: center;
}





/* TABLET navbar */
@media all and (max-width: 960px) {

    /* 3 home--goals */

    .overflow-img.life{
        float: right;
        margin-top: -140px;
        /* margin-right: -70px;  */
        /* double scroll bg padding */
    }



    /* 4 home--desc */

    .home--desc {
        padding-bottom: 100px;
    }

    #about-desc {
        margin-top: 1em;
    }

    .overflow-img.ccf, 
    .overflow-img.jclbi {
        float: none;
        margin: 70px auto;
    }

    .overflow-img.ccf {
        max-width: 80%;
        margin-top: 100px;
    } 
    
    .overflow-img.jclbi {
        max-width: 50%;
    } 
    
    .overflow-img.ccf img, 
    .overflow-img.jclbi img {
        max-width: 100%;
    }





    /* 5 home--quotes */

    .qoute--img {
        margin-top: -70px; /* overflow to home--desc */   
    }

}






/* MOBILE */
@media all and (max-width: 700px) {

    /* 1 home--banner */

    .home--banner .btn--container {
        flex-direction: column;
        align-items: center;
    }



    /* 3 home--goals */

    #goal {
        width: 100%;
    }

    

    /* 4 home--desc */

    #about-desc {
        width: 100%;
        margin-left: auto;
    }

    .overflow-img.ccf, 
    .overflow-img.jclbi {
        max-width: 100%;
    }


    .vid-container iframe {   
        width: 100%;
        height: 100%;
    }


    /* 5 home--quotes */

    .qoutes--container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5em;
    }






    /* .overflow-img {
        float: none;
        width: 100%;
        
    }

    .overflow-img img{
        width: 100%;
        max-width: 100vw;
    }

    
    .overflow-img.life,
    .overflow-img.jclbi {
        min-width: 75vw;
        width: 75vw;
    }

    .overflow-img.life img,
    .overflow-img.jclbi img{
        min-width: 50vw;
    } */
}