.wpcfto_generic_field_gallery {
    .wpcfto-field-content {
        display: flex;
        align-items: center;
    }
}
.wpcfto_gallery {
    &__items {
        display: flex;
        flex-wrap: wrap;
    }
    &__item {
        position: relative;
        border: 0 none;
        margin-bottom: 1em;
        cursor: all-scroll;
        margin-left: 7px;
        img {
            vertical-align: top;
            border-radius: 5px;
        }
        &_delete {
            position: absolute;
            right: 5px;
            top: 5px;
            width: 25px;
            height: 25px;
            line-height: 25px !important;
            text-align: center;
            background-color: #fff;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: .3s ease;
            &:hover {
                background-color: $accent;
                color: #fff;
                opacity: 1;
            }
        }
        &:hover {
            .wpcfto_gallery__item_delete {
                opacity: 1;
            }
        }
    }
    .actions {
        padding-left: 7px;
    }
    .button {
        display: inline-block;
        padding: 10px 27px;
        margin-right: 0;
        min-height: auto;
        height: 40px;
        line-height: 1.4;
        text-transform: uppercase;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        border-radius: 4px;
        background: $accent;
        border-color: $accent;
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
        cursor: pointer;
        letter-spacing: 0;
        &.button-remove {
            background-color: $color_muted;
            border-color: $color_muted;
            &:hover {
                background-color: darken($color_muted, 5%) !important;
                border-color: darken($color_muted, 5%) !important;
            }
        }
        &:hover {
            background-color: lighten($accent, 5%) !important;
            border-color: lighten($accent, 5%) !important;
        }
        i {
            display: inline;
            margin-right: 10px;
        }
    }
}

@media(max-width: 1200px) {
    .wpcfto_gallery .button {
        margin-bottom: 10px;
    }
}