.Homegallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-gap: 5px;
    justify-content: center;
    
}

@media (max-width: 1024px) {
    .Homegallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
        grid-gap: 5px;
        justify-content: center;
    }
}

@media (max-width: 740px) {
    .Homegallery {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(8, auto);
        grid-gap: 5px;
        justify-content: center;
    }
}

@media (max-width: 425px) {
    .Homegallery {
        width: 100%;
    }
}

.HomeGalleryImg{
    width: 300px;
    height: 240px;
    object-fit: cover;
    display: block;
    border: 5px solid transparent;
}

@media (max-width: 425px){
    .HomeGalleryImg{
        /* width: 100%; */
        height: 240px;
        margin-left: auto;
        margin-right: auto;
    }
}

.Homegallery>:hover{
    /* background-color: lightgray; */
    transition: .5s;
    box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.10);
}


.HomeGalleryItem > a > figcaption{
    /* padding-top:50px; */
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    height: 50px;
    width: 310px;
}

.HomeGalleryItem {
    text-decoration: none;
    margin-left:15px;
    margin-right:15px;
}