.uploader {
    position: relative;
    overflow: hidden;
    margin: 0;
    background-image: -o-linear-gradient(top, #336699 0%, #23779f 96%);
    background-image: linear-gradient(to bottom, #336699 0%, #23779f 96%);
    color: #fff;
    border-radius: 5px;
}

.uploader a {
    color: #fff;
    text-decoration: underline;
}

.uploader a:hover {
    color: #fff;
}

@media (max-width: 800px) {
    .uploader {
        margin: 0 -20px;
    }
}

@media (max-width: 500px) {
    .uploader {
        margin: 0 -15px;
    }
}

.uploader__container {
    width: 1000px;
    margin: auto;
    padding: 25px 10px;
}

@media (max-width: 1050px) {
    .uploader__container {
        width: auto;
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 800px) {
    .uploader__container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 500px) {
    .uploader__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.uploader__title {
    margin: 0 0 34px;
    font-size: 24px;
    font-weight: 400;
}

.uploader__rules {
    padding-top: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.uploader__input input {
    position: absolute;
    overflow: hidden;
    z-index: -1;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
}

.uploader__button {
    display: inline-block;
    vertical-align: middle;
    margin: 0 14px 10px 0;
    padding: 12px 18px 11px;
    background-image: -o-linear-gradient(top, #FAFAFA 0%, #D3D3D3 82%, #CBCBCB 100%);
    background-image: linear-gradient(to bottom, #FAFAFA 0%, #D3D3D3 82%, #CBCBCB 100%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    color: #525252;
    font-size: 20px;
    cursor: pointer;
}

.uploader__button:hover {
    background-image: -o-linear-gradient(top, #fff 0%, #e3e3e3 82%, #dBdBdB 100%);
    background-image: linear-gradient(to bottom, #fff 0%, #e3e3e3 82%, #dBdBdB 100%);
}

.uploader__button:active {
    background-image: -o-linear-gradient(top, #CBCBCB 0%, #D3D3D3 100%);
    background-image: linear-gradient(to bottom, #CBCBCB 0%, #D3D3D3 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset;
}

.uploader__counter {
    position: relative;
    top: -3px;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
    color: #ffd708;
    font-size: 28px;
    line-height: 1;
    white-space: nowrap;
}

.uploader__hint {
    position: absolute;
    top: 42px;
    right: 125px;
    z-index: 10;
    box-sizing: border-box;
    width: 180px;
    height: 180px;
    padding: 64px 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font: italic 13px/19px "Georgia", serif;
    text-align: center;
    -o-transition: border-color 1s ease;
    transition: border-color 1s ease;
}

.no-smil .uploader__hint,
.touchevents .uploader__hint {
    display: none;
}

.uploader__hint:before, .uploader__hint:after {
    position: absolute;
    display: block;
    border: 1px solid;
    border-radius: 50%;
    opacity: 1;
    -o-transition: opacity 1s ease;
    transition: opacity 1s ease;
    content: '';
}

.uploader__hint:before {
    top: -105px;
    left: -105px;
    width: 390px;
    height: 390px;
    border-color: rgba(255, 255, 255, 0.25);
}

.uploader__hint:after {
    top: -255px;
    left: -255px;
    width: 690px;
    height: 690px;
    border-color: rgba(255, 255, 255, 0.2);
}

.is-dragover .uploader__hint {
    border-color: transparent;
}

.is-dragover .uploader__hint:before, .is-dragover .uploader__hint:after {
    opacity: 0;
}

@media (max-width: 1050px) {
    .uploader__hint {
        display: none;
    }
}

@-webkit-keyframes circles {
    0% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        width: 50px;
        height: 50px;
    }
}

@-o-keyframes circles {
    0% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        width: 50px;
        height: 50px;
    }
}

@keyframes circles {
    0% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        width: 50px;
        height: 50px;
    }
}

.uploader__animation {
    position: absolute;
    top: 42px;
    right: 125px;
    width: 180px;
    height: 180px;
    z-index: 20;
    opacity: 0;
    -o-transition: opacity 1s ease;
    transition: opacity 1s ease;
}

.no-smil .uploader__animation,
.touchevents .uploader__animation {
    display: none;
}

.is-dragover .uploader__animation {
    opacity: 1;
}

.uploader__animation div {
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation-name: circles;
    -o-animation-name: circles;
    animation-name: circles;
    -webkit-animation-duration: 5s;
    -o-animation-duration: 5s;
    animation-duration: 5s;
    -webkit-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
    -o-animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
}

.uploader__animation div:nth-child(2) {
    -webkit-animation-delay: 1s;
    -o-animation-delay: 1s;
    animation-delay: 1s;
}

.uploader__animation div:nth-child(3) {
    -webkit-animation-delay: 2s;
    -o-animation-delay: 2s;
    animation-delay: 2s;
}

.uploader__animation div:nth-child(4) {
    -webkit-animation-delay: 3s;
    -o-animation-delay: 3s;
    animation-delay: 3s;
}

.uploader__animation div:nth-child(5) {
    -webkit-animation-delay: 4s;
    -o-animation-delay: 4s;
    animation-delay: 4s;
}

@media (max-width: 1050px) {
    .uploader__animation {
        display: none;
    }
}

@-moz-document url-prefix() {
    .uploader__hint,
    .uploader__animation {
        display: none;
    }
}

.uploader-previews {
    position: relative;
    z-index: 50;
    width: 1000px;
    margin: auto;
    padding: 10px 0 0;
}

@media (max-width: 1050px) {
    .uploader-previews {
        width: auto;
        padding-left: 25px;
    }
}

@media (max-width: 800px) {
    .uploader-previews {
        padding-left: 20px;
    }
}

@media (max-width: 500px) {
    .uploader-previews {
        padding-left: 15px;
    }
}

.uploader-preview {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 210px;
    margin: 0 25px 25px 0;
    padding: 5px 5px 10px;
    border-radius: 2px;
    font-size: 13px;
    text-align: center;
}

.uploader-preview a {
    text-decoration: underline;
}

.uploader-preview img {
    width: 200px;
    height: auto;
    margin-bottom: 5px;
}

.object-fit .uploader-preview img {
    height: 150px;
    -o-object-fit: cover;
    object-fit: cover;
}

.uploader-preview.is-loading {
    min-height: 174px;
}

.uploader-preview.is-loading .loading {
    display: block;
    width: 200px;
    height: 150px;
    border: 2px dashed #465260;
}

.uploader-preview.is-loading .spinner {
    position: relative;
    top: 45px;
}

.uploader-preview.is-active {
    background-color: #cecece;
}

.uploader-preview.is-active .set-main-image-link {
    position: relative;
    display: inline-block;
    color: black !important;
    font-weight: 700;
    text-decoration: none;
    cursor: default;
}

.uploader-preview.is-active .set-main-image-link:hover {
    color: black;
}

.uploader-preview.is-active .set-main-image-link:after {
    position: absolute;
    top: 0;
    left: -20px;
    display: block;
    width: 18px;
    height: 14px;
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxOCAxNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNi41NTIgMEw1LjcxNyAxMS4wNDcgMS40NSA2LjY5NCAwIDguMTcgNS43MTcgMTQgMTggMS40NzcgMTYuNTUyIDB6IiBmaWxsPSIjMDAwIi8+Cjwvc3ZnPg==") no-repeat;
    content: '';
}

.uploader-preview-delete {
    position: absolute;
    top: -4px;
    right: -4px;
    display: block;
    width: 17px;
    height: 17px;
    background: white url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgOSA5IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZD0iTTkgNy43M0w3LjczIDkgNC41IDUuNzcgMS4yNyA5IDAgNy43MyAzLjIzIDQuNSAwIDEuMjcgMS4yNyAwIDQuNSAzLjIzIDcuNzMgMCA5IDEuMjcgNS43NyA0LjUgOSA3LjczeiIgZmlsbD0iI0YwMCIvPgo8L3N2Zz4=") no-repeat 50% 50%;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    color: transparent;
    font-size: 0px;
}

.uploader-preview-delete:active {
    margin-top: 1px;
}

.uploader-preview-delete:after {
    position: absolute;
    top: -50%;
    left: -50%;
    display: block;
    width: 200%;
    height: 200%;
    cursor: pointer;
    content: '';
}

.opera12 .uploader-preview-delete {
    border-radius: 0;
}

@-webkit-keyframes rotator {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(270deg);
        transform: rotate(270deg);
    }
}

@-o-keyframes rotator {
    0% {
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -o-transform: rotate(270deg);
        transform: rotate(270deg);
    }
}

@keyframes rotator {
    0% {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(270deg);
        -o-transform: rotate(270deg);
        transform: rotate(270deg);
    }
}

@-webkit-keyframes rotator-no-smil {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes rotator-no-smil {
    0% {
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotator-no-smil {
    0% {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.spinner {
    -webkit-animation: rotator 1.4s linear infinite;
    -o-animation: rotator 1.4s linear infinite;
    animation: rotator 1.4s linear infinite;
}

.spinner circle {
    stroke: #465260;
    stroke-dasharray: 187;
    stroke-dashoffset: 0;
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    -o-transform-origin: center;
    transform-origin: center;
    -webkit-animation: dash 1.4s ease-in-out infinite;
    -o-animation: dash 1.4s ease-in-out infinite;
    animation: dash 1.4s ease-in-out infinite;
}

.opera12 .spinner {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    background: url("/assets/gallery/img/preloader.gif") no-repeat;
}

.opera12 .spinner circle {
    display: none;
}

.no-smil .spinner {
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    border: 6px solid;
    border-color: #3dca86 transparent transparent;
    border-radius: 50%;
    -webkit-animation: rotator-no-smil 0.75s linear infinite;
    -o-animation: rotator-no-smil 0.75s linear infinite;
    animation: rotator-no-smil 0.75s linear infinite;
}

.no-smil .spinner circle {
    display: none;
}

@-webkit-keyframes dash {
    0% {
        stroke-dashoffset: 187;
    }
    50% {
        stroke-dashoffset: 46.75;
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    100% {
        stroke-dashoffset: 187;
        -webkit-transform: rotate(450deg);
        transform: rotate(450deg);
    }
}

@-o-keyframes dash {
    0% {
        stroke-dashoffset: 187;
    }
    50% {
        stroke-dashoffset: 46.75;
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    100% {
        stroke-dashoffset: 187;
        -o-transform: rotate(450deg);
        transform: rotate(450deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 187;
    }
    50% {
        stroke-dashoffset: 46.75;
        -webkit-transform: rotate(135deg);
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    100% {
        stroke-dashoffset: 187;
        -webkit-transform: rotate(450deg);
        -o-transform: rotate(450deg);
        transform: rotate(450deg);
    }
}

.gellery_preview img {
    max-height: 160px;
}
.thumbnail{
    min-height: 170px;
}
@media (max-width: 1199px) {
    .gellery_preview img {
        max-height: 160px;
    }

}