h1.heading {
    font-size: 4rem;
    color: var(--theme-orange);
    text-align: left;
    margin-bottom: 5%;
    font-family: var(--spartan-font);
    font-weight: 700;
}

.section {
    margin: 5%;
    width: 90%;
    padding-top: 3%;
}

.image-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5em;
    width: 90%;
    margin: 5%;
}

.img img {
    width: 100%;
    filter:grayscale(75%);
    transition: filter 200ms ease;
    cursor: pointer;
}

.img img:hover {
    filter: none;
}

.img .label {
    font-family: var(--spartan-font);
    font-size: 1.1em;
    font-weight: 500;
    color: var(--theme-white);
    text-align: center;
}


/* Overlay CSS */

.overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    backdrop-filter: blur(5px);
    background-color: rgba(0,0,0,0.7);
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease-in-out;
  }
  
.overlay a {
padding: 8px;
text-decoration: none;
font-size: 36px;
color: #818181;
display: block;
transition: 0.2s;
}

.overlay a:hover,
.overlay a:focus {
color: #f1f1f1;
}

.profile-img,
.desc {
width: 40%;
height: fit-content;
}

.profile {
display: flex;
height: 100%;
align-items: center;
color: #fff;
justify-content: space-around;
}

img.decorative {
    /* position: relative; */
    /* z-index: 5; */
    width: 250px;
}

h1.name {
font-family: var(--spartan-font);
color: var(--theme-orange);
}

h3.role {
font-family: var(--spartan-font);
color: var(--theme-light-blue);
}

p.about {
font-family: var(--libre-font);
color: var(--theme-white);
}

.profile-img {
animation: fadeIn 0.5s, slide 0.5s;
-webkit-animation: fadeIn 0.5s, slide 0.5s;
-moz-animation: fadeIn 0.5s, slide 0.5s;
-o-animation: fadeIn 0.5s, slide 0.5s;
-ms-animation: fadeIn 0.5s, slide 0.5s;
}

.desc {
animation: fadeIn 0.5s, rev-slide 0.5s;
-webkit-animation: fadeIn 0.5s, rev-slide 0.5s;
-moz-animation: fadeIn 0.5s, rev-slide 0.5s;
-o-animation: fadeIn 0.5s, rev-slide 0.5s;
-ms-animation: fadeIn 0.5s, rev-slide 0.5s;
}

.desc h1 {
font-size: 3em;
line-height: 1.1em;
margin: 0;
}

.desc h3 {
font-size: 1.75em;
margin: 0;
}

.desc p {
margin: 2em 0;
}

.teamInfo {
    display: none;
}

@keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
}

@keyframes slide {
from {
    margin-left: -40px;
    }

to {
    margin-left: 0px;
    }
}

@keyframes rev-slide {
from {
    margin-right: -40px;
}

to {
    margin-right: 0px;
}
}

@media (max-width: 940px) {
    .image-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .image-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        margin-top: 50px;
    }

    .profile-img {
    width: auto;
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    }

    .desc {
    width: 80%;
    }

    img.decorative {
        width: 200px;
        margin: 0 20%;
    }
}

@media (max-width: 540px) {
    .image-container {
        grid-template-columns: 1fr;
    }
}