
#map-projects{
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0;
}

.map,.projects-map-filtered{
    width: 50%;
}

.map{
    display: flex;
    align-items: center;
    justify-content: center;
}

#mapSvg{
    height:100%;
}


.projects-map-filtered{
    overflow-y: scroll;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    display: flex;
    right: 0px;
}

@media (max-width:768px){
    #map-projects{
        height: auto;
    }
    h3{
        font-size: 1.5rem;
    }
    .map{
        display: none;
    }
    .projects-map-filtered{
        width: 100%;
        margin: 0;
    }
}
.project-container{
    padding: 0;
    height:30vh;
    overflow: hidden;
    width: 100%;
    position: relative;
    cursor: pointer;
    transition: all 1s ease;
    max-height: 30vh;
}

.slide-down{
    transform: translateY(30px);
    opacity: 0;
}

.shrink-y{
    max-height: 0px;
    opacity: 0;
}

.project-container:hover img{
    animation: zoom 10s linear ;
}

.project-container::after{
    content: "";
    width: 100%;
    height: 100%;
    top:0px;
    left:0px;
    position: absolute;
    background: rgb(0,0,0);
    background: linear-gradient(30deg, rgba(0,0,0,0.8) 10%, rgba(0,0,0,0) );
}

.project-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;

}


.project-details{
    position: absolute;
    bottom: 0.75em;
    left: 1em;

    z-index: 1;
}

.project-title,
.project-date{
    margin: 0;
}

.filters{
    display: flex;
    position: sticky;
    top: var(--header-height);
    justify-content: space-between;
    z-index: 4;
    background-color: var(--black);
    align-items: center;
    padding: 1em var(--container-padding-lr);
    padding-top: 0.5em;
}

.project-filter{
    display: flex;  
    width: 100%;
    justify-content: start;
}
@media screen and (max-width:768px) {
    .project-filter{
        justify-content: space-between;
    }
}

.filter + .filter{
    margin-left: 5em;
}

.type-filter{
    margin-right: 5em;
}

.dropdown-arrows{
    color: var(--accent);
    cursor: pointer;
}

.cta-map{
    margin-left: auto;
}

#projects,
.filters,
.header-margin{
    transition: opacity 0.25s ease-in-out;
}

.show #projects,
.show .filters,
.show header,
.show #map-projects,
.show .header-margin{
    opacity: 0;
}

.hide #projects,
.hide .filters,
.hide header,
.show #map-projects,
.hide .header-margin{
    display: none;
}

.lightbox{
    opacity: 0;
    display: none;
    background-color: var(--black);
    z-index: 9999;
    height: 100%;
    position: fixed;
    width: 100%;
    top: 0px;
    transition: opacity 0.25s ease-in-out;
}


.show .lightbox{
    display: block;
}

@keyframes slideIn {
    0%{
        transform: translateY(20px);
        opacity: 0;
    }

    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
  }

  /* Styling for the dropdown button */
  .dropbtn {
    color: var(--accent);
    padding: 10px;
    font-size: 1.1rem;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .dropbtn .arrow{
      margin-left: 20px;
  }

  

  .dropbtn .arrow svg{
    fill:var(--accent);
    transform: rotate(90deg);
    width:10px;
    transition: all 1s ease;
    height: 10px;
  }
  /* Styling for the dropdown content */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--grey);
    opacity: 0;
    color: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    transition: all 1s ease;
  }

  /* Styling for the dropdown items */
  .dropdown-content a {
    color: inherit;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.5s ease;
  }


  .active-dropdown .dropbtn{
    color: var(--grey);
  }
  .active-dropdown .arrow svg{
    transform: rotate(0deg);
    fill:var(--grey);
  }

  .show-dropdown{
    opacity: 1;
  }

  /* Change color on hover for the dropdown items */
  .dropdown-content a:hover {
    background-color: var(--black);
    color: var(--accent);
  }

@media (max-width:768px){
    .project-container{
        height: 25vh;
    }
    .cta-map{
        display: none;
        margin-top: 1em;
        margin-right: var(--container-padding-lr);
        /* position: absolute;
        bottom: 2em;
        right: var(--container-padding-lr); */
    }
}


#mapSvg > *{
    fill:var(--grey);
    stroke:var(--black)!important;
    stroke-width: 1px!important;
}

#mapSvg .project-state{
    fill:var(--accent);
    cursor: pointer;
}

#mapSvg .active-state{
    fill: var(--black)!important;
    stroke: var(--accent)!important;
}
