.dcgc-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: var(--dcgc-active-carousel-height, var(--dcgc-carousel-height, 500px));
    overflow: hidden;
    --dcgc-active-carousel-height: var(--dcgc-carousel-height, 70vh);
}

.dcgc-carousel__viewport {
    overflow: hidden;
    width: 100%;
    height: var(--dcgc-active-carousel-height, var(--dcgc-carousel-height, 70vh));
    min-height: var(--dcgc-active-carousel-height, var(--dcgc-carousel-height, 500px));
}

.dcgc-carousel__track {
    display: flex;
    height: 100%;
    transition: transform 320ms ease;
    will-change: transform;
}

.dcgc-carousel__slide {
    flex: 0 0 100%;
    height: 100%;
    min-width: 100%;
    min-height: var(--dcgc-active-carousel-height, var(--dcgc-carousel-height, 500px));
    background-size: var(--dcgc-carousel-fit, cover) !important;
    background-position: var(--dcgc-carousel-position, center center) !important;
    background-repeat: no-repeat !important;
}

.dcgc-carousel__image {
    display: none;
}

.dcgc-carousel--auto-height .dcgc-carousel__viewport,
.dcgc-carousel--auto-height .dcgc-carousel__track,
.dcgc-carousel--auto-height .dcgc-carousel__slide {
    height: auto;
}

.dcgc-carousel--auto-height .dcgc-carousel__image {
    height: auto;
}

.dcgc-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.dcgc-carousel__arrow span {
    display: block;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-2px);
}

.dcgc-carousel__arrow--prev {
    left: 14px;
}

.dcgc-carousel__arrow--next {
    right: 14px;
}

.dcgc-carousel__arrow:hover,
.dcgc-carousel__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.78);
}

.dcgc-carousel__dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dcgc-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.dcgc-carousel__dot.is-active,
.dcgc-carousel__dot:hover,
.dcgc-carousel__dot:focus-visible {
    background: #fff;
}

.dcgc-empty {
    padding: 12px;
    border: 1px dashed currentColor;
    opacity: 0.7;
}

.dcgc-empty--builder {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
}

@media (max-width: 980px) {
    .dcgc-carousel {
        --dcgc-active-carousel-height: var(--dcgc-carousel-height-tablet, var(--dcgc-carousel-height, 70vh));
    }
}

@media (max-width: 767px) {
    .dcgc-carousel {
        --dcgc-active-carousel-height: var(--dcgc-carousel-height-phone, var(--dcgc-carousel-height-tablet, var(--dcgc-carousel-height, 70vh)));
    }

    .dcgc-carousel__arrow {
        width: 36px;
        height: 36px;
    }

    .dcgc-carousel__arrow--prev {
        left: 8px;
    }

    .dcgc-carousel__arrow--next {
        right: 8px;
    }
}
