.uploader-photos {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 10px 0 20px 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
}

.uploader-photo {
    position: relative;
    background: #eeeeee;
    width: calc(20% - 8px);
    padding: 10px;
    border-radius: 2px;
}

.uploader-photos.lsfw-popup__grey .uploader-photo {
    margin: 0;
    padding: 0;
    background: transparent;
    width: 100%;
}

.uploader-photos.uploader-photos--sort .uploader-photo .uploader-photo__error,
.uploader-photos.uploader-photos--sort .uploader-photo .uploader-photo__acts,
.uploader-photos.uploader-photos--sort .uploader-photo .bth__ta-block {
    display: none;
}

.uploader-photos.uploader-photos--sort .uploader-photo {
    cursor: -webkit-grab;
    cursor: grab;
}

.uploader-photos.lsfw-popup__grey {
    width: 100%;
    margin: 0;
}

.uploader-photo__img img.rotate-180 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.uploader-photo__img img.rotate-90, .uploader-photo__img img.rotate-270 {
    width: 170px;
    margin: 0 auto;
    display: block;
}

.uploader-photo__img img.rotate-90 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.uploader-photo__img img.rotate-270 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.uploader-photo__img img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.uploader-photo__img.loader {
    background: #cccccc;
    min-height: 150px;
    -webkit-animation: uploadPhoto 3s infinite;
    animation: uploadPhoto 3s infinite;
}


.uploader-photos .uploader-photo.uploader-photo--loader {
    -webkit-animation: lsfwFormLoader 5s infinite;
    animation: lsfwFormLoader 5s infinite;
    min-height: 362px;
}


@-webkit-keyframes uploadPhoto {
    0% {
        background-color: #cccccc;
    }
    50% {
        background-color: #d2d2d2;
    }
    100% {
        background-color: #cccccc;
    }
}

@keyframes uploadPhoto {
    0% {
        background-color: #cccccc;
    }
    50% {
        background-color: #d2d2d2;
    }
    100% {
        background-color: #cccccc;
    }
}

.uploader-photo__img {
    height: 170px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.62);
    position: relative;
    display: block;
    overflow: hidden;
}

.uploader-photo__progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 10;
    font-size: 20px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
}

@keyframes progressBar {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


@-webkit-keyframes progressBar {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

.uploader-photo__progress-bar::before {
    content: '';
    width: 70px;
    height: 70px;
    border: solid 5px #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    -webkit-transition: all 0.5s ease-in;
    -webkit-animation-name: progressBar;
    -webkit-animation-duration: 1.0s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -o-transition: all 0.5s ease-in;
    transition: all 0.5s ease-in;
    animation-name: progressBar;
    animation-duration: 1.0s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.uploader-photo__drop-wrap.has-error .hint-block .question-error {
    font-size: 14px;
    height: 25px;
    line-height: 25px;
    background: #ffffff;
}

.uploader-photo__drop-wrap.has-error .uploader-photo__drop {
    color: inherit;
}

.uploader-photo__drop-wrap.has-error {
    position: relative;
}

.uploader-photo__drop-wrap.has-error .hint-block {
    top: 0;
    text-align: center;
    width: 40px;
}

.uploader-photo__drop.grey {
    cursor: initial;
}

.uploader-photo__drop.grey::before {
    display: none;
}

.uploader-photo__drop::before {
    content: '\f078';
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 0;
}

.uploader-photo__drop {
    height: 25px;
    line-height: 25px;
    position: relative;
    border-radius: 2px;
    font-size: 10px;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    background: #ffffff;
    cursor: pointer;
    padding: 0 20px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.uploader-photo .bth__ta-block .hint-block {
    position: absolute;
    right: 10px;
    top: 10px;
}

.uploader-photo .bth__ta-block .bth__ta {
    font-size: 14px;
    width: 100%;
    height: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: none;
    padding: 10px;
    font-family: 'apercu_pro', sans-serif;
    display: inline-block;
    resize: none;
    color: #475669;
    border-radius: 2px;
    white-space: pre-wrap !important;
}

.uploader-photo .bth__ta-block .bth__ta::-webkit-input-placeholder {
    font-size: 10px !important;
    text-transform: uppercase !important;
}

.uploader-photo .bth__ta-block .bth__ta::-moz-placeholder {
    font-size: 10px !important;
    text-transform: uppercase !important;
}

.uploader-photo .bth__ta-block .bth__ta:-moz-placeholder {
    font-size: 10px !important;
    text-transform: uppercase !important;
}

.uploader-photo .bth__ta-block .bth__ta:-ms-input-placeholder {
    font-size: 10px !important;
    text-transform: uppercase !important;
}
.uploader-photo .bth__ta-block .bth__inp-lbl {
    display: block;
    color: #999999;
    position: absolute;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    margin-left: 10px;
    line-height: 18px;
    z-index: 1;
    font-family: 'apercu_pro', sans-serif;
    pointer-events: none;
    top: 0;
    font-size: 13px;
    background-color: white;
    padding-top: 3px;
}

.lsfw-popup .uploader-photo .lsfw-form-control {
    min-width: 344px;
}

.uploader-photo .lsfw-form-control {
    min-width: 100%;
}

.uploader-photo .lsfw-form-control__body.lsfw-form-control__body--scroll {
    max-height: 300px;
}

.uploader-photo .bth__ta-block {
    height: 92px;
    position: relative;
    background-color: #ffffff;
    width: 100%;
    border-radius: 2px;
    margin: 10px 0 0 0 !important;
}

.uploader-photo__act.fa-trash-alt:hover {
    color: #e03a3a;
}

.uploader-photo .uploader-photo__disabled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 10px;
    text-transform: uppercase;
    background: rgba(167, 167, 167, 0.94);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 2px;
    z-index: 5;
}

.uploader-photo__acts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.uploader-photo__act:hover {
    color: #318cc6;
}

.uploader-photo .uploader-photo__play {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    border-radius: 100%;
    background: rgba(255, 255, 255, 0.94);
    padding-left: 4px;
    z-index: 2;
}

.uploader-photo .uploader-photo__error::before {
    content: '\f06a';
    font-weight: bold;
    font-size: 24px;
    font-family: "Font Awesome 5 Free";
    color: #e03a3a;
}

.uploader-photo .uploader-photo__error b {
    margin: 10px 0 5px 0;
    display: block;
}

.uploader-photo .uploader-photo__error {
    text-align: center;
    color: #000000;
    padding-top: 15px;
    font-size: 13px;
}

.uploader-photo.has-error .uploader-photo__num {
    color: inherit;
}

.uploader-photo.has-error .fa-trash-alt {
    margin: 0;
}

.uploader-photo.has-error {
    background-color: #ffe6e4;
}

.uploader-photo .uploader-photo__num {
    font-size: 11px;
    cursor: pointer;
    color: #215f86
}

.uploader-photo .uploader-photo__acts .uploader-photo__act:nth-child(1).fa-trash-alt {
    margin-left: auto;
}

.uploader-photo .uploader-photo__act:hover {
    background: rgba(255, 255, 255, 0.7);
}

.uploader-photo .uploader-photo__act {
    line-height: 25px;
    height: 25px;
    cursor: pointer;
    border: none;
    color: #475669;
    -webkit-box-align: center;
    -ms-flex-align: center;
    text-align: center;
    align-items: center;
    border-radius: 2px;
    background: #ffffff;
    width: 30px;
    font-size: 13px;
    margin-left: 5px;
}


.uploader-photo__act.fa-trash-alt {
    margin-left: 20px;
}

.uploader-photo.uploader-photo--cover {
    background-color: #c8e4d2 !important;
}

.uploader-photo.uploader-photo--cover .uploader-photo__act.fa-thumbtack, .uploader-photo .uploader-photo__act.fa-thumbtack.active {
    background: #00a551;
}

.uploader-photo .uploader-photo__act.fa-thumbtack:hover {
    background: #00a551;
}

.uploader-photo .uploader-photo__act.fa-trash-alt:hover {
    background: #e03a3a;
}

.uploader-photo .uploader-photo__act:hover {
    background: #ff8e41;
    color: #ffffff;
}

.uploader-photo .uploader-photo__act.fa-check.active {
    color: #ffffff;
    background: #ff8e41;
}

.uploader-photo .uploader-photo__act.fa-check.active:hover {
    color: #ffffff;
    background: #ea8037;
}

.uploader-progress-bar div {
    padding: 0 20px;
    font-weight: bold;
    border-radius: 2px;
    white-space: nowrap;
    background: #ddede3;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    font-size: 10px;
}

.uploader-progress-bar {
    border: 2px solid #ffffff;
    color: #13653b;
    line-height: 22px;
    height: 26px;
    background: #ffffff;
    margin-top: 15px;
    border-radius: 2px;
}

.uploader-photo .uploader-photo__img .lsfw-cbx {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.uploader-photo .uploader-photo__img .lsfw-cbx label {
    font-size: 10px;
    border-radius: 3px;
    line-height: 22px;
    background: rgba(255, 255, 255, 0.73);
    padding: 0 5px 0 25px;
}

.uploader-photos + .uploader-photos__line {
    margin-top: 10px;
}

.uploader-photos__line .uploader-photos__line-cut {
    width: calc(100% - 20px);
    padding-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.uploader-photos__line {
    width: 100%;
    margin-bottom: 10px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    color: #666666;
}

.uploader-photo .uploader-photo__img .lsfw-cbx label::before {
    top: 0;
    left: 5px;
}

@media screen and (max-width: 1300px) {
    .uploader-photo {
        width: calc(25% - 8px);
    }

    .uploader-progress-bar div {
        font-weight: normal;
    }
}

@media screen and (max-width: 1199px) {
    .uploader-photo .uploader-photo__num {
        display: none;
    }

    .uploader-photo .uploader-photo__act.fa-undo {
        margin-left: 0;
    }
}

@media screen and (max-width: 1023px) {
    .uploader-photo {
        width: calc(33.3% - 8px);
    }
}

@media screen and (max-width: 750px) {
    .uploader-photos, .uploader-photo {
        width: 100%;
        gap: 10px;
    }

    .uploader-photo {
        padding-left: 140px;
        min-height: 182px;
    }

    .uploader-photo .uploader-photo__act {
        font-size: 10px;
    }

    .uploader-photo .uploader-photo__img .lsfw-cbx {
        bottom: 5px;
        left: 5px;
    }

    .uploader-photo .uploader-photo__img .lsfw-cbx label {
        padding: 0 5px 0 20px;
        font-size: 9px;
    }

    .uploader-photo__img {
        height: 162px;
        width: 110px;
        position: absolute;
        left: 10px;
        top: 10px;
    }

    .uploader-photo__img img.rotate-90, .uploader-photo__img img.rotate-270 {
        margin: 0;
        height: 135px;
        width: 162px;
        position: absolute;
        left: -13px;
        top: 14px;
    }

    .uploader-photo .uploader-photo__play {
        width: 40px;
        height: 40px;
        font-size: 15px;
        line-height: 40px;
    }

    .uploader-photo .uploader-photo__error {
        text-align: left;
        position: relative;
        padding-left: 7px;
        padding-top: 0;
        font-size: 10px;
    }

    .uploader-photo__progress-bar {
        font-size: 11px;
    }

    .uploader-photo__progress-bar::before {
        border-width: 2px;
        width: 50px;
        height: 50px;
    }

    .uploader-photo__act.fa-trash-alt {
        margin: 0;
    }

    .uploader-photo__drop::before {
        font-size: 7px;
        right: 9px;
    }

    .uploader-progress-bar {
        height: 20px;
        line-height: 16.5px;
    }

    .uploader-photo__drop-wrap.has-error .hint-block .question-error {
        font-size: 13px;
    }

    .uploader-photo__drop-wrap.has-error .hint-block {
        width: 30px;
    }
}

@media screen and (max-width: 359px) {
    .uploader-photo__img {
        width: 100px;
    }

    .uploader-photo__img img.rotate-90, .uploader-photo__img img.rotate-270 {
        height: 100px;
        width: 162px;
        left: -31px;
        top: 31px;
    }

    .uploader-photo .uploader-photo__act {
        margin: 0;
    }

    .uploader-photo {
        padding-left: 125px;
    }

    .uploader-photo .uploader-photo__img .lsfw-cbx {
        left: 3px;
    }

    .uploader-photo .uploader-photo__img .lsfw-cbx label {
        font-size: 9px;
        padding: 0 5px 0 18px;
    }
}