.galleryPage {
  margin-top: 10%;  
  width: 100%;
  text-align: center;
  margin-bottom: 5rem;
}

.galleryPage h1 {
    display: inline-block; /* Allows setting width and margin */
    position: relative; /* Allows positioning the pseudo-element relative to this element */
    margin: 0 auto; /* Centers the heading */
}

.galleryPage h1::after{
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position the underline relative to the heading */
    top: 10px;
    left: 0.05px; /* Start position of the underline */
    right: 0.05px; /* End position of the underline */
    bottom: -5px; /* Adjust as needed for the thickness of the underline */
    border-bottom: 5px solid black; /* Style and color of the underline */
}

.imageGallery{
    position: relative;
    top: 3rem;
}

.row{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 1.5rem 0;
}

.row img{
    margin: 0 0.5em;
    width: 310px;
    height: 225px;
    opacity: 0; /* Initially hide the images */
    animation: fadeIn 5s ease forwards; /* Apply animation */
}

.row iframe{
    margin: 0 0.5em;
    width: 310px;
    height: 225px;
    opacity: 0; /* Initially hide the images */
    animation: fadeIn 5s ease forwards; /* Apply animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 1000px){
    .row{
        flex-direction: column;
        align-items: center;
    }

    .row img{
        margin: 2rem 0;
    }

    .row iframe{
        margin: 2rem 0;
    }

    .galleryPage {
        top: 15%;
    }


}

@media screen and (max-width: 500px) {
    .galleryPage{
        margin-top: 25%;
    }
}

@media screen and (max-width: 340px) {

    .row img{
        width: 240px;
        height: 150px;
    }

    footer{
        top: 430vh!important
    }

}