* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    transition: opacity 2s;
}

.lightbox__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    height: 80%;
    max-width: 80%;
}

.lightbox__container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border: 10px solid white;
    border-radius: 5px;
}

.lightbox.fadeOut {
    opacity: 0;
}

.lightbox.fadeIn {
    opacity: 1;
}

.lightbox.closed {
    display: none;
}

.lightbox__loader {
    background: url("hug.gif");
    background-size: cover;
    width: 100px;
    height: 100px;
}

.lightbox__next, .lightbox__close, .lightbox__prev {
    position: absolute;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px;
    text-shadow:1px 1px black;
}

.lightbox__next:hover, .lightbox__close:hover, .lightbox__prev:hover {
    color: white;
}

.lightbox__close {
    top: 8px;
    right: 12px;
}

.lightbox__next {
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
}

.lightbox__prev {
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
}

.opacity0 {
    opacity: 0;
}