#projects {
    display: flex;
    flex-direction: column;
    background-color: var(--alt-bg-color);
}

#projects h1 {
    margin-top: 60px;
    margin-bottom: 80px;
}

#projects p {
    margin: 15px 0;
}

#projects .projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, 616px);
    gap: 16px;
    place-items: center;
    max-width: 90vw;
    margin: auto;
}

#projects .defocus {
    opacity: 0.33;
    /* pointer-events: none; */
}

#projects .focus {
    opacity: 1;
    /* pointer-events: all; */
}

#projects .main {
    opacity: 1;
    /* pointer-events: all; */
}

#projects .secondary {
    opacity: 1;
    /* pointer-events: all; */
}

#projects .main img {
    opacity: 0.15;
}
#projects .secondary img {
    opacity: 0;
}

#projects .secondary .title {
    display:none;
}

#projects .hidden {
    opacity: 0;
    pointer-events: none;
}

#projects .project-tile {
    overflow: hidden;
    position: relative;
    height: 440px;
    width: 616px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--title-color);
    border-radius: 8px;
    box-shadow: 1.5px 1.5px 1.5px 1.5px var(--alt-bg-shadow-color);
    text-decoration: none;
    transition: all 0.1s;
}

#projects .project-tile .bg_video {
    height: 360px;
    width: 616px;
    object-fit: cover;
    position: absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

#projects .focus .bg_video {
    display: none;
}

#projects .defocus .bg_video {
    display: none;
}

#projects .main .bg_video {
    display: block;
}

#projects .secondary .bg_video {
    display: none;
}

#projects .project-tile:hover {
    transform: scale(1.01);
}

#projects .project-tile img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

#projects .project-tile .title p {
    font-size: 25px;
    padding: 10px;
    transition: all 0.1s;
}

#projects .project-tile:hover .title p {
    color: var(--title-hover-color);
    animation: squiggly-small-anim 0.2s infinite;
}

#projects .project-tile .description {
    position: absolute;
    top: 32px;
    height: 440px;
    width: 616px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#projects .defocus .description {
    display:none;
}

#projects .focus .description {
    display:none;
}

#projects .main .description {
    display:none;
}

#projects .secondary .description {
    display:block;
}

#projects .project-tile .description p {
    color: var(--title-color);
    font-size: 18px;
    margin: 8px 8px;
    width: 600px;
    text-shadow: 1.5px 1.5px 1.5px black;
    justify-self:center;
}

#projects .project-tile .description h1 {
    color: var(--title-color);
    font-size: 18px;
    margin: 8px 8px;
    width: 600px;
    text-shadow: 1.5px 1.5px 1.5px black;
    justify-self:center;

    animation: none;
}

.button {
    text-decoration: none;
    width: max-content;
    display: flex;
    align-items: center;
    margin: 40px auto;
    padding: 0px 15px;
    background-color: var(--bg-color);
    color: var(--title-color);
    font-size: 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.1s;
}

.button:hover {
    background-color: var(--bg-border-color);
    color: var(--title-hover-color);
    animation: squiggly-small-anim 0.2s infinite;
    transform: scale(1.05);
}