/* Porto Interactive banner */
.porto-ibanner,
.porto-ibanner > img {
    display: block;
    position: relative
}
.porto-ibanner {
    z-index: 1;
    overflow: hidden;
    margin: 0 0 35px;
    text-align: center;

    > img {
        width: 100%;
        transition: opacity .35s;
        border: none;
        padding: 0;
        margin: 0;
        min-height: inherit;
        object-fit: cover;
        transition: transform .5s, opacity .5s;
        &.porto-lazyload:not(.lazy-load-loaded) {
            visibility: hidden;
        }
    }
    .video-overlay {
        display: none;
    }
    &.section-video {
        padding: 0;
        max-width: 100%;
        min-width: auto;
    }

    &.has-parallax-bg {
        > img {
            opacity: 0;
            width: 66%;
        }
    }
}
.porto-ibanner-layer {
    text-align: $left;
    font-size: 1rem;
    @media #{$screen-normal} {
        font-size: .875rem;
    }
    @media #{$screen-medium} {
        font-size: .8125rem;
    }
    @media #{$screen-small} {
        font-size: .75rem;
    }
}
.porto-ibanner .porto-ibanner-desc {
    padding: 15px;
    color: #fff;
    font-size: 1em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity .3s;
    &.no-padding {
        padding: 0;
    }
    .porto-ibanner-container {
        position: relative;
        height: 100%;
    }
    &:before, &:after {
        pointer-events: none
    }
}
.porto-ibanner .porto-ibanner-desc,
.porto-ibanner .porto-ibanner-link {
    position: absolute;
    top: 0;
    #{$left}: 0;
    width: 100%;
    height: 100%
}
.porto-ibanner .porto-ibanner-content {
    font-size: .8125em;
    line-height: 1.6
}
.porto-ibanner .porto-ibanner-title,
.porto-ibanner p {
    letter-spacing: normal;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    text-decoration: inherit;
    font-style: inherit;
    color: inherit
}
.porto-ibanner a.porto-ibanner-link {
    display: block;
    z-index: 7;
    opacity: 0;
    @if $rtl == 1{
        background: 100% 0
    }
    @else {
        background: 0 0
    }
}

/* hover effect */
.porto-ibe-zoom:hover > img {
    transform: scale(1.08, 1.08);
}
.porto-ibe-fadein {
    .porto-ibanner-desc {
        opacity: 0;
    }
    &:hover .porto-ibanner-desc {
        opacity: 1;
    }
}
.porto-ibe-fadeout {
    &:hover .porto-ibanner-desc {
        opacity: 0;
    }
}
.porto-ibe-boxshadow {
    transition: box-shadow .3s
}
.porto-ibe-overlay:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity .4s
}
.porto-ibe-style1 img {
    width: 100%
}
.porto-ibe-style1 .porto-ibanner-desc:before {
    position: absolute;
    content: "";
    top: 0;
    #{$left}: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0)
}
.porto-ibe-style1 .porto-ibanner-title {
    position: absolute;
    top: 50%;
    #{$left}: 0;
    width: 100%;
    transition: transform .35s, color .35s;
    -webkit-transform: translate3d(0, -50%, 0);
    -ms-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0)
}
.porto-ibe-style1 .porto-ibanner-content,
.porto-ibe-style1 .porto-ibanner-desc::before {
    transition: opacity .35s, transform .35s;
    transition: opacity .35s, transform .35s, -webkit-transform .35s
}
.porto-ibe-style1 .porto-ibanner-content {
    position: absolute;
    bottom: 0;
    #{$left}: 0;
    padding: 15px;
    width: 100%;
    max-height: 50%;
    opacity: 0;
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0)
}
.porto-ibe-style1:hover .porto-ibanner-title {
    color: #fff;
    -webkit-transform: translate3d(0, -40px, 0);
    transform: translate3d(0, -40px, 0)
}
.porto-ibe-style1:hover .porto-ibanner-content,
.porto-ibe-style1:hover .porto-ibanner-desc:before {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
}

.porto-ibe-style2 .porto-ibanner-desc {
    top: auto;
    bottom: 0;
    padding: 15px;
    height: auto;
    background: #F2F2F2;
    color: #3c4a50;
    transition: transform .35s;
    transition: transform .35s, -webkit-transform .35s;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0)
}
.porto-ibe-style2 .porto-ibanner-content {
    position: absolute;
    top: auto;
    bottom: 100%;
    #{$left}: 0;
    width: 100%;
    padding: 25px;
    color: #fff;
    text-transform: none;
    opacity: 0;
    transition: opacity .35s
}
.porto-ibe-style2 .porto-ibanner-title {
    transition: transform .35s;
    transition: transform .35s, -webkit-transform .35s;
    -webkit-transform: translate3d(0, 200%, 0);
    transform: translate3d(0, 200%, 0);
    text-align: center
}
.porto-ibe-style2:hover .porto-ibanner-content,
.porto-ibe-style2:hover .porto-ibanner-content * {
    opacity: 1!important;
    z-index: 99!important;
    -webkit-backface-visibility: hidden!important;
    backface-visibility: hidden!important
}
.porto-ibe-style2:hover .porto-ibanner-desc,
.porto-ibe-style2:hover .porto-ibanner-title {
    transform: translateY(0)
}
.porto-ibe-style2:hover .porto-ibanner-title {
    transition-delay: .05s
}
.porto-ibanner.porto-ibe-style2 .porto-ibanner-toggle-size {
    #{$left}: 50%;
    width: auto!important;
    height: 100%;
    max-width: none;
    @if $rtl == 1{
        transform: translateX(50%)
    }
    @else {
        transform: translateX(-50%)
    }
}

.porto-ibanner-layer {
    position: absolute;
    z-index: 10;
    > *:last-child {
        margin-bottom: 0;
    }
}
