.categories > h1
{
    overflow: hidden;
    text-align: center;
    
    margin-top: 0;
    
    color: #ae67bb;
    text-shadow: 0 3px 0 #4e50bb;
}

.categories > h1:before,
.categories > h1:after
{
    content: "";
    display: inline-block;
    height: 6px;
    position: relative;
    vertical-align: middle;
    width: 50%;
    background-color: #aa4ebb;
    border-bottom: 3px solid #4e50bb;
}

.categories > h1:before
{
    right: 0.5em;
    margin-left: -50%;
}

.categories > h1:after
{
    left: 0.5em;
    margin-right: -50%;
}

.categories
{
    text-transform: uppercase;
}

.category
{
    display: block;
    
    columns: 1;
    column-gap: 1rem;
}

.category .art
{
    margin: 0 1rem 1rem 0;
    display: inline-block;
    width: 100%;
    
    transition: box-shadow 0.4s;
    
    background: url(https://ghostspawn.com/assets/placeholder.png) center no-repeat;
    background-size: cover;
}

/*
.category .art:hover
{
    box-shadow: 0 0 15px 0 black;
}
*/

/*
.category .art.film::before
{
    filter: brightness(1.4);
    opacity: .75;
    background: url("https://ghostspawn.com/assets/gsbg6.jpeg") no-repeat center;
    box-shadow: inset -10px 0px 10px -3px #222222aa;
    background-size: cover;
    content: "";
    height: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    z-index: 100;
}
*/

.lightbox
{
    background: transparent;
    
    transition: background 0.2s;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    flex-direction: column;
    
    gap: 20px;
    padding: 20px;
    
    box-sizing: border-box;
    
    width: calc(100vw - min(30vw, 300px));
    max-height: 100dvh;
    height: 100dvh;
    
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
}

.lightbox-close
{
    width: 32px;
    height: 32px;
    
    background: url(https://ghostspawn.com/assets/times.png) center no-repeat;
    background-size: contain;
    
    filter: invert(1);
    
    opacity: 0.5;
    
    position: fixed;
    z-index: 100;
    top: 20px;
    right: 30px;
}

.lightbox .art
{
    max-height: calc(100dvh - 60px);
    max-width: calc(70vw - 60px);

    opacity: 1;
    
    transition: max-width 0.4s,
                max-height 0.4s,
                width 0.4s,
                height 0.4s,
                opacity 0.4s;
}

.lightbox iframe.art
{
    height: calc(100dvh - 60px);
    width: calc(70vw - 60px);
    
    background-color: red;
    background-image: url(https://img.youtube.com/vi/_yvx8_tydDA/mqdefault.jpg);
}

.lightbox .description
{
    position: relative;
    z-index: 100;
    
    background-color: lightgray;
    color: black;
    
    padding: 5px 20px;
    
    border: 1px solid black;
    border-radius: 5px;
    
    max-width: 70%;
}

/*
.category .art:hover
{
    animation: art-hover .8s alternate-reverse ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference)
{
    @keyframes art-hover
    {
        from
        {
            transform: rotateY(8deg) rotateX(5deg);
        }
        
        to
        {
            transform: rotateY(-8deg) rotateX(5deg);
        }
    }
}
*/

@media only screen and (max-width: 600px)
{
    .lightbox
    {
        max-width: 100vw;
        width: 100vw;
        
        /*
        I'd like for the lightbox to be below the navbar and not obscure it,
        but I can't figure out how to do it reliably. So for now, on mobile,
        the lightbox will obscure the navbar wihtout shame.
        max-height: calc(100dvh - 13vh);
        height: calc(100vh - 13vh);
        top: 13vh;
        */
    }
    
    .lightbox .art
    {
        max-height: calc(100dvh - 13dvh - 60px);
        max-width: calc(100vw - 60px);
    }
}

@media only screen and (max-width: 600px)
{
    h1:first-of-type
    {
        margin-top: 10px;
    }
}

@media only screen and (min-width: 600px)
{
    .category
    {
        columns: 2 200px;
    }
}

@media only screen and (min-width: 900px)
{
    .category
    {
        columns: 4 200px;
    }
    
    .category.films
    {
        columns: 2 200px;
    }
}

@media only screen and (min-width: 1800px)
{
    .category
    {
        columns: 6 200px;
    }
    
    .category.films
    {
        columns: 4 200px;
    }
}