.mygallery {
    display: grid;
    grid-gap: 10px;
}

.mygallery img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.mygallery img:hover {
    transform: scale(1.1);
}

/* Media Queries for Responsive Design */

/* Extra Small (xs) devices (portrait phones) */
@media only screen and (max-width: 575px) {
    .mygallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Small (sm) devices (landscape phones) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .mygallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium (md) devices (tablets) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .mygallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large (lg) devices (desktops) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .mygallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large (xl) devices (large desktops) */
@media only screen and (min-width: 1200px) {
    .mygallery {
        grid-template-columns: repeat(5, 1fr);
    }
}