.cbpc-carousel {
    margin: 2rem auto;
    max-width: 980px;
    clear: both;
}

.cbpc-carousel.alignwide {
    max-width: 1180px;
}

.cbpc-carousel.alignfull {
    max-width: none;
    width: 100%;
}

.cbpc-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff4d3 0%, #ffe1a3 100%);
    border: 2px solid rgba(75, 36, 21, 0.18);
    box-shadow: 0 14px 34px rgba(45, 20, 8, 0.16);
}

.cbpc-no-arrows .cbpc-shell {
    grid-template-columns: minmax(0, 1fr);
}

.cbpc-viewport {
    overflow: hidden;
    border-radius: 18px;
    background: #2f160d;
    outline: none;
}

.cbpc-viewport:focus-visible {
    box-shadow: 0 0 0 4px rgba(213, 150, 24, 0.55);
}

.cbpc-track {
    display: flex;
    transition: transform 260ms ease;
    will-change: transform;
}

.cbpc-slide {
    min-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #2f160d;
}

.cbpc-image {
    width: 100%;
    height: min(62vw, 620px);
    max-height: 620px;
    min-height: 280px;
    object-fit: contain;
    display: block;
    background: #2f160d;
}

.cbpc-height-tall .cbpc-image {
    height: min(78vw, 760px);
    max-height: 760px;
}

.cbpc-height-square .cbpc-image {
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
    min-height: 0;
}

.cbpc-height-natural .cbpc-image {
    height: auto;
    max-height: none;
    min-height: 0;
}

.cbpc-caption {
    padding: 11px 14px;
    color: #fff6dc;
    background: rgba(47, 22, 13, 0.96);
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.cbpc-arrow {
    width: 44px;
    height: 62px;
    border-radius: 999px;
    border: 2px solid rgba(75, 36, 21, 0.35);
    background: #4b2415;
    color: #fff4d3;
    font-size: 2.3rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 150ms ease, background 150ms ease;
}

.cbpc-arrow:hover,
.cbpc-arrow:focus-visible {
    background: #8b1e16;
    transform: translateY(-1px);
}

.cbpc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
}

.cbpc-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #4b2415;
    background: #fff4d3;
    cursor: pointer;
    padding: 0;
}

.cbpc-dot.is-active {
    background: #8b1e16;
}

@media (max-width: 720px) {
    .cbpc-carousel {
        margin: 1.4rem auto;
    }

    .cbpc-shell {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 8px;
    }

    .cbpc-arrow {
        position: absolute;
        z-index: 2;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 52px;
        background: rgba(75, 36, 21, 0.86);
    }

    .cbpc-arrow:hover,
    .cbpc-arrow:focus-visible {
        transform: translateY(-50%);
    }

    .cbpc-arrow-prev {
        left: 14px;
    }

    .cbpc-arrow-next {
        right: 14px;
    }

    .cbpc-image {
        height: min(80vw, 520px);
        min-height: 230px;
    }

    .cbpc-height-square .cbpc-image,
    .cbpc-height-natural .cbpc-image {
        height: auto;
        min-height: 0;
    }
}
