/* =========================================================
   PARÓQUIA
   ========================================================= */

.paroquia-page {
    background: #ffffff;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.paroquia-header {
    padding: 55px 0 45px;

    text-align: center;

    background: #fdf3f6;

    border-bottom: 1px solid #f0dce3;
}

.paroquia-header .container {
    max-width: 850px;
}

.paroquia-header h1 {
    margin: 0 0 15px;

    color: #5a3b48;

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 700;
}

.paroquia-header p {
    margin: 0;

    color: #765263;

    line-height: 1.7;
}


/* =========================================================
   KICKER
   ========================================================= */

.paroquia-kicker {
    display: inline-block;

    margin-bottom: 10px;

    padding: 6px 14px;

    border-radius: 20px;

    background: #f3d7e1;

    color: #765263;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO DAS SEÇÕES
   ========================================================= */

.paroquia-section-heading {
    max-width: 750px;

    margin: 0 auto 45px;

    text-align: center;
}

.paroquia-section-heading h2 {
    margin: 0 0 12px;

    color: #5a3b48;

    font-size: 1.8rem;

    font-weight: 700;
}

.paroquia-section-heading p {
    margin: 0;

    color: #765263;

    line-height: 1.7;
}


/* =========================================================
   LINHA DO TEMPO
   ========================================================= */

.paroquia-timeline {
    padding: 70px 0;

    background: #fdf7f9;
}

.timeline {
    position: relative;

    max-width: 900px;

    margin: 0 auto;

    padding: 10px 0;
}


/* LINHA CENTRAL */

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 2px;

    transform: translateX(-50%);

    background: #e3b5c5;
}


/* ITEM */

.timeline-item {
    position: relative;

    width: 50%;

    min-height: 90px;

    padding: 15px 45px;
}


/* ESQUERDA */

.timeline-item:nth-child(odd) {
    text-align: right;
}


/* DIREITA */

.timeline-item:nth-child(even) {
    margin-left: 50%;

    text-align: left;
}


/* MARCADOR */

.timeline-marker {
    position: absolute;

    top: 24px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 3px solid #ffffff;

    border-radius: 50%;

    background: #f3d7e1;

    color: #b76d85;

    box-shadow:
        0 3px 10px
        rgba(90, 59, 72, .12);

    z-index: 2;
}


/* MARCADOR ESQUERDO */

.timeline-item:nth-child(odd)
.timeline-marker {

    right: -21px;

}


/* MARCADOR DIREITO */

.timeline-item:nth-child(even)
.timeline-marker {

    left: -21px;

}


/* CARD */

.timeline-content {
    display: inline-block;

    width: 100%;

    max-width: 340px;

    padding: 20px;

    border: 1px solid #f0dce3;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px
        rgba(90, 59, 72, .05);
}


/* DATA */

.timeline-date {
    display: block;

    margin-bottom: 7px;

    color: #b76d85;

    font-size: .85rem;

    font-weight: 700;
}


/* TÍTULO */

.timeline-content h3 {
    margin: 0;

    color: #5a3b48;

    font-size: 1.05rem;

    font-weight: 700;
}


/* =========================================================
   GALERIA
   ========================================================= */

.paroquia-galeria {
    padding: 70px 0;
}


/* ITEM DA GALERIA */

.galeria-item {
    position: relative;

    display: block;

    width: 100%;

    padding: 0;

    overflow: hidden;

    border: 0;

    border-radius: 14px;

    background: #fdf7f9;

    cursor: pointer;

    aspect-ratio: 4 / 3;
}


/* IMAGEM */

.galeria-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}


/* OVERLAY */

.galeria-item-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(90, 59, 72, .0);

    color: #ffffff;

    font-size: 1.5rem;

    opacity: 0;

    transition:
        opacity .25s ease,
        background .25s ease;
}


.galeria-item:hover img {
    transform: scale(1.05);
}


.galeria-item:hover
.galeria-item-overlay {

    opacity: 1;

    background:
        rgba(90, 59, 72, .35);
}


/* =========================================================
   MODAL
   ========================================================= */

.galeria-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.galeria-modal.ativo {
    visibility: visible;

    opacity: 1;
}


/* FUNDO */

.galeria-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(35, 23, 29, .82);
}


/* CONTEÚDO */

.galeria-modal-content {
    position: relative;

    z-index: 2;

    width: min(100%, 1000px);

    max-height: 95vh;

    overflow: hidden;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 15px 50px
        rgba(0, 0, 0, .3);
}


/* IMAGEM */

.galeria-modal-content > img {
    display: block;

    width: 100%;

    max-height: 75vh;

    object-fit: contain;

    background: #20171b;
}


/* INFORMAÇÕES */

.galeria-modal-info {
    padding: 16px 20px;
}


.galeria-modal-info h3 {
    margin: 0 0 5px;

    color: #5a3b48;

    font-size: 1.1rem;
}


.galeria-modal-info p {
    margin: 0;

    color: #765263;

    font-size: .9rem;

    line-height: 1.5;
}


/* BOTÃO FECHAR */

.galeria-modal-close {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .9);

    color: #5a3b48;

    font-size: 1rem;

    cursor: pointer;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .15);

    transition:
        background .2s ease,
        transform .2s ease;
}


.galeria-modal-close:hover {
    background: #ffffff;

    transform: scale(1.05);
}


/* EVITA SCROLL */

body.galeria-modal-aberta {
    overflow: hidden;
}


/* =========================================================
   VAZIO
   ========================================================= */

.paroquia-empty {
    padding: 45px 20px;

    text-align: center;

    border: 1px dashed #e3b5c5;

    border-radius: 14px;

    background: #ffffff;

    color: #765263;
}


.paroquia-empty i {
    display: block;

    margin-bottom: 12px;

    color: #b76d85;

    font-size: 1.8rem;
}


.paroquia-empty p {
    margin: 0;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 767.98px) {

    .paroquia-header {
        padding: 40px 15px 35px;
    }


    .paroquia-timeline,
    .paroquia-galeria {
        padding: 50px 15px;
    }


    .paroquia-section-heading {
        margin-bottom: 35px;
    }


    /* LINHA LATERAL */

    .timeline::before {
        left: 20px;

        transform: none;
    }


    /* ITEM */

    .timeline-item,
    .timeline-item:nth-child(even) {

        width: 100%;

        margin-left: 0;

        padding-left: 60px;

        padding-right: 0;

        text-align: left;

    }


    /* MARCADOR */

    .timeline-marker,
    .timeline-item:nth-child(odd)
    .timeline-marker,
    .timeline-item:nth-child(even)
    .timeline-marker {

        left: 0;

        right: auto;

    }


    /* CARD */

    .timeline-content {

        max-width: none;

    }


    /* MODAL */

    .galeria-modal {
        padding: 10px;
    }


    .galeria-modal-content > img {
        max-height: 70vh;
    }

}


@media (max-width: 575.98px) {

    .galeria-modal-info {
        padding: 13px 15px;
    }

}