@font-face {
    font-family: "TNR";
    src: url(../style/fonts/Times\ New\ Roman\ MT\ Condensed.otf);
}

* {
    font-family: "TNR";
}

html,
body {
    margin: 0;
    padding: 0px;
    width: 100dvw;
    height: 100dvh;
    overflow-x: hidden;
    background-color: black;
}

.gallery {
    margin: 0;
    padding: 20px;
    padding-top: 80px;
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 25px));
    grid-gap: 20px;
    width: 100%;
    background-color: white;
}

img,
video {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.nav {
    width: 100%;
    background-color: black;
    color: white;
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.title {
    padding: 10px;
    padding-left: 20px;
    font-size: 32px;
    cursor: pointer;
}

.filter {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
    padding: 5px;
    padding-right: 20px;
}

.filters {
    height: 50px;
    width: 35px;
    cursor: pointer;
    border: 1px solid black;
    position: relative;
    display: inline-block;
}

.filters:hover {
    border: 1px solid white;

}

.filters:hover .tooltiptext {
    visibility: visible;
    opacity: 80%;
}

.tooltiptext {
    visibility: hidden;
    width: fit-content;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    position: absolute;
    bottom: -10px;
    left: -20px;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s;
}

.active {
    border: 1px solid white;
}

#scatter {
    background-color: #414896;
}

#common {
    background-color: #b12128;
}

#garden {
    background-color: #31754f;
}

a,
a:active,
a:visited {
    color: white;
    text-decoration: none;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: white;
    background-color: black;

    div {
        padding: 20px;
    }

}

#info {
    a {
        text-decoration: underline;
    }

    .about {
        text-decoration: none !important;
    }
}

#mode {
    font-size: 14px;
}

.viewer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 10000;
    overflow: hidden;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#content {
    height: 95%;
    width: 95%;
    padding: 0;
    margin: 0;
    z-index: 10;
    text-align: center;
    object-fit: contain;

    img,
    video {
        z-index: 10;
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: 100%;
        object-fit: contain;
    }
}

#prev,
#next {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 12px;
    font-size: 24px;
    text-shadow: 5px 5px 20px black;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

#bg {
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.empty {
    width: 100%;
    text-align: center;
}


@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, calc(33% - 25px));
    }
}

@media (max-width: 767px) {
    .gallery {
        grid-template-columns: repeat(2, calc(50% - 25px));
    }

    .title {
        display: flex;
        flex-direction: column;
    }

    #content {

        align-items: center;
        display: flex;

        img,
        video {
            height: auto;
            width: 100%;
        }
    }
}