.attachmentWrapper input {
    display: none;
}

.attachmentWrapper .preview:not(:has(.remove-btn)) {
    width: 13em;
    aspect-ratio: 9 / 2;
}

.preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ededed;
    width: 10em;
    aspect-ratio: 9 / 14;
    border-radius: 1em;
    cursor: pointer;
    -webkit-box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition-duration: 200ms;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    max-width: 90%;
}

.preview>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview .icon {
    background: #cccccc;
    aspect-ratio: 1;
    width: 1.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25);
}

.preview .filename {
    position: absolute;
    bottom: 0.5em;
    left: 50%;
    transform: translateX(-50%);
}

.preview .remove-btn {
    position: absolute;
    top: 0.3em;
    right: 0.2em;
    width: 2em;
    border: none;
    aspect-ratio: 1;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: 200ms;
    transform: scale(1);
    cursor: pointer;
}

.preview .remove-btn:hover {
    transform: scale(1.2);
}

.preview .remove-btn svg {
    width: 1.5em;
}

.attachmentWrapper .sideScroller .wrapper {
    padding: 1.7em;
    gap: 1em;
    box-sizing: border-box;
}

.attachmentWrapper {
    max-width: 100%;
    overflow: hidden;
}