main {
    background-image: linear-gradient(transparent 0%, #ffffffeb 0%), url(../images/chalet.jpg);
    background-size: cover;
    background-position: center;
}

#confirm-images-preview {
    display: flex;
    flex-wrap: wrap;    
}

#confirm-images-preview img {
    max-height: 100px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.25);
}

.section {
    top: 0;
    left: 0;
    width: 100%!important;
    height: 100%!important;
}

.confirm-images-resize-done {
    filter: grayscale();
    opacity: 0.5;
}

#album-container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 6vh;
}

.images {
    height: 20vh;
    width: 30%;
    margin: 1rem 0.5rem 0 .5rem;
    transition-duration: .2s;
    background-color: gainsboro;
}

@media only screen and (max-width: 1000px) {
    .images {
        width: 44%;
    }
}

@media only screen and (max-width: 500px) {
    .images {
        width: 100%;
    }
}

.images:not(.edit):hover {
    transform: scale(1.2);
    box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.33);
    z-index: 1;
}

.images.edit {
    box-shadow: 0px 0px 0px 3px rgb(197, 197, 197), 0px 0px 0px 2px rgb(197, 197, 197) inset;
    transform: scale(0.95);
    cursor: pointer;
}

#view-image img {
    cursor: default;
    box-shadow: 0px 15px 15px #00000094;
    border-radius: 5px;
}

#view-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#view-image img.open-current {
    animation: view-image-open;
}

#view-image img.open-previous {
    animation: view-image-previous;
}

#view-image img.open-next {
    animation: view-image-next;
}

#view-image img.open {
    animation-duration: 1s;
    max-width: 90%;
    max-height: 90%;
}

.popup.popup-show img.open {
    pointer-events: auto;
}

#popup-image {
    cursor: zoom-out;
}

.change-image {
    position: absolute;
    font-size: 5vh;
    color: #ffffffc7;
    text-shadow: 0px 0px 5px black;
    cursor: pointer;
}

#next-image {
    right: 0;
    height: 50vh;
    line-height: 50vh;
    width: 15vw;
    text-align: right;
    padding-right: 5vw;
    transition-duration: 0.2s;
}

#next-image:hover {
    padding-right: 3.5vw;
}

#previous-image {
    left: 0;
    height: 50vh;
    line-height: 50vh;
    width: 15vw;
    text-align: left;
    padding-left: 5vw;
    transition-duration: 0.2s;
}

#previous-image:hover {
    padding-left: 3.5vw;
}

@keyframes view-image-open {
    from {
        transform: scale(0.2);
    }
    to {
        transform: scale(1);
    }
}

@keyframes view-image-previous {
    from {
        transform: translateX(-50px);
    }
    to {
        transform: translateX(0px);
    }
}

@keyframes view-image-next {
    from {
        transform: translateX(50px);
    }
    to {
        transform: translateX(0px);
    }
}

.edit-images-checkbox:checked+label.images.edit {
    box-shadow: 0px 0px 0px 3px #007bff, 0px 0px 0px 2px #007bff inset;
    transform: scale(0.85);
    filter: grayscale(0);
}

.edit-image-choose-vignette-label {
    display: none;
}

label.images.edit .edit-image-choose-vignette:checked+label.edit-image-choose-vignette-on {
    display: inline-block;
    color: #ffa700;
    -webkit-text-stroke: 2px black;
}

label.images.edit .edit-image-choose-vignette:not(:checked)+label+label.edit-image-choose-vignette-off {
    display: inline-block;
    color: white;
    -webkit-text-stroke: 3px #c5c5c5;
}

.edit-image-choose-vignette-label i {
    text-shadow: 0px 0px 3px white;
    font-size: 25px;
    position: absolute;
    top: -12px;
    left: -12px;
}

.edit-image-choose-vignette-off i {
    display: none;
}

label.edit:hover i {
    display: block;
}