.wp-block-gutenberg-test-image-slider {
    padding: clamp(2rem, 5vw, 4rem) var(--container-padding);
}

/* Editor styles */
.wp-block-gutenberg-test-image-slider .image-slider-editor {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.wp-block-gutenberg-test-image-slider .image-slider-preview {
    background: var(--color-white);
    border-radius: 8px;
    padding: clamp(1.25rem, 4vw, 1.5rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-block-gutenberg-test-image-slider .image-slider-controls {
    margin-bottom: 1rem;
    text-align: right;
}

.wp-block-gutenberg-test-image-slider .image-slider-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.wp-block-gutenberg-test-image-slider .image-slider-item {
    position: relative;
}

.wp-block-gutenberg-test-image-slider .image-slider-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.wp-block-gutenberg-test-image-slider .remove-image-button {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: white;
}

/* Frontend styles */
.wp-block-gutenberg-test-image-slider .image-slider {
    max-width: var(--container-max-width);
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.wp-block-gutenberg-test-image-slider .swiper {
    width: 100%;
    margin: 0 auto;
}

.wp-block-gutenberg-test-image-slider .swiper-wrapper {
    align-items: center;
}

.wp-block-gutenberg-test-image-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.wp-block-gutenberg-test-image-slider .swiper-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.wp-block-gutenberg-test-image-slider .swiper-button-prev,
.wp-block-gutenberg-test-image-slider .swiper-button-next {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.wp-block-gutenberg-test-image-slider .swiper-button-prev:hover,
.wp-block-gutenberg-test-image-slider .swiper-button-next:hover {
    transform: scale(1.1);
}

.wp-block-gutenberg-test-image-slider .swiper-button-prev:after,
.wp-block-gutenberg-test-image-slider .swiper-button-next:after {
    font-size: 1.5rem;
    font-weight: bold;
}

.wp-block-gutenberg-test-image-slider .swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.5;
}

.wp-block-gutenberg-test-image-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .wp-block-gutenberg-test-image-slider .swiper-slide {
        max-height: 60vh;
    }

    .wp-block-gutenberg-test-image-slider .swiper-slide img {
        max-height: 60vh;
    }

    .wp-block-gutenberg-test-image-slider .swiper-button-prev,
    .wp-block-gutenberg-test-image-slider .swiper-button-next {
        display: none;
    }
}