div.news-gallery-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
}

div.news-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    width: 80%;
    max-width: 2000px;
}

div.news-game,
a.news-game {
    color: #ccc;
    flex-grow: 2;
    text-align: center;
    padding: 20px;
    background-color: #3e3e3e;
    margin: 3px;
    border: solid;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
    min-width: 100px;
    width: 100px;
    min-height: 75px;
    max-height: 75px;
    align-content: center;

    &:active:is(a) {
        color: #aaa;
    }

    &:is(div) {
        cursor: not-allowed;
        background-color: rgba(146, 61, 91, 0.5);
    }
}

.extra-home {
    justify-content: center;
}

.news-area {
    .news-block {
        background-color: #3e3e3e;
        width: 90%;
        padding: 8px;
        border-radius: 5px;
        margin: 10px 20px;
    }

    .text-box {
        .news-title {
            display: block;
            width: 100%;
            font-size: 24px;
            margin-top: 3.5px;
        }

        details summary {
            cursor: pointer;
            user-select: none;

            &::marker {
                content: none;
            }
        }

        .news-text {
            margin-top: 2.8px;
            margin-left: 5px;
            margin-right: 5px;

            &.overflow-text {
                max-height: 200px;
                text-overflow: ellipsis;
            }
        }

        .news-date {
            font-size: 15px;
            filter: brightness(80%);

            &::before {
                content: "Posted on: ";
            }
        }

        .news-post {
            font-size: 15px;
            display: block;
            float: right;

            a, span {
                color: #b6b6b6;

                &:active {
                    color: #d6d3d6;
                }
            }
        }

        .text-img {
            margin-top: 8px;
            margin-bottom: 8px;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;

            img, video {
                max-width: 100%;
            }
        }
    }

    .img-box {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        cursor: zoom-in;

        img, video {
            width: 100%;
            max-width: 100%;
            display: none;

            &:first-child {
                display: block;
            }
        }
    }

    .image-display {
        grid-template-columns: auto auto;
        cursor: zoom-out !important;

        img, video {
            display: block !important;
        }
    }

    .images-box {
        display: flex;
        overflow-x: scroll;
        scrollbar-width: thin;
        flex-direction: row;
        flex-wrap: nowrap;

        img, video {
            width: 100%;
        }
    }

    .single-img {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;

        img, video {
            width: 100%;
        }
    }

    .video-box {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;

        video {
            display: block;
            width: 100%;
            border-radius: 5px;

            &.multiple-video {
                margin-top: 5px;
                margin-bottom: 5px;
            }
        }
    }

    .audio-box {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;

        audio {
            display: block;
            width: 100%;
            margin-top: 5px;
            margin-bottom: 5px;
        }
    }
}

.hover-link-reverse:hover::before {
    content: ' ' attr(data-value);
    font-size: 0.7em;
    font-style: italic;
}

.hover-link:hover::after {
    content: ' ' attr(data-value);
    font-size: 0.7em;
    font-style: italic;
}

.hover-link::after {
    text-decoration: none !important;
}

@media (min-width: 800px) {

    .text-box,
    .news-area,
    .img-box,
    .audio-box,
    .single-img {
        margin-left: 10% !important;
        margin-right: 10% !important;
    }

    video {
        max-width: 80%;
    }
}