/*==================================================
MODAL GALERIA
==================================================*/

#modal_1 {
    max-width: 700px;
}

#bloco_modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    background: #fff;
}

/*---------------- Cabeçalho ----------------*/

#bloco_modal .modal-header {
    background: #0d6efd;
    border: 0;
    padding: 18px 25px;
    position: relative;
    justify-content: center;
    /* Centraliza o conteúdo */
}

#titulo_modal {
    margin: 0;
    width: 100%;
    text-align: center;
    /* Centraliza o texto */
    color: #fff;
    /* Texto branco */
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Botão fechar */
#bloco_modal .close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    opacity: 1;
    font-size: 30px;
    text-shadow: none;
}

#bloco_modal .close:hover {
    color: #f8f9fa;
}

#bloco_modal .close {

    color: #fff;
    opacity: 1;
    font-size: 32px;
    text-shadow: none;
}

#bloco_modal .close:hover {

    transform: rotate(90deg);
    transition: .3s;
}

/*---------------- Corpo ----------------*/

#bloco_modal .modal-body {

    padding: 30px;
    background: #f8f9fa;
}

.imagem-container {

    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

#imagem_modal {

    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    transition: .4s;
}

#imagem_modal:hover {

    transform: scale(1.01);
}

.descricao-container {

    margin-top: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
}

#descricao_modal {

    margin: 0;
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

/*---------------- Rodapé ----------------*/

#bloco_modal .modal-footer {

    background: #fff;
    border-top: 1px solid #ececec;
    justify-content: center;
    padding: 20px;
}

/*---------------- Responsivo ----------------*/
#bloco_modal .btn-secondary {
    background: #fff;
    border: 2px solid #3470F3;
    border-radius: 8px;
    font-weight: 600;
    padding: 11px;
    color: #3470F3;
    transition: all 0.3s ease;
}

@media(max-width:768px) {

    #modal_1 {

        max-width: 95%;
        margin: auto;
    }

    #titulo_modal {

        font-size: 21px;
    }

    #bloco_modal .modal-body {

        padding: 15px;
    }

    .descricao-container {

        padding: 15px;
    }

    #descricao_modal {

        font-size: 15px;
    }
}