.wp-image-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 450px;
}

.wp-image-slider:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.wp-image-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    gap: 15px;
    padding: 0px;
}

.wp-image-slider-slide {
    position: relative;
    width: calc(50% - 7.5px);
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
    background-position: center;
    background-repeat: no-repeat !important;
    background-size: cover;
    flex-shrink: 0;
}

/* Remove the img styles since we're using background images */
.wp-image-slider-slide img {
    display: none;
}

.wp-image-slider-slide.active {
    opacity: 1;
    display: block;
}

.wp-image-slider-prev,
.wp-image-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}

.wp-image-slider-prev {
    left: 10px;
}

.wp-image-slider-next {
    right: 10px;
}

.wp-image-slider-prev:hover,
.wp-image-slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.wp-image-slider-prev:focus,
.wp-image-slider-next:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wp-image-slider-slide {
        width: 100%;
    }
    
    .wp-image-slider-wrapper {
        gap: 0;
        padding: 0;
    }
    
    .wp-image-slider-prev,
    .wp-image-slider-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Animation for slide transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.wp-image-slider-slide.active {
    animation: fadeIn 0.5s ease-in-out forwards;
}

.wp-image-slider-slide:not(.active) {
    animation: fadeOut 0.5s ease-in-out forwards;
}

.wp-image-slider-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}

.wp-image-slider-edit:hover {
    background: rgba(0, 0, 0, 0.7);
}

.wp-image-slider-edit:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wp-image-slider-edit .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wp-image-slider-edit {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .wp-image-slider-edit .dashicons {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
} 