:root {
    --gall-thumb-size: 110px;
    --gall-thumb-size: calc((700px / 6) - 5px)
    /* --gall-thumb-size-2: 130px; */
}

body {
    overflow-x: hidden;
}

#gl {
    text-align: end;
    /* font-size: 80%; */
    padding-top: 10px;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--gall-thumb-size));
    gap: 5px;
    /* justify-content: center; */
}

.gallery img {
    height: var(--gall-thumb-size);
    width: var(--gall-thumb-size);
    object-fit: cover;
    border-radius: 2px;
}

.gallery img:hover {
    transform: scale(95%);
    cursor: pointer;
    filter: brightness(70%);
}

.gallery a {
    position: relative;
}

img {
    image-rendering: auto;
}


#bl1 {
    position: absolute;
    height: 400px;
    bottom: 0px;
    left: -60px;
    image-rendering: pixelated;
    z-index: -1;
}

#bl2 {
    position: absolute;
    height: 400px;
    top: 100px;
    right: -250px;
    image-rendering: pixelated;
}


/* .gslide-image img {
    image-rendering: optimizeSpeed !important;
} */

#filter {
    font-family: var(--main-font-family);
    font-size: 16px;
    padding: 3px 10px;

    color: var(--text-color);
    background-color: var(--box-background-color-2);
    border: 1px dotted var(--box-border-color);
    border-radius: 3px;
    outline: 0;
}

#filter:hover {
    cursor: pointer;
}

option {
    color: var(--text-color);
    background-color: var(--box-background-color-2);
}



.heading2 {
    padding-top: 10px;
}


@media only screen and (max-width: 700px) {

    :root {
        --gall-thumb-size: calc(((100vw - 20px) / 4) - 10px);
    }

    .gallery {
        max-width: 100%;
        padding: 5px;
        justify-content: center;
    }

    #bl1, #bl2 {
        display: none;
    }

}


a:has(.giffed)::after {
    content: "gif";
    position: absolute;
    top: 0;
    right: 0;

    color: var(--text-color);
    background-color: var(--box-background-color);
    padding: 2px 5px;
    border-radius: 3px;

    text-transform: uppercase;
    font-size: 90%;
    font-family: var(--main-font-family);
    font-weight: 400;
}


@media only screen and (max-width: 550px) {

    :root {
        --gall-thumb-size: calc(((100vw - 20px) / 3) - 10px);
    }

}