.a-imagepreview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    display: none;
    background-color: #000000d0;
    cursor: zoom-out;
}

.a-imagepreview-arrows {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 48px;
    max-height: 48px;
    z-index: 12;
    display: flex;
    gap: 4px;
    margin: 16px;
}

.a-imagepreview-arrow-button {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #dddddd;
    border-radius: 4px;
    background-color: #aaaaaa88;
    cursor: pointer;
}

.a-imagepreview-arrow-button:active {
    background-color: #aaaaaaaa;
}

.a-imagepreview-image {
    border-radius: 4px;
    z-index: 11;
    max-height: calc(100vh - 96px);
    max-width: calc(100vw - 32px);
    border-radius: 2px;
    background-color: white;
    box-shadow: 1px 1px 4px rgb(0 0 0 / 40%);
}

.a-imagepreview-preview {
    cursor: zoom-in;
    border-radius: 2px;
    box-shadow: 1px 1px 4px rgb(0 0 0 / 40%);
}

.a-imagepreview-label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: #ffffffdd;
    padding: 4px;
    border-radius: 2px;
    border: 1px solid #00000044;
    box-sizing: border-box;
    max-width: 80%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.a-imagepreview-label-hover {
    opacity: 0;
    transition-duration: 0.4s;
}

.a-imagepreview-container:hover .a-imagepreview-label-hover {
    opacity: 1;
}

.a-imagepreview-container {
    position: relative;
    display: flex;
}

.a-imagepreview-delete {
    top: 0;
    position: absolute;
    text-align: center;
    margin: 0;
    width: 42px;
    border-radius: 2px 0 0 2px;
}

.a-images {
    margin-top: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    display: flex;
}

.a-images > div {
    margin-right: 8px;
    margin-top: 8px;
}

.a-imagepreview-image-container {
    max-width: fit-content;
    position: relative;
    margin-top: 16px;
}