/* DEFAULTS */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

html {
    font-size: 100%;
    box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

* {
    -webkit-locale: auto;
    white-space: normal;
}

:root {
    --gold: #BD9E24;
    --dark-grey: #3A4750;
    --light-grey: #EEEEEE;
}

body {
    margin: auto;
    padding: 0;
    font-family: "IBM Plex Serif", serif;
    font-size: 1rem;
    line-height: 2;
}

.wrapper {
    padding: 1rem 0 0 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-container {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

.text-container-large {
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

.text-block { padding: 2rem 0; }

/* MEDIA */
.media-block {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 0.7fr);
    gap: 2rem;
    justify-content: center;
}

.media-block-item {
    padding: 1rem;
    width: 300px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.media-block-item img {
    max-width: 100%;
}

.date {
    font-size: 0.8rem;
    color: var(--dark-grey);
}

.img-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.img-container img { max-width: 800px; }

.quotes-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quote {
    padding: 2rem;
    width: 70%;
    background-color: var(--gold);
    color: #FFF;
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.quote-author {
    padding: 0 2rem;
    text-align: right;
}

.events-container { padding: 2rem 0; }

.event-wrapper {
    padding: 2rem;
    border-radius: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.church-chron-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background-color: var(--gold);
    color: #FFF;
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.highlight {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background-color: var(--gold);
    color: #FFF;
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.highlight a {
    text-decoration: underline;
    color: #FFF;
}

.location-itens-container {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.location-item {
    padding: 2rem;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PARTNERS */
.partners-gallery {
    display: grid;
    grid-template-columns: repeat(3, 0.7fr);
    gap: 1rem;
    align-content: center;
}

.partners-gallery-item {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.partners-gallery-item img { max-width: 150px; }

/* GALLERY */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-content: center;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    max-height: 500px;
    max-width: 350px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.gallery-large {
    margin: 2rem 0 4rem 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-content: center;
}

.gallery-large-item {
    width: 350px;
    height: 350px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.gallery-large-item img {
    position: absolute;
    top: -300px;
    left: -300px;
    width: 1000px;
    height: 1000px;
    transition: transform 0.2s;
}

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

.gallery-large-header {
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--gold);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.gallery-large-header h3 { color: #FFF; }

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

h2 { color: var(--gold); }

h3 { color: var(--dark-grey); }

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

/* MEDIA QUERIES */
@media (max-width: 1280px) {
    h1 { font-size: 1.7rem; }

    h2 { font-size: 1.2rem; }

    .text-container { width: 80%; }

    .img-container img { max-width: 100%; }

    .quote { width: 100%;}

    .church-chron-container { padding: 0 1rem 0 0; }

    .partners-gallery {
        grid-template-columns: repeat(1, 0.7fr);
        justify-content: center;
    }

    .gallery { grid-template-columns: repeat(1, 1fr); }

    .gallery-item img { max-width: 100%; }

    .gallery-large { grid-template-columns: repeat(1, 1fr); }

    .media-block { grid-template-columns: repeat(1, 0.7fr); }
}

/* FAQs */
.expansion-item {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.item-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease; /* Add transition for smooth rotation */
}

.active { transform: rotate(5deg); } /* Rotate the button 90 degrees when clicked */

.item-content {
    display: none;
    padding: 10px;
}

.expanded { display: block; }

.showcase-faqs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-faqs-item {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

/* NAVBAR */
.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar img {
    max-height: 250px;
    margin: 1rem 0 1.5rem 0;
}

nav {
    padding: 0.5rem 0 .5rem 0;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.navbar-items {
    display: flex;
    justify-content: space-between;
}

.navbar-item {
    display: inline;
    list-style: none;
}

.navbar-link {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.navbar-burguer { display: none; }

.navbar-burguer div {
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: black;
    transition: all 0.3s ease;
}

@media (max-width: 1280px) {
    body { overflow-x: hidden; } /* to remove the scroll-bar */

    nav {
        width: 90%;
        display: flex;
        justify-content: right;
    }

    .navbar img { height: 150px;}

    .navbar-items {
        padding: 1rem;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 35vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(100%); /* to hide the menu bar */
        transition: transform 0.3s ease-in;
        background-color: var(--gold);
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
        z-index: 1;
        overflow-y: auto;
    }

    .navbar-items li { opacity: 0; } /* to hide the menu bar content */

    .navbar-link { color: #FFF !important; }

    .navbar-burguer {
        padding: 0 1rem 0 0;
        display: block;
    }
}

.navbar-burguer-active { transform: translateX(0%); } /* when burguer menu is enabled */

@keyframes navbarFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .burguer-r1 { transform: rotate(-45deg) translate(-5px, 6px); } /* transform burguer menu icon into a close sign */

.toggle .burguer-r2 { opacity: 0; }

.toggle .burguer-r3 { transform: rotate(45deg) translate(-5px, -6px); }

/* FOOTER */
footer {
    padding: .5rem 0;
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border-top: 1px solid #000;
}

.footer-social {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-column-gap: 1rem;
    grid-auto-flow: column;
}

.footer-social svg {
    height: 1.5rem;
    fill: var(--gold);
}

@media (max-width: 1280px) {
    footer {
        width: 90%;
        flex-direction: column;
    }

    .footer-social svg {
        height: 1.3rem;
        fill: var(--gold);
    }
}