.flex {
    overflow: hidden;
}

.flex p {
    -webkit-font-smoothing: antialiased;
}

.flex .flex-arrows {
    position: relative;
    cursor: pointer;
    top: 50%;
    margin-top: -15px;
    opacity: 0;
    -webkit-transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.master.item-box:hover .flex .flex-arrows {
    opacity: 1;
}

.flex .flex-arrows.disabled {
    opacity: 0 !important;
}

.flex .flex-arrows.left {
    float: left;
    padding: 2%;
}

.flex .flex-arrows.right {
    float: right;
    padding: 2%;
}

.flex .sub.item-box {
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    position: relative;
    -webkit-transition: left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    width: 0px;
    min-height: inherit;
    /* display: table-cell;*/
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.flex.container {
    /*overflow: hidden;*/
    position: relative;
}

.flex .sub.item-box:first-child {
    width: 100%;

}

.flex #children,
.flex #items-holder-wrapper,
.flex #items-holder {
    height: 100%;
    min-height: inherit;
    text-align: left;
    /*display:table;*/
    display: block;
    table-layout: fixed;
    width: 100%;
    font-size: 0px;
    /* for spaces caused by inline-block elements*/
}

.flex #items-holder-wrapper {
    position: relative;
}


.flex .page-navigator {
    cursor: pointer;
    float: left;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('assets/images/lil_grey_dot.png');
    width: 13px;
    height: 13px;
}

.flex .page-navigator.active,
.page-navigator:hover {
    color: red;
    background-image: url('assets/images/lil_grey_dot2.png');

}

.flex #paginator {
    position: absolute;
    left: 50%;
    bottom: 2%;
    z-index: 12;
}


.flex .sub.item-box[data-visible=visible] {
    left: 0;
}

.flex[data-slide-effect='FADE'] .sub.item-box {
    left: 0;
    opacity: 0;
    z-index: 0;
    /* visibility:hidden; */
    top: 0;
    -webkit-transition: opacity 3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: opacity 3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: opacity 3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: opacity 3 s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.flex[data-slide-effect='FILM'] {
    width: 70%;
    margin: auto;
    overflow: visible;
}

.flex[data-slide-effect='FADE'] .sub.item-box[data-visible=visible] {
    opacity: 1;
    z-index: 3;
    /* visibility: visible; */
}

.flex[data-slide-effect='SQUARES'] .sub.item-box[data-visible=visible] {
    transform: scale(0.7);
    z-index: 3;
}

.flex[data-slide-effect='SQUARES'] .sub.item-box.before-visible .magic-circle-holder,
.flex[data-slide-effect='SQUARES'] .sub.item-box.after-visible .magic-circle-holder {
    pointer-events: none !important;
}

.flex[data-slide-effect='SQUARES'] .sub.item-box.before-visible {
    transform: translateX(60%) scale(0.4);
}


.flex[data-slide-effect='SQUARES'] .sub.item-box.after-visible {
    transform: translateX(-60%) scale(0.4);
}

.flex[data-slide-effect='FILM'] .sub.item-box.before-visible {
    opacity: 0.7;
}

.flex[data-slide-effect='FILM'] .sub.item-box.after-visible {
    opacity: 0.7;
}


.flex[data-slide-effect='SQUARES'] .sub.item-box {
    -webkit-transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    -o-transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: transform 1 s cubic-bezier(0.165, 0.84, 0.44, 1), left 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.page-navigator {
    cursor: pointer;
    float: left;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('assets/images/lil_grey_dot.png');
    width: 13px;
    height: 13px;
}

.matrix .sub.item-box {
    display: inline-block;
    vertical-align: top;

}

.matrix .sub.item-box.element-box {
    display: inline-block;
}

.page-navigator.active,
.page-navigator:hover {
    color: red;
    background-image: url('assets/images/lil_grey_dot2.png');

}

.matrix #elements-holder {
    display: inline-block;
    width: 100%;
}


.matrix .sub.item-box:not(.element-box) {
    /*overflow: hidden;*/
}

.matrix .image-cover {
    overflow: visible;
}

.matrix .preview-image-holder {
    overflow: visible;
}

.matrix #items-holder-wrapper {
    width: 100%;
    /*display:inline-block;*/
    text-align: center;
}

.matrix #children {
    height: 100%;
    min-height: inherit;
}

.matrix #items-holder {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    font-size: 0px;
    /* padding:0px;
margin:0px; */
}



.matrix .element-wrapper {
    text-align: center;
}