* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;

}


.banner-portfolio {
    background-image: url(../images/banner-2.png);
    background-size: cover;
    min-height: 230px;
    align-content: center;
}

.box {
    height: auto;
    width: 440px;
    background-color: white;
    font-size: 17px;
    font-weight: 600;
    color: rgb(65, 65, 65);
    text-align: center;
    border-radius: 15px;
    padding: 1rem;
    margin: auto 20rem;
    box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.25);
}

.box .title {
    font-size: 35px;
    color: black;
    padding: 1rem 0;
}

.bola {
    padding-top: 1rem;
    display: inline-flex;
    text-align: center;
}

.bola .fa-solid {
    color: black;
    background-color: #ffd11f;
    height: 50px;
    width: 50px;
    padding: 0.8rem;
    font-size: 24px;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.bola .fa-solid svg {
    width: 100%;
    height: 100%;
    top: -5px;
    position: relative;
    transition: ease-in-out 0.2s;
}

.bola .fa-solid svg:hover {
    top: 0px;
}

.content {
    margin: 0 auto;
    width: fit-content;
    padding: 50px;
}

.btn-l {
    text-align: center;
}


.btn-l a {
    color: black;
    background-color: #ffd11f;
    padding: 15px 70px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    max-width: 235px;
    text-decoration: none;
    transition:  0.5s ease-in-out;
}

.btn-l a:hover {
    background-color: black;
    text-decoration: none;
    color: #ff2a2a;
}

.paragraph {
    margin-bottom: 2rem;
}

.carrosel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.carrosel-inner {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px;
}

.carrosel-item {
    min-width: 50%;
}

.carrosel-item:hover {
    min-width: 50%;
}

.carrosel-item img {
    width: 100%;
    height: 300px;
    cursor: pointer;
    opacity: 1;
    object-fit: cover;
    transition: ease-in-out 200ms;
    transform: scale(1);
}

.carrosel-item img:hover {
    width: 100%;
    height: 300px;
    cursor: pointer;
    opacity: 0.8;
    transition: ease-in-out 200ms;
    transform: scale(1.02);

}

.carrosel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.carrosel-control.prev {
    left: 20px;
}

.carrosel-control.next {
    right: 10px;
}

.texto .title {
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 20px;
}

.texto .paragraph {
    font-weight: 300;
    font-size: 16px;
}

.texto a {
    color: rgb(252, 144, 49);
    text-decoration: underline;
}

.rows {
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.modal {
    display: none;
    align-items: center;
    /* Centraliza verticalmente */
    justify-content: center;
    /* Centraliza horizontalmente */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.800);
    border-color: rgba(0, 0, 0, 0.800);
    margin: 0;
    text-align: center;
    /* Para centralizar horizontalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Para centralizar verticalmente */
    height: 100%;
    /* Define a altura como 100% do modal */
}

.modal-image-container {
    position: relative;
}

.modal img {
    max-height: 700px;
}

.close-button {
    position: absolute;
    right: -150px;
    /* Ajuste a posição horizontal conforme necessário */
    font-size: 50px;
    color: #fff;
    cursor: pointer;
}

#mobile-img {
    display: none;
}

@media screen and (max-width: 970px) {
    .banner {
        text-align: center;
    }

    .box {
        height: auto;
        width: 90%;
        background-color: white;
        font-size: 14px;
        font-weight: 600;
        color: rgb(65, 65, 65);
        text-align: center;
        border-radius: 15px;
        padding: 1rem;
        margin: auto;
        box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.25);
    }

    .content {
        padding: 30px 0px;
    }

    .carrosel {
        display: none;
    }
    
    #mobile-img {
        display: flex;
        object-position: top;
    }

    .rows {
        padding: 20px 10px;
        margin: auto;
    }
    
    .btn-l a {
        padding: 15px 45px;
    }

    .close-button {
        right: 30px;
        font-size: 30px;
    }

    .modal img {
        max-width: 85%;
    }
}