/* la carte DOIT avoir une hauteur sinon elle n'apparaît pas */
.nombre-chantiers {
    text-align: center;
}

#map {
    height: 500px;
    max-width: 775px;
    width: 100vw;
    border-radius: 15px;
}

section#bloc-map-card {
    display: flex;
    justify-content: center;
    font-family: 'Roboto Slab','Arial';
}

.grid-container-legend-traitement {
    margin-top: 15px;
    
    /*CSS Grid*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 100px));
    grid-gap: 10px;
    justify-content: center;
}

.item-legend-traitement {
    text-align: center;
}

.item-legend-traitement:hover {
    cursor: pointer;
}

.item-legend-traitement img {
    width: 25px;
}

div#card-container{
    margin-left: 20px;
}

div#card-container .card {
    width: 300px;
    height: 500px;
}

div.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
    font-family: 'Roboto Slab','Arial';
}

div.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #f9f9f9;
    border-radius: 15px;
    justify-content: space-between;
    padding: 20px;
}

div.card-tile .card-content {
    height: 60%;
}

div.card-content h2{
    margin: 0;
    color: #6d6d6d;
    font-weight: 600;
    text-align: center;
}

.card-traitement {
    height: 50px;
}

.card-equipements {
    height: 120px;
}

.card-photo {
    height: 215px;
}

section.card-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-gap: 1rem;
}

/*Images du chantier*/
.grid-container-photos-chantier {
    margin-top: 10px;

    /*CSS Grid*/
    display: grid;
    grid-template-columns: repeat(auto-fit, 80px);
    grid-gap: 5px;
}

.grid-container-photos-chantier .div-img-chantier {
    height: 60px;
    background-position: center;
    background-size: 150px auto;
    background-repeat: no-repeat;
}

/*Modal - Display full width image*/

.div-img-chantier {
  cursor: pointer;
  transition: 0.3s;
}

.div-img-chantier:hover {opacity: 0.7;}

/* The Modal (background) */
.modal-chantier {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 5px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 1200px;
}

/* The Close Button */
.close-chantier {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close-chantier:hover, .close-chantier:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides { display: none; }

.cursor { cursor: pointer; }

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.demo {
    opacity: 0.6;
}

.active, .demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* OVERRIDE SECTION */
.leaflet-top, .leaflet-bottom {
    z-index: 898 !important;
}

.leaflet-popup-content {
    text-align: center !important;
}

/* END OVERRIDE SECTION */

/* RESPONSIVE SECTION */
/* Screen larger than 600px? 2 column */
@media (min-width: 600px) {
    section.card-grid { 
        grid-template-columns: repeat(2, 1fr);
    }
}
  
/* Screen larger than 900px? 4 columns */
@media (min-width: 900px) {
    section.card-grid { 
        grid-template-columns: repeat(4, 1fr);
        /* grid-template-columns: repeat(auto-fit, 263px); */
    }
}

/* Screen smaller than 320px */
@media (max-width: 480px) {
    #map {
        height: 287px;
        width: 100vw;
        margin-left: -15px;
        margin-bottom: 30px;
    }

    section#bloc-map-card {
        flex-direction: column;
        padding-top: 0;
    }

    div#card-container {
        margin-left: 0;
    }

    div#card-container .card {
        width: inherit;
    }

    div.card-top-img {
        height: 250px;
    }

    div.card-top-img img{
        width: 100%;
    }

    section.card-grid {
        display: none;
    }

    .leaflet-top, .leaflet-bottom {
        z-index: 499 !important;
    }
}