@media screen and (min-width: 810px) and (max-width: 1199px) {
header{
    min-height: unset;
    padding: 50px;
}
header h1{font-size: 5rem;}

.text{padding: 50px 80px;}

.footer-nav{width: 350px;}

}
@media screen and (max-width: 801px) {

    header {
        justify-content: center;
        min-height: unset;
        padding: 20px;
    }
    
    header h1{font-size: 3.2em;}

    .header-container {order: 0;}
    
    .map-container .map{height: 400px;}
    .map-map::before{left: 55%;}

    .gallery {padding: 20px;}

    .grid {grid-template-columns: repeat(1, minmax(200px, 1fr));}

    .grid img {
        border-radius: 20px;
        height: 350px;
    }

    .text{padding: 30px;}
    .text-content {
        flex-direction: column;
        justify-content: flex-start;
    }

    .text-first {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .text-second {
        flex: 0 0 auto;
        width: 100%;
    }

    .footer-nav{width: 350px;}
    
}

@media screen and (max-width: 640px) {
    .card-carousel {
      margin-left: calc((100vw - var(--carousel-min-width) - 40px) / 2)
    }
  }