.jkkp-slider-block {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Support for wide and full-width alignment */
.jkkp-slider-block.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.jkkp-slider-block.alignfull {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.jkkp-slider-aspect-ratio-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.jkkp-slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.jkkp-slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.jkkp-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.jkkp-slider-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.jkkp-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jkkp-slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.7) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0) 100%
    );
    z-index: 2;
}

.jkkp-slider-text {
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
}

.jkkp-slider-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.jkkp-slider-link:hover {
    background-color: #005177;
    color: white;
}

/* Updated bullet indicators styles */
.jkkp-slider-bullets {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.jkkp-slider-bullet {
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.jkkp-slider-bullet:hover {
    transform: scale(1.2);
}

.jkkp-slider-bullet.active {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .jkkp-slider-overlay {
        padding: 25px;
    }
    
    .jkkp-slider-bullets {
        right: 15px;
        gap: 8px;
    }
}

@media screen and (max-width: 768px) {
    .jkkp-slider-overlay {
        padding: 20px;
    }
    
    .jkkp-slider-bullets {
        right: 10px;
        gap: 6px;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .jkkp-slider-overlay {
        padding: 15px;
    }
    
    .jkkp-slider-bullets {
        right: 8px;
        gap: 5px;
        padding: 6px;
    }
    
    .jkkp-slider-link {
        padding: 6px 12px;
    }
}

/* Editor-specific styles */
.wp-block-jkkp-slider-slider-block {
    margin-left: auto;
    margin-right: auto;
}

.jkkp-responsive-control {
    margin-bottom: 24px;
}

.jkkp-responsive-control__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.jkkp-responsive-control__devices {
    display: flex;
    gap: 4px;
}

.jkkp-responsive-control__devices button {
    padding: 2px !important;
    min-width: 24px !important;
    height: 24px !important;
}

.jkkp-color-control {
    margin-bottom: 24px;
}

.jkkp-color-control__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.jkkp-color-control__indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
}

.jkkp-color-control__tabs {
    min-width: 260px;
}