@font-face {
    font-family: Jost;
    src: url('/assets/fonts/jost.woff2') format('woff2'), url('/assets/fonts/jost.ttf') format('ttf');
    font-display: swap
}

body {
    font-family: Jost, serif;
    background-image: url('/assets/images/layout-background.jpg');
    background-attachment: fixed;
}


.gallery {
    margin-bottom: var(--size);
    --size: 100px;
    grid-template-columns: repeat(6, var(--size));
    grid-auto-rows: var(--size);
    place-items: start center;
    gap: 5px;

    &:has(:hover) img:not(:hover),
    &:has(:focus) img:not(:focus) {
        filter: brightness(0.5) contrast(0.5);
    }

    & li {
        width: calc(var(--size) * 2);
        height: calc(var(--size) * 2);
        transition: clip-path 0.25s;
        object-fit: cover;
        clip-path: path('M90,10 C100,0 100,0 110,10 190,90 190,90 190,90 200,100 200,100 190,110 190,110 110,190 110,190 100,200 100,200 90,190 90,190 10,110 10,110 0,100 0,100 10,90Z');
        grid-column: auto / span 2;

        &:nth-child(5n - 1) {
            grid-column: 2 / span 2
        }

        & img {
            transition: 300ms;
        }

        &:hover,
        &:focus {
            z-index: 1;
            clip-path: path('M0,0 C0,0 200,0 200,0 200,0 200,100 200,100 200,100 200,200 200,200 200,200 100,200 100,200 100,200 100,200 0,200 0,200 0,100 0,100 0,100 0,100 0,100Z');

            & img {
                scale: 110%;
            }
        }

        &:focus {
            outline: 1px dashed black;
            outline-offset: -5px;
        }
    }
}
