main {
    div.buttons:not(:has(button.active)) {
        button:first-child {
            /* Background and border */
            background-color: var(--MainTextColor);

            /* Font */
            color: var(--SecondaryTextColor);
            font-weight: 700;
        }
    }

    div.buttons::before {
        /* Display, Position, Margin and Padding */
        display: inline;
        z-index: 0;
        position: absolute;
        transform: translateY(calc(-150% - 8px));

        /* Font */
        color: var(--MainTextColor);

        font-size: calc(var(--Body) * 0.8);
        letter-spacing: 2%;
        font-weight: 400;

        opacity: 0.5;
        content: "Défilez pour voir plus >";
    }

    div.buttons {
        /* Display, Position, Margin and Padding */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 32px;
        -ms-overflow-style: none;

        /* Firefox, Safari, Chrome */
        width: 100%;

        /* Internet Explorer */
        scrollbar-width: none;

        button {
            /* Display, Position, Margin and Padding */
            padding: 8px 16px;

            /* Background and border */
            background-color: #FAFAFA;
            border: 2px solid var(--MainTextColor);
            border-radius: 10px;

            /* Font */
            font-weight: normal;
            font-size: var(--Body);
            color: var(--MainTextColor);

            @media (prefers-color-scheme: dark) {
                color: var(--MainTextColor);
                background-color: var(--SecondaryTextColor);
            }

            scrollbar-color: transparent;
            text-wrap: nowrap;
        }

        button:hover {
            cursor: pointer;
        }

        button.active {
            /* Background and border */
            background-color: var(--MainTextColor);

            /* Font */
            color: var(--SecondaryTextColor);
            font-weight: 700;
        }
    }

    .images-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        padding: 32px 0;

        img.fullscreen {
            display: block;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);

            height: 80vh;
            max-width: 90vw;
            object-fit: contain;

            z-index: 1000;
        }
    }

    .images-grid img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        display: block;
        cursor: pointer;
    }

    /* Tablet */
    @media (max-width: 900px) {
        .images-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }
    }

    /* Mobile */
    @media (max-width: 550px) {
        .images-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .images-grid img {
            height: 250px;
        }
    }

}

#image-overlay.active {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
}
