.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 84px / 2);
    overflow: scroll;
    background-color: #161519;
   background-color: rgba(0,0,0,0.6);
}

.modalContent {
    background-color: #28262e;
    margin: 1% auto 3% auto;
   left: auto;
    padding: 20px;
    border: 1px solid #d5e3d6;
    width: 60%; /*change based on mobile or not*/
}

.close{
    color: #28262e;
    float: right;
    font-size: 2em;
    font-weight: bold;
}


.projects {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 35px;
}

.project {
    border-radius: 5px;
    background-color: #1f1d23;
    width: min(400px, 100%);
    height: 250px;
}

.projlabel {
    font-size: 300%;
    color: #1f1d23;
    position: absolute;
    top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-text-stroke: 2px #d5e3d6
}
.projimg {
    border-radius: 5px;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    animation: fadeInAnimation ease-in 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.centerImg {
    width:30%;
}