body {
    background: black;
}

@media (min-width: 991.99px) {
    #twitch_embed_other {
        display: none;
    }
    .grid-gallery {
        --size: 100px;
        grid-template-columns: repeat(6, var(--size));
    }
    .grid-gallery img:nth-child(5n - 1) {
        grid-column: 2 / span 2
    }
    #div_presentation_texte {
        border-radius: 5px 10px 10px 5px;
    }
}

@media (max-width: 991.98px) {
    #twitch_embed_pc {
        display: none;
    }
    .grid-gallery {
        --size: 90px;
        grid-template-columns: repeat(4, var(--size));
    }
    .grid-gallery img:nth-child(3n) {
        grid-column: 2 / span 2
    }
    #div_presentation_texte {
        border-radius: 5px 5px 10px 10px;
        margin-bottom: 1rem;
    }
}

#div_presention_globale {
    border-radius: 10px;
    border: 2px solid whitesmoke;
}

#div_presentation_texte {
    background-color: whitesmoke;
}

#div_events_and_twitch {
    background-color: whitesmoke;
}

.grid-gallery {
    display: grid;
    grid-auto-rows: var(--size);
    gap: 5px;
    place-items: start center;
    margin-bottom: var(--size);
}

.grid-gallery img {
    width: calc(var(--size) * 2);
    height: calc(var(--size) * 2);
    object-fit: cover;
    grid-column: auto / span 2;
    border-radius: 5px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: clip-path 0.25s, filter 0.75s;
}

.grid-gallery:has(img:hover) img:not(:hover) {
    filter: brightness(0.5) contrast(0.5);
}

.grid-gallery img:hover {
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%);
    transition: clip-path 0.25s, filter 0.25s;
    z-index: 1;
}

.grid-gallery a:focus {
    outline: 1px dashed black;
    outline-offset: -5px;
}

#div_modal_img {
    display: none;
    position: absolute;
    margin: auto;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-color: black;
    justify-content: center;
    align-items: center;
}

#modal_img {
    max-width: 98%;
    max-height: 98%;
}

#div_modal_img_clore {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 3rem;
    color: whitesmoke;
    cursor: pointer;
}

.img_event {
    max-height: 475px;
    max-width: 90%;
}