  .yd-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.yd-carousel-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
}

.yd-carousel-slide.active {
    display: block;
}

.yd-carousel img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.yd-carousel-video iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.yd-carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.yd-carousel-next,
.yd-carousel-prev {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.yd-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}

.yd-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.yd-carousel-dot.active {
    background-color: var(--wp--preset--color--accent, #0073aa);
}

.yd-carousel-caption {
    text-align: center;
}