/* ===== YIC Slide Frontend ===== */

.yic-slider-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 4px;
    user-select: none;
}

/* STATIC (single image) */
.yic-is-static .yic-slides { height: 100%; }
.yic-is-static .yic-slide { height: 100%; }
.yic-is-static .yic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SLIDER (multiple images) */
.yic-is-slider .yic-slides {
    position: relative;
    height: 100%;
}

/* ---- Fade ---- */
.yic-is-slider[data-transition="fade"] .yic-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--yic-anim-speed, 0.7s) ease;
    pointer-events: none;
}
.yic-is-slider[data-transition="fade"] .yic-slide.yic-active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Slide ---- */
.yic-is-slider[data-transition="slide"] .yic-slides {
    display: flex;
    transition: transform var(--yic-anim-speed, 0.6s) cubic-bezier(.4,0,.2,1);
    height: 100%;
}
.yic-is-slider[data-transition="slide"] .yic-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* Common slide */
.yic-slide {
    width: 100%;
    height: 100%;
}
.yic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yic-slide a {
    display: block;
    height: 100%;
}

/* Caption */
.yic-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    padding: 32px 24px 16px;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
}

/* Arrows */
.yic-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    line-height: 1;
    padding: 0;
}
.yic-arrow:hover {
    background: rgba(0,0,0,.75);
    transform: translateY(-50%) scale(1.05);
}
.yic-prev { left: 12px; }
.yic-next { right: 12px; }

/* Dots */
.yic-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.yic-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
    display: inline-block;
}
.yic-dot.yic-active, .yic-dot:hover {
    background: #fff;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 600px) {
    .yic-slider-wrap { border-radius: 0; }
    .yic-caption { font-size: 13px; }
    .yic-arrow { width: 36px; height: 36px; font-size: 14px; }
}
