.gallery{
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 4vh;
    display: grid;
    grid-template-columns: 20% 20% 20% 20%;
    justify-content: space-evenly;
    align-items: center;
    row-gap: 5vh;
}

.gallery img{
    width: 100%;
    transition: transform 0.2s;
    /* Prevent image blurring */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; 
    -ms-transform: translateZ(0); /* IE 9 */
    -webkit-transform: translateZ(0); /* Chrome, Safari, Opera */
    transform: translateZ(0);
}

.gallery img:hover{
    transform: scale(1.05);
}

.photo-video-select{
    display: flex;
    justify-content: center;
}

.photo-video-select h1{
    transition: 0.2s;
    margin: 0 70px 0 70px;
    font-size: 40px;
}

.photo-video-select h1:hover{
    color: var(--dark-blue);
}

.selected{
    color: var(--blue-branding);
}

.video{
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.video-container{
  width: 100%;
  padding-top: 64%;
  position: relative;
}

.video-grid{
    width: 90%;
    margin: 4vh auto 0 auto;
    display: grid;
    grid-template-columns: 20% 20% 20% 20%;
    justify-content: space-evenly;
    row-gap: 5vh;
}

@media screen and (max-width:900px){

    .photo-video-select{
        margin-top: 2vh;
    }

    .photo-video-select h1{
    font-size: 30px;
    }  

    .gallery{
        width: 100%;
        grid-template-columns: 30% 30% 30%;
    }

    .video-grid{
        grid-template-columns: 30% 30% 30%;
    }

}

@media screen and (max-width:650px){
    
    .photo-video-select h1{
    font-size: 30px;
    }

    .video-grid{
        grid-template-columns: 90%;
    }

    .gallery{
        grid-template-columns: 90%;
    }

    .photo-video-select{
        flex-direction: column;
        align-items: center;
    }

    .photo-video-select h1{
        margin: 0 0 0 0;
    }  

}