@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bordo: #5c1320;
    --bordo-escuro: #3d0b14;
    --bordo-claro: #751d2c;
    --dourado: #d4af37;
    --dourado-claro: #f3d77a;
    --branco: #ffffff;
    --creme: #f8f1df;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at top, #751d2c 0%, #5c1320 35%, #3d0b14 100%);
    color: var(--branco);
    min-height: 100vh;
}


/* =========================
   HEADER
========================= */

header {
    position: relative;
    text-align: center;
    padding: 55px 20px 70px;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(61, 11, 20, 0.88),
            rgba(92, 19, 32, 0.95)
        );
    
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
}


/* brilho decorativo */

header::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.16),
        transparent 70%
    );
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}


/* linhas douradas */

header::after {
    content: "";
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--dourado);
}


/* LOGO */

.logo {
    width: 155px;
    height: auto;
    display: block;
    margin: 0 auto 20px;

    background: transparent;
    border: 0 ;
    outline: none ;
    box-shadow: none ;
}


/* Nome da igreja */

header h2 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}


/* Título principal */

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(55px, 8vw, 90px);
    font-weight: 400;
    line-height: 1;
    color: var(--dourado-claro);

    text-shadow:
        0 2px 8px rgba(0,0,0,.4);
}


/* Subtítulo */

header p {
    margin-top: 20px;

    font-family: 'Cinzel', serif;
    font-size: 19px;
    letter-spacing: 5px;
    text-transform: uppercase;

    color: var(--branco);
}


/* =========================
   SEÇÃO DE BOAS-VINDAS
========================= */

.texto {
    max-width: 950px;
    margin: auto;
    padding: 70px 25px 45px;
    text-align: center;
}


.texto h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--dourado-claro);
    margin-bottom: 25px;
}


.texto h2::after {
    content: "";
    display: block;

    width: 65px;
    height: 2px;

    background: var(--dourado);

    margin: 15px auto 0;
}


.texto p {
    font-size: 17px;
    line-height: 1.8;
    color: #f3e9e0;
    max-width: 760px;
    margin: auto;
}


/* =========================
   GALERIA
========================= */

.galeria {
    width: min(1200px, 92%);
    margin: auto;

    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

    padding: 30px 0 80px;
}


/* CARD */

.card {
    position: relative;

    background: #4a0e18;

    border-radius: 5px;

    overflow: hidden;

    border: 1px solid rgba(212, 175, 55, 0.55);

    box-shadow:
        0 15px 35px rgba(0,0,0,.35),
        0 0 0 5px rgba(212,175,55,.04);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


.card::before {
    content: "";

    position: absolute;
    inset: 7px;

    border: 1px solid rgba(212,175,55,.25);

    pointer-events: none;

    z-index: 2;
}


.card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 20px 45px rgba(0,0,0,.5),
        0 0 25px rgba(212,175,55,.15);
}


.card img {
    width: 100%;
    height: auto;

    display: block;

    cursor: pointer;

    transition: transform .5s ease;
}


.card:hover img {
    transform: scale(1.025);
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    background: #300810;

    color: #e9d9d0;

    padding: 35px 20px;

    border-top: 1px solid rgba(212,175,55,.35);

    font-size: 14px;

    line-height: 1.8;
}


footer strong {
    color: var(--dourado-claro);
}


/* =========================
   MODAL
========================= */

#modal {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(25, 3, 8, .96);

    justify-content: center;
    align-items: center;

    z-index: 9999;

    padding: 30px;
}


#modal img {
    max-width: 92%;
    max-height: 92vh;

    object-fit: contain;

    border: 1px solid rgba(212,175,55,.6);

    box-shadow:
        0 0 50px rgba(0,0,0,.8);
}


#modal span {
    position: absolute;

    top: 15px;
    right: 30px;

    font-size: 55px;

    color: var(--dourado-claro);

    cursor: pointer;

    transition: .3s;
}


#modal span:hover {
    color: white;

    transform: rotate(90deg);
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 600px) {

    header {
        padding: 40px 15px 60px;
    }

    .logo {
        width: 110px;
    }

    header h2 {
        font-size: 14px;
        letter-spacing: 2px;
    }

    header h1 {
        font-size: 55px;
    }

    header p {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .texto {
        padding: 50px 20px 30px;
    }

    .texto h2 {
        font-size: 27px;
    }

    .texto p {
        font-size: 15px;
    }

    .galeria {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 55px;
    }

    #modal {
        padding: 15px;
    }

    #modal img {
        max-width: 96%;
        max-height: 85vh;
    }

    #modal span {
        right: 15px;
        font-size: 45px;
    }
}