.ionso-showcase-slider {
    position: relative;
    padding: clamp(32px, 8vw, 80px) 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 60%), #050505;
    color: #ffffff;
    overflow: hidden;
}

.ionso-showcase-slider.alignwide,
.ionso-showcase-slider.alignfull {
    width: 100%;
}

.ionso-showcase-slider__inner {
    margin: 0 auto;
    width: min(1200px, 100%);
    padding: 0 clamp(16px, 4vw, 64px);
}

.ionso-showcase-slider__swiper {
    width: 100%;
    position: relative;
}

.ionso-showcase-slider__swiper .swiper-wrapper {
    align-items: center;
    padding: clamp(16px, 4vw, 48px) 0;
}

.ionso-showcase-slider__swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-auto-flow: column;
    gap: clamp(16px, 3vw, 36px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.ionso-showcase-slider__swiper:not(.swiper-initialized) .swiper-slide {
    scroll-snap-align: center;
}

.ionso-showcase-slide {
    position: relative;
    width: clamp(240px, 32vw, 360px);
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: block;
}

.ionso-showcase-slide__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ionso-showcase-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    transform: scale(1.02);
}

.swiper-slide-active .ionso-showcase-slide__media img {
    transform: scale(1);
}

.ionso-showcase-slide__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.05) 10%, rgba(5, 5, 5, 0.75) 80%);
    opacity: 0.95;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.ionso-showcase-slide__content {
    position: absolute;
    inset-inline: clamp(18px, 4vw, 32px);
    bottom: clamp(18px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.ionso-showcase-slide__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.75;
}

.ionso-showcase-slide__headline {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.ionso-showcase-slide__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    background: rgba(11, 11, 11, 0.15);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(4px);
}

.ionso-showcase-slide__cta:hover,
.ionso-showcase-slide__cta:focus-visible {
    color: #0a0a0a;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.28);
}

.ionso-showcase-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(7, 7, 7, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
}

.ionso-showcase-slider__nav:after {
    font-size: 16px;
}

.ionso-showcase-slider__nav:hover,
.ionso-showcase-slider__nav:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    color: #050505;
    border-color: rgba(255, 255, 255, 0.95);
}

.ionso-showcase-slider__nav--prev {
    left: clamp(12px, 4vw, 48px);
}

.ionso-showcase-slider__nav--next {
    right: clamp(12px, 4vw, 48px);
}

.ionso-showcase-slider__pagination {
    position: absolute;
    left: 50%;
    bottom: clamp(8px, 4vw, 24px);
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.ionso-showcase-slider__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.42);
    opacity: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ionso-showcase-slider__pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.3);
}

@media (max-width: 960px) {
    .ionso-showcase-slider__nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .ionso-showcase-slider {
        padding: 28px 0 56px;
    }

    .ionso-showcase-slide {
        width: clamp(220px, 80vw, 320px);
        border-radius: 20px;
    }

    .ionso-showcase-slider__inner {
        padding-inline: clamp(12px, 6vw, 32px);
    }
}

/* Block editor adjustments */
.ionso-showcase-slider-editor {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.ionso-showcase-slider-editor__item {
    border: 1px solid #dcdfe5;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

.ionso-showcase-slider-editor__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ionso-showcase-slider-editor__actions {
    display: flex;
    gap: 6px;
}

.ionso-showcase-slider-editor__media {
    position: relative;
    border: 1px dashed #c3c6d0;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: repeating-linear-gradient(45deg, #f6f7fb, #f6f7fb 10px, #f0f1f7 10px, #f0f1f7 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 16px;
}

.ionso-showcase-slider-editor__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
