.rhpc-carousel-wrap {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    padding: 0 48px;
}

.rhpc-carousel-wrap *,
.rhpc-carousel-wrap *::before,
.rhpc-carousel-wrap *::after {
    box-sizing: border-box;
}

.rhpc-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.rhpc-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 260ms ease;
    will-change: transform;
}

.rhpc-carousel-slide {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 10px;
}

.rhpc-carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rhpc-carousel-card:hover,
.rhpc-carousel-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.rhpc-carousel-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    overflow: hidden;
}

.rhpc-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rhpc-carousel-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eeeeee, #d8d8d8);
}

.rhpc-carousel-title {
    margin: 0;
    padding: 14px 16px 18px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: inherit;
}

.rhpc-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    font-size: 28px;
    line-height: 1;
}

.rhpc-carousel-arrow:hover,
.rhpc-carousel-arrow:focus {
    background: #f5f5f5;
    color: #111111;
}

.rhpc-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.rhpc-carousel-arrow-prev {
    left: 0;
}

.rhpc-carousel-arrow-next {
    right: 0;
}

@media (max-width: 900px) {
    .rhpc-carousel-slide {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .rhpc-carousel-wrap {
        padding: 0 42px;
    }

    .rhpc-carousel-slide {
        flex-basis: 100%;
        max-width: 100%;
        padding: 0 6px;
    }

    .rhpc-carousel-title {
        font-size: 17px;
    }
}
