/*
 * Cycle Responsive Slider - Frontend Styles
 * Caption slide-up on hover, matching v1.2.1 behavior
 */

/* Outer slider container */
.caza-wp-cycle-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Each slide wrapper needs relative+overflow so caption can slide up */
.caza-wp-cycle-slider>div {
    position: relative;
    overflow: hidden;
}

/* Images: max-width prevents overflow, but respects HTML width/height attributes so the
   container never collapses to 0x0 (unlike width:100% which creates a circular dependency
   when the parent has no explicit width). */
.caza-wp-cycle-slider img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Caption: hidden below the bottom edge initially */
.caza-wp-cycle-slider .cycle-caption {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    transition: bottom 0.35s ease-in-out;
    z-index: 99;
}

/* Slide caption up on hover of the individual slide div */
.caza-wp-cycle-slider>div:hover .cycle-caption {
    bottom: 0;
}