.gallerybody{
    margin: auto;
    margin-top: 1.3rem;
    width: 90%;
    position: relative;
    flex-wrap: wrap;
}

h1{
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-family: Arial, Helvetica, sans-serif;
}

.galleries{
    width: 100%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.gallerieswrapper{
    display: inline-flex;
    flex-wrap: wrap;
}

button{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: bold;
    margin: 0.5rem 1.5rem;
    background: none;
    border: none;
}

button:hover{
    color: rgb(38, 38, 155);
    cursor: pointer;
}

.academicwrapper, .tripswrapper, .sportswrapper{
    margin: 0 auto;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
}

.imageswrapper{
    width: 100%;
    margin: 0 auto;
    column-count: 3;
    column-gap: 0.5rem;
    column-width: auto;
}

.imageswrapper a{
    margin: 0.3rem;
}

.imageswrapper img{
    width: 100%;
    transition: 0.5s;
}

.imageswrapper img:hover{
    filter: grayscale(100%);
    transform: scale(1.05);
}

@media(max-width: 800px){

    .imgheader{
        background-position: right;
    }

    header a{
        margin-left: 2.3rem;
    }

    .wrapper{
        flex-direction: column;
        margin-top: 1rem;
    }

    .oxford{
        margin-top: 1rem;
    }
}

@media(max-width: 760px){
    .academicwrapper, .tripswrapper, .sportswrapper{
       flex-direction: column;
    } 

    .imageswrapper img{
        height: auto;
        width: 100%;
    }
}

@media(max-width: 720px){
    header a{
        margin-left: 2rem;
    }
}

@media(max-width: 645px){

    button{
        margin: 0.5rem 1rem;
    }
}

@media(max-width: 600px){

    .imgheader h1{
        margin-bottom: 2.5rem;
        font-size: 2.5rem;
    }

    header a{
        margin-left: 1.5rem;
        font-size: 1.1rem;
    }

    button{
        margin: 0.5rem 0.5rem;
    }

    .imageswrapper{
        column-count: 2;
    }
}

@media(max-width: 500px){

   .imgheader h1{
        font-size: 2rem;
    }

   header a{
        margin-left: 0.9rem;
    }

    .imageswrapper{
        column-count: 1;
    }

    .imageswrapper img{
        width: 100%;
    }
}

@media(max-width: 450px){

    .imgheader{
        background-position: right;
    }

   header a{
        font-size: 1rem;
        margin-left: 1.05rem;
    }
}