.ml {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .8);
    padding: 1rem;
    z-index: 9999
}

.ml-items {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: calc(100vh - 6rem);
    overflow: hidden
}


.ml-items > svg {
    display: block;
    width: 30px;
    height: 30px;
    animation: rotate 1s linear infinite;
    color: rgba(255, 255, 255, .5)
}

.ml-item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: contain
}

.ml-item[src].is-visible {
    display: block
}

.ml-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .8)
}

.ml-controls * {
    color: inherit
}

.ml-controls .ml-title {
    font-size: 1.15em;
    flex: 2;
}

.ml-control {
    display: flex;
    justify-content: center;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border-radius: .5rem;
    margin: 0 .125rem;
    border: 0;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    padding: 0
}

.ml-control:hover {
    background-color: rgba(255, 255, 255, .1);
    color: #fff
}

.ml-control:active {
    background-color: rgba(255, 255, 255, .2);
    color: #fff
}

.ml-control svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none
}

.ml-numbers {
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
    text-align: center;
    line-height: 1;
    font-size: .875rem;
    min-width: 3rem;
    text-align: center
}

.ml-separator {
    width: 1px;
    height: 1.5rem;
    margin: 0 .75rem;
    background-color: rgba(255, 255, 255, .2)
}

.ml-hidden {
    display: none !important
}

@media (min-width: 768px) {
    .ml {
        padding: 2rem
    }

    .ml-items {
        height: calc(100vh - 8rem)
    }

    .ml-controls {
        margin-top: 2rem
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg)
    }
}

a.imagesizer {
    display: inline-block;
    transition: all .2s ease-in-out;
    cursor: zoom-in;
}

a.imagesizer:hover {
    transform: scale(1.05);
}