.image-maker {
    width: 100%;
    position: relative;
}

.image-maker:hover:before {
    color: var(--main-primary-color);
}

.image-maker input {
    width: 100%;
    height: 100%;
    height: 0;
    left: 0;
    filter: opacity(0);
    cursor: pointer;
    position: absolute;
}

.image-maker-checkerboard {
    height: 110px;
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #F2F2F2;
    border: 2px dashed #ddd;
}

.image-maker-src[src=""]:before {
    content: "Choisissez un fichier";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
}

.image-maker-src[src=""] {
    width: 0px;
}

.image-maker-checkerboard:hover {
    background-size: 4px 4px;
}

.image-maker-checkerboard img {
    z-index: 1;
    width: auto;
    /* max-width: 100%; */
    height: 100%;
}

.image-maker-checkerboard .image-maker-src-multiple {
    position: relative;
    max-width: 150px;
    height: 100%;
    margin-right: 15px;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.image-maker-checkerboard .image-maker-src-multiple i {
    position: absolute;
    transform: translate(-100%);
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255, 0.8);
    font-size: 23px !important;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-maker-checkerboard .image-maker-src-multiple:hover i {
    transform: translate(0);
}

.image-maker-checkerboard .image-maker-src-multiple img {
    max-width: 100%;
    border-radius: 8px;
}

.image-maker-form {
    margin-top: 15px;
}

.modal-image-actions {
    margin-bottom: 15px;
}

.modal-image-actions .modal-image-actions-button {
    display: flex;
    flex-wrap: wrap;
}

.modal-image-actions .modal-image-actions-button-item {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-image-actions .modal-image-actions-button-item i {
    font-size: 20px;
}

.image-maker .label-file {
    width: 100%;
    margin-bottom: 0px;
}

.image-maker .label-file i {
    font-size: 55px;
}

/* Multiple */
.image-maker[data-type="multiple"] .image-maker-checkerboard {
    justify-content: flex-start;
}

.image-maker[data-type="multiple"] .image-maker-checkerboard img {
    height: 100%;
}

.image-miniature .image-miniature-actions {
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: rgba(255,255,255, 0.7);
}

.image-miniature .image-miniature-actions i {
    font-size: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 2px 2px 7px 1px #ddd;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.image-miniature .image-miniature-actions:hover {
    opacity: 1;
}

.image-miniature.active {
    opacity: 1;
}

.modal .image-miniature {
    height: 125px;
    margin-top: 10px;
    opacity: 1;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Lazyload */
@keyframes heroFadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

div[data-src], img[data-src] {
    opacity: 0;
}

div.lazyload[style], img.lazyload[src], div.lazyload.slick-slide {
    -webkit-transition: opacity .8s linear 0.2s;
    -moz-transition: opacity .8s linear 0.2s;
    transition: opacity .8s linear 0.2s;
    opacity: 1;
}

div.lazyload.slick-slide {
    animation: heroFadeIn 1s linear;
    opacity: 1;
}
/* End Lazyload */