/* ── Image Slider Block – Frontend Styles ───────────────────────────────────── */

.wp-block-ak-image-slider {
    position: relative;
    width: 100%;
    /* Height is set via the inline style output by save() (the Height attribute).
       min-height is a fallback for legacy blocks that pre-date the attribute. */
    min-height: 200px;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 4px;
}

/* ── Slides ─────────────────────────────────────────────────────────────────── */

.ak-slider-track {
    position: absolute;
    inset: 0;
}

.ak-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.ak-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ak-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Full-width / wide alignment ─────────────────────────────────────────────── */

/* Remove border-radius for edge-to-edge layouts.
   Exact width/margin corrections are applied in view.js via inline styles,
   which always win over WordPress's dynamically-generated layout CSS. */
.wp-block-ak-image-slider.alignfull,
.wp-block-ak-image-slider.alignwide {
    border-radius: 0;
}

/* ── Dot Indicators ─────────────────────────────────────────────────────────── */

.ak-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.ak-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.ak-dot:hover {
    background: rgba(255, 255, 255, 0.70);
}

.ak-dot.is-active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.25);
}
