
@media only screen and (min-width: 1400px) {
    .portfolio_grid {
        grid-template-columns: auto auto auto;
    }
}
@media only screen and (max-width: 1400px) and (min-width: 650px) {
    .portfolio_grid {
        grid-template-columns: auto auto;
    }
}
@media only screen and (max-width: 650px) {
    .portfolio_grid {
        grid-template-columns: auto;
    }
}

.portfolio_grid {
    display: grid;
    align-content: start;
    padding: 2vw;
    padding-top: 0px;
    column-gap: 2vw;
    row-gap: 2vw;
}
.grid_img_container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    vertical-align: middle;
}
a:not(.grid_img_title) {
    display: block;
    width: 100%;
    height: 94%;
    overflow: hidden;
}
.grid_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
a.grid_img_title {
    padding-top: 2px;
    margin: auto auto;
    width: fit-content; 
}

@media only screen and (min-width: 1300px) {
    .grid_img_title {
        font-size: 22px;
    }
}
@media only screen and (max-width: 800px)and (max-width: 1300px){
    .grid_img_title {
        font-size: 18px;
    }
}
@media only screen and (max-width: 800px) {
    .grid_img_title {
        font-size: 12px;
    }
}