.center{
    display: flex;
    justify-content: center;
    position: relative;
}

.image {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
}

.images {
    /*Grid*/
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(4,auto);
    position: relative;

    /*Align*/
    align-content: flex-start;
    justify-content: center;

    /*Spacing*/
    row-gap: 20px;
    column-gap: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
}

.grid_item {
    /*Size*/
    position: relative;
    text-align: center;
    width: 250px;
    height: 250px;

    /*Style*/
    border-radius: 10%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

    /*Crop*/
    overflow: hidden;

    /*Center*/
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal_img {
    margin: auto;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 80%;
    object-fit: contain;
}

.modal_img, #caption {
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

@media screen and (max-width: 1200px) {
  .images {
    grid-template-columns: repeat(3,auto);
  }
}

@media screen and (max-width: 850px) {
  .images {
    grid-template-columns: repeat(2,auto);
  }
}

@media screen and (max-width: 600px) {
  .images {
    grid-template-columns: repeat(1,auto);
  }
}