/**
 * Public styles for Immersive Background Ad plugin
 */


 .wp-site-blocks,
.wp-theme-twentytwentyfive .wp-site-blocks,
.wp-theme-twentytwentythree .wp-site-blocks,
#page{
    background: #fff;
    display: block;
    margin: 0px auto;
    max-width: 1360px;
    z-index: 11;
    position: relative;
}


.iba-background-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    text-decoration: none;
    z-index: -1; 
}

.iba-clickable {
    cursor: pointer;
    z-index: 9;
}

/* Slider styles */
.iba-slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Parallax styles */
.iba-shortcode-background-ad {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    min-height: 300px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.iba-parallax-background {
    background-attachment: fixed;
    transition: background-position 0.1s ease-out;
}

.iba-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
    text-decoration: none;
    z-index: -1;
    overflow: hidden;
}

.iba-slide-active {
    opacity: 1;
    z-index: 0;
}

/* Ken Burns effect styles */
.iba-ken-burns {
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    overflow: hidden;
}

.iba-ken-burns-in {
    animation-name: kenBurnsIn;
}

.iba-ken-burns-out {
    animation-name: kenBurnsOut;
}

.iba-ken-burns-left {
    animation-name: kenBurnsLeft;
}

.iba-ken-burns-right {
    animation-name: kenBurnsRight;
}

.iba-ken-burns-up {
    animation-name: kenBurnsUp;
}

.iba-ken-burns-down {
    animation-name: kenBurnsDown;
}

/* Ken Burns animations */
@keyframes kenBurnsIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes kenBurnsOut {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes kenBurnsLeft {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-3%, 0);
    }
}

@keyframes kenBurnsRight {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(3%, 0);
    }
}

@keyframes kenBurnsUp {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(0, -3%);
    }
}

@keyframes kenBurnsDown {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(0, 3%);
    }
}

.iba-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.iba-background-video,
.iba-youtube-container {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
}

.iba-youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shortcode specific styles */
.iba-shortcode-background-ad {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.iba-shortcode-background-ad .iba-background-video,
.iba-shortcode-background-ad .iba-youtube-container {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}
