#aboutMe {
    background-color: var(--blackSecondary);
}

#aboutMeContent {
    display: flex;
    flex-wrap: wrap;
    /* Permite que os itens se ajustem em telas menores */
    align-items: center;
    justify-content: space-between;
    max-width: 100vw;
}

.text {
    flex: 1;
    max-width: 60%;
}

.aboutMeP {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: justify;
}

.aboutMe-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 400px;
}

.aboutMe-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.aboutMe-gallery a:hover {
    box-shadow: 0 0 15px var(--goldTertiary);
}

.aboutMe-gallery img,
.aboutMe-gallery video {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.aboutMe-gallery img:hover,
.aboutMe-gallery video:hover {
    transform: scale(1.05);
}

.aboutMe-gallery a:nth-child(2) {
    grid-column: span 1;
}

@media (max-width: 1300px) {
    .aboutMeP {
        font-size: 1rem;
    }
}

@media(max-width: 1200px) {
    .aboutMeP {
        font-size: 0.8rem;
    }

    .aboutMe-gallery img,
    .aboutMe-gallery video {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 900px) {
    #aboutMeContent {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .text {
        max-width: 100%;
        text-align: center;
    }

    .aboutMe-gallery {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 20px;
    }

    .aboutMe-gallery img,
    .aboutMe-gallery video {
        width: 100%;
        height: 100%;
    }
}

@media(max-width: 650px) {
    #padding {
        padding: 0 5px;
    }
}

@media(max-width: 440px){
    .aboutMe-gallery {
        gap: 10px;
    }
}

@media(max-width: 350px) {
    .aboutMe-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}