.photo_video_uploader {
    z-index: 510 !important;
}

.photo_video_uploader .popup__image-uploaded {
    width: 100%;
    max-height: 120px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-y: auto;
    margin-bottom: 10px;
}

.photo_video_uploader .popup__image-submitBtn {
    margin-top: 30px !important;
}

.photo_video_uploader .selectbox {
    flex: none;
    width: calc((100% - 16px) / 2);
    border: 1px solid #999;
    position: relative;
    box-sizing: border-box;
    margin-right: 8px;
    margin-bottom: 8px;
}

.photo_video_uploader .image__wrapper {
    width: 100%;
    padding-top: calc(100% * 360 / 640);
    position: relative;
}
.photo_video_uploader .image__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.photo_video_uploader .checkbox {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 5;
}

.photo_video_uploader .checkbox .checkmark {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: #fff;
    background-color: #cc2027;
    font-size: 12px;
    margin-right: 0 !important;
}

.photo_video_uploader .delbox {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-left: 1px solid #999;
    border-bottom: 1px solid #999;
    user-select: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
}

.photo_video_uploader .delbox .delbtn {
    width: 100%;
    height: 100%;
    background-color: transparent;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
}

.photo_video_uploader .delbox .delbtn:hover span {
    background-color: #cc2027;
}

.photo_video_uploader .delbox .delbtn span {
    width: 60%;
    height: 2px;
    border-radius: 5px;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 50%;
}

.photo_video_uploader .delbox .delbtn span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.photo_video_uploader .delbox .delbtn span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (min-width: 1024px) {
    .photo_video_uploader .popup__image-uploaded {
        max-height: 275px;
    }
    .photo_video_uploader .selectbox {
        width: calc((100% - 32px) / 4);
    }
}

/* 覆蓋原列表樣式 */
.container__uploadAssets-item table th {
    vertical-align: bottom;
}
.container__uploadAssets-item table td {
    vertical-align: middle;
}
.container__uploadAssets-item table th:nth-child(1) br {
    display: block;
}
.container__uploadAssets-item table td {
    padding: 1rem 0.25rem;
}
.container__uploadAssets-item .uploadImg_mask {
    width: min(150px, 40vw) !important;
    height: calc(min(150px, 40vw) * 360 / 640) !important;
}
@media screen and (min-width: 1024px) {
    .container__uploadAssets-item table th:nth-child(1) br {
        display: none;
    }
    .container__uploadAssets-item .uploadImg_mask {
        width: 320px !important;
        height: 180px !important;
    }
}
