#project {
    padding: 58px 0 0 0;
    z-index: 1;
    position: relative;
}

#project .projectContainer {
    max-width: 1500px;
    margin: auto;
    padding: 0 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 21.85%, rgba(0, 0, 0, 1) 43.28%);
}

#project .projectContainer #showreel {
    grid-column: 1 / -1;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 0;
    padding-bottom: 35%;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #040404;
}
#project .projectContainer #showreel:hover {
    opacity: 0.5;
}

#project .projectContainer #showreel iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    /* min-width: 177.77vh; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
  
#project a {
    text-decoration: none;
    background: black;
    border-radius: 1.5rem;
}
  
#project article {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
}
  
#project article div {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}
  
#project article h2,
#project article span {
    color: #fff;
    line-height: 1;
    padding: 0;
    margin: 0;
}
  
#project article h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-transform: lowercase;
}
  
#project article span {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 400;
}
  
#project article img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
  
#project article:hover img {
    opacity: 0.8;
}
  
#project article:hover h2 {
    color: var(--primary-color);
}

footer {
    margin-top: 0 !important;
}
  

@media (max-width: 1024px) {
    #project .projectContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #project {
        padding: 54px 0 0 0;
    }

    #project .projectContainer #showreel {
        padding-bottom: 45%;
    }

    #project .projectContainer #showreel iframe {
        min-width: 100vh;
    }
}

@media (max-width: 570px) {
    #project .projectContainer {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    #project article h2 {
        font-size: 26px;
    }

    #project .projectContainer #showreel {
        padding-bottom: 75%;
    }

    #project .projectContainer #showreel iframe {
        min-width: 125vh;
        min-height: 50vh;
    }
}

@media (max-width: 500px) {
    #project .projectContainer #showreel iframe {
        min-width: 110vh;
    }
}

@media (max-width: 450px) {
    #project .projectContainer #showreel iframe {
        min-width: 100vh;
    }
}