.intro{
    text-align: center;
}
.intro > p{
    max-width: 800px;
    margin: auto;
    margin-top: 12px;
    text-align: left;
    margin-bottom: 32px;
}
.intro > div{
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.intro > div > p{
    width: 120px;
    font-size: 24px;
    cursor: pointer;
}
.intro > div > p:not(:last-of-type){
    border-right: 2px solid var(--foreground-color);
}
.intro > div > p.selected{
    color: var(--highlight-color);
    font-weight: bold;
    text-decoration: underline;
}
/* Masonry styling referencing from https://dev.to/ryandsouza13/creating-a-responsive-masonry-layout-using-the-css-column-count-property-4kf7 */
.list{
    margin-bottom: 48px;
    display: none;
    column-count: 4;
    column-gap: 16px;
}
.list.active{
    display: block;
}
.list > img{
    width: 100%;
    margin-bottom: 16px;
    display: block;
    break-inside: avoid;
    cursor: pointer;
}
.image-viewer{
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
}
.image-viewer.active{
    display: flex;
}
.image-viewer .image{
    width: 80vw;
    height: 80vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
    position: relative;
}
.image-viewer img{
    position: absolute;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.image-viewer .close{
    right: 24px;
    top: 24px;
}
.image-viewer .image .previous{
    left: -12px;
    top: 0px;
    bottom: 0px;
    margin: auto;
    transform: translate(-100%, 0px);
}
.image-viewer .image .next{
    right: -12px;
    top: 0px;
    bottom: 0px;
    margin: auto;
    transform: translate(100%, 0px);
}

@media screen and (max-width: 1024px){
    .list{
        column-count: 2;
    }
}