/*--------------------------------------------------------------
# Problemator
--------------------------------------------------------------*/

.seonika-usphotos {
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ## Gallery */

.usphotos-wrap {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 150px minmax(150px, 1fr) 150px minmax(100px, 135px);
    grid-gap: 10px;
}

.seonika-usphotos .image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 20px;
    transition: .3s;
    overflow: hidden;
}

.seonika-usphotos .image-wrap:hover {
    opacity: .9;
}

.seonika-usphotos .image-wrap img {
    border-radius: 0;
}

.usphotos-images-wrap {
    display: flex;
    flex-direction: column;
}

.usphotos-images-wrap .image-wrap {
    flex: 1;
}

.usphotos-images-wrap .image-wrap:first-child {
    margin-bottom: 10px;
}

@media screen and (max-width: 1240px) {
    .usphotos-wrap {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .usphotos-images-wrap {
        flex-direction: row;
    }

    .seonika-usphotos .image-wrap {
        height: 170px;
    }

    .usphotos-images-wrap .image-wrap:first-child {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

/* ## Add */

.usphotos-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
    background-image: -moz-linear-gradient(120deg, rgb(235, 238, 248) 11%, rgb(246, 241, 223) 100%);
    background-image: -webkit-linear-gradient(120deg, rgb(235, 238, 248) 11%, rgb(246, 241, 223) 100%);
    background-image: -ms-linear-gradient(120deg, rgb(235, 238, 248) 11%, rgb(246, 241, 223) 100%);
    border-radius: 20px;
    cursor: pointer;
}

.usphotos-add span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 18px;
    font-weight: 700;
}

.usphotos-add span:before {
    content: '';
    margin-bottom: 15px;
    width: 32px;
    height: 32px;
    background-image: url(../img/photo.png);
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 1240px) {
    .usphotos-add {
        order: -1;
    }
}

/* ## Load more */

.usphotos-load-more {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #6982f9;
    cursor: pointer;
}

.usphotos-load-more:before {
    content: '';
    margin-right: 10px;
    width: 24px;
    height: 24px;
    background-image: url(../img/load.png);
    background-position: center;
    background-repeat: no-repeat;
    transition: .3s;
}

.usphotos-load-more:hover:before {
    transform: scale(1.2);
}

@media screen and (max-width: 640px) {
    .usphotos-load-more {
        justify-content: center;
    }
}

/* ### Form */

.usphotos-form {
    position: absolute;
    z-index: 99;
    display: none;
    padding: 20px;
    width: 300px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 15px 0 rgba(100, 120, 164, 0.25);
}

.usphotos-form:before {
    content: '';
    display: block;
    position: absolute;
    top: -9px;
    right: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent white transparent;
    transform: translate3d(-50%, 0, 0);
    -webkit-filter: drop-shadow(1px 2px 1px rgba(100, 120, 164, 0.25));
    filter: drop-shadow(1px -1px 1px rgba(100, 120, 164, 0.25));
}

.usphotos-upload-button {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

.usphotos-upload-button div {
    padding: 12px 25px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    word-wrap: break-word;
    background-color: #f4f8fb;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

.usphotos-upload-button:hover div {
    opacity: .8;
}

.usphotos-upload-button .usphotos-file {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.usphotos-form .button-violet {
    font-size: 14px;
    padding: 12px 25px;
}

.usphotos-form-info {
    display: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.usphotos-form-info.success {
    color: #2db441;
}

.usphotos-form-info.error {
    color: #c91212;
}

.usphotos-form-info small {
    display: block;
    margin-top: 10px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (max-width: 1240px) {
    .usphotos-form:before {
        right: inherit;
        left: 40px;
    }
}

@media screen and (max-width: 510px) {
    .usphotos-form {
        width: 100%;
    }

    .usphotos-form:before {
        left: 50%;
    }
}