#nav-bg {
    background-color: black;
    padding-top: 30px;
    margin-top: -30px;

}

.container {
    width: 100%;
    height: 100%;
}

.top {
    display: flex;
    width: 90vw;
    margin-top: 20vh;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10vh;
    flex-wrap: wrap;
}

.top ul {
    list-style: none;
    width: 100%;
    height: 100%;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    list-style-type: none;
}

.top ul li {
    position: relative;
    overflow: hidden;
    width: 300px;
    height: 200px;
    margin: 10px;
}

.top ul li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    content: "";
    color: white;
    opacity: 0;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

.top ul li:hover::before {
    opacity: 0.4;
    background-color: rgba(0, 0, 0, 0.9);
}

.top ul li img {
    width: 100%;
    height: auto;
}

.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    position: relative;
    top: -100%;
}

.lightbox:target {
    outline: none;
    top: 0;
    opacity: 1;
    pointer-events: auto;
}

.lightbox:target img {
    top: 0;
    top: 50%;
    transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}

.foto-small {
    min-width: 300px;
}

@media (max-width: 500px) {
    .lightbox img {
        max-width: 100%;
    }
}