.insta{
    font-weight: light;
    padding: 30px;
    margin: 50px;
}
.insta-cards{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 10px;
    margin: auto;
    width: 100%;
    height: 100%;
}
.insta-title{
    display: flex;
    justify-content: center;
    align-items: baseline;
    padding: 10px;
    margin: 10px;
    font-weight: lighter;
    font-size: 25px;
    font-family:Arial, Helvetica, sans-serif;
}
.insta-card{
    position: relative;
    display: flex;
    grid-column: span 1;
    flex-direction: column;
    overflow: hidden;
    width: 100%;

}
.insta-image{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta-card i{
    position: absolute;
    top: 50%; /* start from the middle of the card*/
    left: 50%;
    border-radius: 3px;
    transform: translate(-50%, 50%); /* center the button and start off-screen */
    transition: transform 0.7s ease, opacity 0.3s ease; /* smooth transiotn for hover*/
    opacity: 0; /* Initially hidden */
    font-size: 2rem;
}

.insta-card:hover i{
    transform: translate(-50%, -50%); /*center the button in the middle*/
    opacity: 1; /* Show button on hover */
}
@media only screen and (max-width: 600px){
    .insta-cards{
        display: flex;
        flex-direction: column;
    }
}