/* CSS Reset (this adjusts the ENTIRE HTML document)
    - getting rid of the auto marin
    - getting rid of the auto padding 
    - setting the box-sizing to border box (this makes it so if I add 20px of padding to a div that has a width of 400px then
      the width will still only be 400px, but 20 of its px will be padding (NO OVERFLOW) which is a 380px div with 20px of padding 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Styling */

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7em;
}

body {
    background: #f4f4f4;
}

a {
    color: #333;
    text-decoration: none;
}

h1, h2, h3 {
    padding-bottom: 20px;
}

p {
    margin: 10px 0;
}

/* Utilities
    - the "container" class is for the navbars links (that way they stay in the middle of the screen and do not extend beyond 1100px)
    - the "text-primary" class is for styling a single word different from that of its surrounding text
    - the "lead" class is for styling a single paragraph different from that of its surrounding paragraphs
*/

.mtb {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tac {
    text-align: center;
}

.church-history-list {
    list-style: none;
    /* remove default bullets */
    padding-left: 5rem;
    width: 50%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .church-history-list {
        width: 60%;
        /* padding-left: 10rem; */
    }
}

.church-history-list li {
    display: flex;
    /* make the bullet and text align horizontally */
    align-items: center;
    /* vertical alignment of bullet with text */
    margin-bottom: 1rem;
}

.church-history-list li::before {
    content: "•";
    /* the bullet */
    color: #007bff;
    /* bullet color */
    font-size: 1.2rem;
    /* bullet size */
    margin-right: 1rem;
    /* space between bullet and text */
    flex-shrink: 0;
    /* prevent bullet from shrinking */
}

.container {
    margin: auto;
    max-width: 1100px;
    overflow: auto;
    padding: 0 20px;
}

.container2 {
    margin: auto;
    max-width: 100%;
    overflow: auto;
    padding: 0 20px;
}

.container3 {
    margin: auto;
    max-width: 100%;
    overflow: auto;
    padding: 0;
}

.opacity9 {
    opacity: 0.9;
}

.text-primary {
    color: #CD853F;
}

.text-dark {
    color: #333
}

.text-white {
    color: #fff
}

.text-bold {
    color: #000;
    font-size: 1.5rem;
    font-weight: 15;
}

.lead {
    font-size: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.lead span {
    opacity: 0;
    animation: fadeInSlower 4s ease-in forwards;
}

@keyframes fadeInSlower {
    to {
        opacity: 1;
    }
}

.btn {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    background: #333;
    padding: 13px 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #CD853F;
    color: #333;
}

.btn-light {
    background: #f4f4f4;
    color: #333;
}

.bg-dark {
    background: #333;
    color: #fff;
}

.bg-light {
    background: #f4f4f4;
    color: #333;
}

.bg-primary {
    background: #CD853F;
    color: #333;
}

.bg-black {
    background: #000;
    color: #fff;
}

.clr {
    clear: both;
}

.large-heading {
    font-size: 40px;
    line-height: 1.2;
}

/* Padding */

.py-1 {
    padding: 10px 0;
}

.py-2 {
    padding: 20px 0;
}

.py-3 {
    padding: 30px 0;
}

/* Navbar */

#navbar {
    background: #333;
    color: #fff;
    overflow: hidden;
    height: 8vh;
}

#navbar a {
    color: #fff;
}

#navbar h1 {
    float: left;
    padding-top: 2.1vh;
}

#navbar ul {
    list-style: none;
    float: right;
}

#navbar ul li {
    float: left;
}

#navbar ul li a {
    display: block;
    padding: 2.1vh;
    text-align: center;
}

#navbar ul li a:hover, #navbar ul li a.current {
    background: #444;
    color: #CD853F;
}

/* Showcase (Home) */

#home-showcase {
    background: url('../img/outside-church2.JPG') no-repeat center center/cover;
    height: 93vh;
}

#home-showcase .home-showcase-content {
    color: #fff;
    text-align: center;
    padding-top: 30vh;
}

#home-showcase .home-showcase-content h1 {
    font-size: 60px;
    line-height: 1.2em;
}

#home-showcase .home-showcase-content p {
    padding-bottom: 20px;
    line-height: 1.7em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.15);
    padding: 2rem 3rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Home Info */

#home-info {
    height: 400px;
}

#home-info .info-img {
    float: left;
    width: 40%;
    background: url('../img/prayer.JPG') no-repeat center center/cover;
    min-height: 100%;
}

#home-info .info-content {
    float: right;
    width: 60%;
    height: 100%;
    text-align: center;
    padding: 50px 30px;
    overflow: hidden;
}

#home-info .info-content p {
    padding-bottom: 30px;
}

/* Features */

.box {
    float: left;
    min-height: 320px;
    width: 33.3%;
    padding: 50px;
    text-align: center;
}

.box i {
    margin-bottom: 10px;
}

/* Gallery Info */

#gallery-info .info-right {
    float: right;
    width: 50%;
    min-height: 100%;
}

#gallery-info .info-right img {
    display: block;
    margin: auto;
    width: 55%;
    height: 450px;
    border-radius: 50%;
}

#gallery-info .info-left {
    float: left;
    padding-top: 8%;
    width: 50%;
    min-height: 100%;
}

/* Gallery */

#gallery .box {
    height: 100vh;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow-y: hidden;
}

#gallery .images {
    height: 100%;
    display: inline-block;
    overflow: hidden;
}

#gallery .images img {
    padding-top: 15%;
    padding-bottom: 10%;
    margin-left: 10px;
    margin-right: 10px;
    height: 100%;
}

.images>img:hover {
    -webkit-transform: scale(1.25);
    transform: scale(1.25);
    cursor: zoom-in;
}

/* General Styles */
#gallery {
    padding: 40px 0;
    background-color: #333;
}

#gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Gallery Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    justify-items: center;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* Fish Type */

#fish-type {
    height: 100%;
    padding-top: 60px;
}

#fish-type .fish img {
    width: 100px;
    float: left;
    margin-right: 20px;
    border-radius: 50%;
}

#fish-type h2 {
    color: #333;
    text-align: center;
    padding-bottom: 40px;
}

#fish-type .fish {
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 5px;
    height: 150px;
    text-align: center;
    font-size: x-large;
}

#fish-type .fish:hover {
    color: #fff;
    background: #333;
    cursor: pointer;
}

#left-half {
    float: left;
    width: 50%;
    padding-right: 25px;
}

#right-half {
    float: right;
    width: 50%;
}

/* #left-half #RockBass:hover, #right-half #Carp:hover{
    background: #CD853F;
    color: #333;
    cursor: initial;
} */

/* Fish Type (when clicked) */

.fishType i:hover {
    color: #CD853F;
}

.fishType h1 {
    text-align: center;
    padding-top: 5vh;
    padding-bottom: 11vh;
    text-decoration: underline #333;
}

.fishType #biggestFish {
    float: left;
}

.fishType #biggestFish h3 {
    text-align: center;
}

.fishType #biggestFish img {
    height: 50vh;
}

.fishType #location {
    float: right;
}

.fishType #location h3 {
    text-align: center;
}

.fishType #description {
    padding-top: 7vh;
    text-align: center;
}

.fishType #description li {
    list-style: none;
    padding-bottom: 1vh;
}

.fishType #description ul {
    padding-bottom: 2.5vh;
}

/* Contact Showcase */

#contact-showcase {
    background: url('../img/inside-church-centered.JPG') no-repeat center center/cover;
    height: 92vh;
    display: flex;
}

#contact-showcase .contact-showcase-content {
    color: #fff;
    text-align: center;
}

#contact-showcase .contact-showcase-content h2 {
    font-size: 4.0vh;
    line-height: 1.2em;
    padding-bottom: 60px;
}

#contact-showcase .contact-showcase-content h1 {
    font-size: 6.2vh;
    padding-bottom: 0px;
    line-height: 1.7em;
    color: #fff;
}

/* Contact Info */

#contact-info {
    height: 31vh;
    background: #333;
    color: #fff;
}

#contact-info .left-right-side span, #contact-info .right-right-side span {
    text-decoration: underline #fff;
}

#contact-info .left-right-side span:hover, #contact-info .right-right-side span:hover {
    color: #CD853F;
    text-decoration: underline #CD853F;
}

#contact-info .left-side {
    float: left;
    width: 20%;
    height: 31vh;
    background: url('../img/churchprayer.JPG') no-repeat center center/cover;
    color: #fff;
}

#contact-info .middle-side {
    float: left;
    width: 40%;
    height: 31vh;
    background: #333;
    color: #fff;
    opacity: 0.25;
    padding-left: 50px;
    padding-top: 75px;
}

#contact-info .left-right-side {
    float: left;
    width: 20%;
    height: 31vh;
    background: #333;
    color: #fff;
    opacity: 0.25;
    padding-top: 75px;
    padding-right: 10px;
    cursor: pointer;
}

#contact-info .left-right-side h3 {
    padding-bottom: 0px;
}

#contact-info .right-right-side {
    float: right;
    width: 20%;
    height: 31vh;
    background: #333;
    color: #fff;
    opacity: 0.25;
    padding-top: 75px;
    padding-right: 10px;
    cursor: pointer;
}

#contact-info .right-right-side h3 {
    padding-bottom: 0px;
}

#contact-info .middle-side:hover, #contact-info .left-right-side:hover, #contact-info .right-right-side:hover {
    opacity: 1;
}

/* Social Media */

#features .bg-light a:hover {
    color: #CD853F;
}

#features .bg-primary a:hover {
    color: #f4f4f4;
}

/* Footer */

#main-footer {
    text-align: center;
    padding: 20px;
}

/* New Gallery */

@import url(https://fonts.bunny.net/css?family=amita:700);

.gallery {
    background: url(https://res.cloudinary.com/ritalbradley/image/upload/v1657644013/pexels-elijah-o_donnell-3473569_o7ohfd.jpg) center center/cover no-repeat;
    min-height: 100vh;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.gallery h1 {
    color: #fefae0;
    font-family: Amita;
    margin: 20px auto;
    width: 450px;
    font-size: 3rem;
    text-align: center;
    border-bottom: 10px double #bc6c25;
}

.gallery-image {
    width: 450px;
    height: 300px;
    margin: 20px;
    border: 10px solid #fefae0;
    -webkit-filter: sepia(100%);
    filter: sepia(100%);
    transition-duration: 1s;
    cursor: pointer;
}

.gallery-image:hover {
    border: 5px solid #fff;
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-filter: none;
    filter: none;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

#schedule p {
    margin: 0;
    line-height: 1.6;
}

#schedule ol {
    list-style: none;
    counter-reset: list;
    padding: 0 1rem;
}

#schedule li {
    --stop: calc(100% / var(--length) * var(--i));
    --l: 62%;
    --l2: 88%;
    --h: calc((var(--i) - 1) * (180 / var(--length)));
    --c1: hsl(var(--h), 71%, var(--l));
    --c2: hsl(var(--h), 71%, var(--l2));

    position: relative;
    counter-increment: list;
    max-width: 45rem;
    margin: 2rem auto;
    padding: 2rem 1rem 1rem;
    box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: white;
}

#schedule li::before {
    content: '';
    display: block;
    width: 100%;
    height: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop));
}

#schedule h3 {
    display: flex;
    align-items: baseline;
    margin: 0 0 1rem;
    color: rgb(70 70 70);
}

#schedule h3::before {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 1rem;
    width: 3rem;
    height: 3rem;
    content: counter(list);
    padding: 1rem;
    border-radius: 50%;
    background-color: var(--c1);
    color: white;
}

@media (min-width: 40em) {
    #schedule li {
        margin: 3rem auto;
        padding: 3rem 2rem 2rem;
    }

    #schedule h3 {
        font-size: 2.25rem;
        margin: 0 0 2rem;
    }

    #schedule h3::before {
        margin-right: 1.5rem;
    }
}

.family {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    grid-auto-rows: minmax(150px, 1fr);
    /* 2 rows scale responsively */
    gap: 4em;
    padding: 8em;
    pointer-events: none;
    background-color: rgba(51, 51, 51, 0.8);
}

.family img {
    width: 100%;
    /* fill the grid cell width */
    height: 100%;
    /* fill the grid cell height */
    object-fit: cover;
    /* maintain aspect ratio, crop if needed */
    object-position: center;
    border-radius: 0.25em;
    transition: 400ms 50ms;
    pointer-events: auto;
    cursor: pointer;
}

.family:hover img:not(:hover) {
    filter: saturate(0.2) opacity(0.5);
}

/* Optional: make grid scale on smaller screens */
@media (max-width: 1200px) {
    .family {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns instead of 4 */
    }
}

@media (max-width: 700px) {
    .family {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 2em;
        padding: 3em 4em;
    }
}