/* =========================================================
   DPRTE Ad Slideshow — Front-end styles
   ========================================================= */

/* Wrapper: acts as the fixed-size stage */
.dprte-ad-slideshow {
    position: relative;
    width: 100%;
    height: 250px;          /* overridden by Elementor height control */
    overflow: hidden;
    background-color: #000; /* overridden by Elementor color control */
}

/* Each ad slide sits on top of one another */
.dprte-ad-item {
    position: absolute;
    inset: 0;               /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Transition duration is set inline from JS using data-transition */
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    /* Prevent pointer events on hidden slides so links don't interfere */
    pointer-events: none;
}

/* The visible / active slide */
.dprte-ad-item.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Link fills the entire slide area */
.dprte-ad-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Image fills the slide; object-fit is controlled by Elementor selector */
.dprte-ad-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* default — overridden by Elementor image-fit control */
}

/* "No active ads" message */
.dprte-no-ads {
    text-align: center;
    padding: 1em;
    color: #888;
    font-style: italic;
    margin: 0;
}
