.ucar-carousel {
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.ucar-carousel,
.ucar-carousel * {
    box-sizing: border-box;
}

.ucar-width-normal {
    width: 100%;
    max-width: 100%;
}

.ucar-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ucar-width-px {
    width: 100%;
    max-width: var(--ucar-width-px, 1000px);
    margin-left: auto;
    margin-right: auto;
}

.ucar-main {
    width: 100%;
    overflow: hidden;
    background: var(--ucar-bg, #111);
    border-radius: var(--ucar-radius, 0);
}

.ucar-height-fixed .ucar-main {
    height: var(--ucar-height-desktop, 460px);
}

.ucar-height-auto_first .ucar-main {
    height: auto;
    aspect-ratio: var(--ucar-aspect-ratio, 16 / 9);
}

.ucar-main .swiper-wrapper,
.ucar-main .swiper-slide {
    height: 100%;
}

.ucar-slide {
    position: relative;
    overflow: hidden;
    background: var(--ucar-bg, #111);
}

.ucar-media {
    display: block;
    width: 100%;
    height: 100%;
}

.ucar-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.ucar-image {
    display: block;
    width: 100%;
    height: 100%;
}

.ucar-fit-cover .ucar-image {
    object-fit: cover;
}

.ucar-fit-contain .ucar-image {
    object-fit: contain;
    background: var(--ucar-bg, #111);
}

.ucar-image-link {
    color: inherit;
    text-decoration: none;
}

.ucar-lightbox-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ucar-youtube-poster {
    border: 0;
    padding: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: #000;
    position: relative;
}

.ucar-youtube-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.ucar-play-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 32px;
}

.ucar-youtube-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.ucar-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 5;
    max-width: min(620px, calc(100% - 48px));
    padding: 20px 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 10px;
}

.ucar-caption-title {
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.ucar-caption-text {
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.7;
}

.ucar-caption-button {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.ucar-carousel .swiper-button-prev,
.ucar-carousel .swiper-button-next {
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
}

.ucar-carousel .swiper-button-prev::after,
.ucar-carousel .swiper-button-next::after {
    font-size: 19px;
    font-weight: 700;
}

.ucar-carousel .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.55;
}

.ucar-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}

.ucar-control {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 9;
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.ucar-thumbs {
    margin-top: 10px;
    overflow: hidden;
}

.ucar-thumb {
    width: 86px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    background: #111;
    position: relative;
}

.ucar-thumb.swiper-slide-thumb-active {
    opacity: 1;
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.ucar-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ucar-thumb span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
}

.ucar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.ucar-lightbox.is-open {
    display: flex;
}

.ucar-lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    display: block;
}

.ucar-lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 12px;
}

.ucar-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .ucar-height-fixed .ucar-main {
        height: var(--ucar-height-mobile, 280px);
    }

    .ucar-caption {
        left: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
        padding: 14px 16px;
    }

    .ucar-carousel .swiper-button-prev,
    .ucar-carousel .swiper-button-next {
        width: 38px;
        height: 38px;
    }

    .ucar-carousel .swiper-button-prev::after,
    .ucar-carousel .swiper-button-next::after {
        font-size: 16px;
    }

    .ucar-play-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .ucar-device-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .ucar-device-mobile {
        display: none !important;
    }
}

.wp-admin .ucar-admin-preview-wrap {
    max-width: 100%;
    overflow: hidden;
    padding: 12px 0;
}

.wp-admin .ucar-admin-preview-wrap .ucar-width-full {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
