﻿/* Backgrounds */
.backgrounds {
    width: 100%;
    height: 100%;
}
.backgrounds::before {
    margin-bottom: 5px;
}

.usn-cms.backgrounds .background-style,
.usn-cms.backgrounds .background-position {
    display: block;
    margin-bottom: 10px;
}

.usn-cms.backgrounds { 
    display: flex;
    flex-wrap: wrap;
}

.usn-cms.backgrounds .background-style,
.usn-cms.backgrounds .background-position {
    flex:0 0 auto;
    padding: 0;
    margin: 0;
}

.umb-editor--small .usn-cms.backgrounds .background-style,
.umb-editor--small .usn-cms.backgrounds .background-position {
    flex:0 0 100%;
}

.usn-cms.backgrounds .background-style {
    max-width: 335px;
}
    
/* BACKGROUND STYLE */
.usn-cms.backgrounds .background-style .item.smallItem {
    width: 100%;
    height: 33px;
    float: left;
    display: block;
    box-sizing: border-box;
}

.usn-cms.backgrounds .background-style .item.smallItem:nth-child(2n+1) {
    clear: both;
}

.usn-cms.backgrounds .background-style .item.smallItem {
    width: 160px;
}

/* BACKGROUND POSITIONS */
.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item {
    width: 33px;
    height: 33px;
    float: left;
    box-sizing: border-box;
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(3n+1) {
    clear: both;
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item svg {
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out 0s;
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(1) svg {
    transform: translate(-50%, -50%) rotate(45deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(2) svg {
    transform: translate(-50%, -50%) rotate(90deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(3) svg {
    transform: translate(-50%, -50%) rotate(135deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(4) svg {
    transform: translate(-50%, -50%) rotate(0deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(6) svg {
    transform: translate(-50%, -50%) rotate(180deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(7) svg {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(8) svg {
    transform: translate(-50%, -50%) rotate(-90deg);
}

.usn-cms.backgrounds .background-position .usn-item.item.smallItem.position-item:nth-child(9) svg {
    transform: translate(-50%, -50%) rotate(-135deg);
}