@media (max-width: 1300px) {
    .why-me {
        flex-direction: column;
        height: 670px;
        gap: 0;
    }

    /* .contact-address {
        padding-left: 70px !important;
    } */
}

@media (max-width: 1095px) {
    /* .tesst {
        width: 51vw !important;
    } */
}

@media (max-width: 1125px) {

    /* .about-me {
        margin-bottom: 50px;
    } */

    .container-bis {
        margin-bottom: 0px;
    }

    .why-me {
        height: 670px;
        flex-direction: column;
        gap: 0;
    }

    /* ***left*** */

    .block-left {
        flex-direction: column; 
        align-items: center; 
        display: flex;
        color: #ffffff;
        gap: 0;
        justify-content: center; 
    }

    .block-left {
        flex-direction: column; 
        align-items: center; 
        display: flex;
        color: #ffffff;
        gap: 0;
        justify-content: center; 
    }

    .block-left .block-body {
        width: 100%;
        max-width: 420px; 
        margin: 10px 0;
        margin-bottom: 20px;
        order: -1; 
        /* text-align: center;  */
    }

    .block-left .block-body2, .block-left .block-img {
        width: 100%;
        max-width: 420px; 
        margin: 10px 0;
        /* text-align: center;  */
    }

    .block-left .block-body2, .block-left .block-img2 {
        width: 100%;
        max-width: 420px; 
        margin: 10px 0;
        /* text-align: center;  */
    }

    .block-left .block-img video {
        width: 100%;    
        height: auto;
    }

    .block-left .block-img2 video {
        width: 100%;
        height: auto;
    }

    #myVideo2 {
        margin-left: 0;
    }

    .block-body2 h2.title::before {
        text-align: right;
    }

    #playPauseBtn {
        top: 50%;
        left: 50%;
    }

    .close-btn {
        top: 170px;
        right: 53px;
    }

    #playPauseBtn2 {
        /* top: 50%; */
        left: 50%;
    }

    #playPauseBtn3 {
        top: 50%;
        left: 50%;
    }

    .block-img::before {
        top: -17px;
        left: -17px;
        width: 352px;
        height: 178px;
    }

    .block-img2::before {
        top: -17px;
        left: 85px;
        width: 352px;
        height: 178px;
    }



}

@media (max-width: 768px) {

    /* .contact-address {
        padding-left: 85px !important;
    } */

    .carousel__slide {
        height: 480px;
        flex-direction: column;
    }
  
    .carousel__slide figure {
        text-align: center; 
        /* display: flex; */
        flex-direction: column;
    }

    .carousel__slide figcaption {
        color: white;
        flex: 0 0 auto;
        width: 100%;
        padding: 0 0;
    }

    .overlay {
        margin-bottom: 0;
        margin: 0 auto;

    }

    /* ******* COMPETENCES ******** */

    .skills-container {
        display: flex;
        flex-direction: column;
        margin: 50px auto;
    }

    .skill-row {
        display: flex;
        margin: 0 auto;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-content: center;
    }

    .skill {
        width: 85%; 
        margin: 10px 5px; 
    }

}

@media (max-width: 600px) {

    .about-me {
        margin-top: 50px;
    }

    .carousel__slide {
        height: 450px;
    }

    .carousel__thumbnails {
        flex-direction: column; 
        align-items: center; 
        margin-bottom: 50px;
    }

    .container {
        padding: 0 20px;
    }

    .carousel__slide {
        flex-direction: column; 
    }

    .carousel__slide figure {
        text-align: center; 
        display: flex;
        flex-direction: column;
    }

    .carousel__thumbnails li {
        max-width: 30%; 
        object-fit: cover;
        width: 100%; 
        margin: 10px 0; 
    }

    .carousel__slide figcaption {
        color: white;
        flex: 0 0 auto;
        width: 100%;
        padding: 0 0;
        margin-bottom: 20px;
    }

    .info-hover {
        position: absolute;
        top: 50%;
        left: 43vw;
        transform: translate(-50%, -50%);
        width: 100px;
        height: 40px;
        background: white;
        text-align: center;
        line-height: 30px;
        opacity: 0;
        z-index: 3;
        transition: opacity 0.5s;
    }

    .carousel__slide img {
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .overlay {
        overflow: hidden;
        width: 83vw;
        height: 310px;
        transition: transform 0.8s, filter 0.8s;
        position: relative;
        margin-bottom: 0;
    }

    /* *** NAV *** */

    .nav-links {
        /* display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 20px;
        background-color: #333;
        width: 200px;
        border-radius: 5px; */
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 200px;
        background-color: rgba(0, 0, 0, 0.9); 
        padding-top: 60px;
        z-index: 1000; 
    }

    .nav-links a {
        /* padding: 10px; */
        text-align: right;
        margin: 20px 25px;
        padding: 10px 0;
    }

    .burger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
    }

    .burger.cross .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 10.5px);
    }

    .burger.cross .bar:nth-child(2) {
        opacity: 0;
    }

    .burger.cross .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -10.5px);
    }

    /* ******* COMPETENCES ******** */



}

@media (max-width: 500px) {

    /* .contact-address {
        padding-left: 40px !important;
    } */
 
}

@media (max-width: 480px) {

    .carousel__slide img {
        min-height: 207px;
    }

    .image-hover {
        height: 250px;
    }

    .overlay {
        height: 270px;
    }

    .carousel__slide {
        height: 400px;
    }

    .block-img::before {
        top: -17px;
        left: -9px;
        width: 352px;
        height: 178px;
    }


    .block-img2::before {
        top: -17px;
        left: 37px;
        width: 352px;
        height: 178px;
    }
}


/* MIN */


@media (min-width: 1097px) {
    #contact-section {
        width: 900px;
    }

    .cover {
        width: 900px;
    }

}

@media (min-width: 951px) {

    .cover {
        height: 1200px !important;
    }

    #contact-section {
        height: 1200px !important;
    }

}  

@media (min-width: 601px) {

    .container {
        
        padding: 0 20px;
    }

    .carousel__thumbnails li {
        max-width: 30%; 
    }

}






