/* Grid displays */
.grid-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
}
.grid-listing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
    z-index: 0;
    
    background-color: var(--gray);
    background-image: url(/images/textures/stripes.png);
    background-size: 12px;
}
.grid-listing .img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.5);
    backdrop-filter: saturate(80%) brightness(80%);
    transition: background-color .2s;
}
.grid-listing:hover .img-wrapper::after {
    background-color: rgba(0,0,0,0);
    backdrop-filter: saturate(100%) brightness(100%);
}

.grid-listing img {
    width: 100%;
    background-color: black;
    filter: saturate(120%) brightness(100%);
}
.grid-listing .cell-content {
    position: absolute;
    margin: 10%;
}
.grid-listing p, .grid-listing .grid-title {
    text-align: center;
    margin: 0;
    color: white;
    z-index: 30;
    font-size: large;
    text-shadow: 0 0 5px black;
    transition: transform .2s, text-shadow .2s;
    text-transform: uppercase;
    font-weight: bold;
    overflow-wrap: break-word;
}
.grid-listing:hover p, .grid-listing:hover .grid-title {
    transform: scale(105%);
    text-shadow: 0 2px 5px black;
}

.small-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
}
.small-grid-listing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 50px;
    position: relative;
    overflow: hidden;

    background-color: var(--gray);
    background-image: url(/images/textures/stripes.png);
    background-size: 8px;

    opacity: 75%;
    /* backdrop-filter: blur(10px) brightness(0%); */
    transition: opacity .2s;

    img {
        width: 100%;
        background-color: black;
        filter: saturate(120%);
    }
    .cell-content {
        position: absolute;
        margin: 10%;
    }
    .img-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: saturate(0%) brightness(25%);
        transition: backdrop-filter .2s;
    }
    .small-grid-title {
        text-align: center;
        margin: 0;
        color: white;
        z-index: 30;
        font-size: x-small;
        text-shadow: 0 0 5px black;
        transition: transform .2s, text-shadow .2s;
        text-transform: uppercase;
        font-weight: bold;
        overflow-wrap: break-word;
    }
    &:hover {
        opacity: 100%;

        &::after {
            backdrop-filter: saturate(100%);
        }
        .small-grid-title {
            transform: scale(105%);
            text-shadow: 0 2px 5px black;
        }
        .img-wrapper::after {
            backdrop-filter: saturate(100%) brightness(100%);
        }
    }
}
.small-grid-container {
    grid-template-columns: repeat(12, 1fr);
}
.small-grid-listing > .cell-content p, .small-grid-listing > .cell-content h2 {
    font-size: xx-small;
}


@media (max-width: 1250px) {
    .grid-list-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (max-width: 650px) {
    .grid-list-container {
        grid-template-columns: 1fr 1fr;
    }
}


