@property --color-rdg-carousel-btn-border {syntax: "<color>";inherits: true;initial-value: #A7A7A7;}
@property --color-rdg-carousel-date {syntax: "<color>";inherits: true;initial-value: #A7A7A7;}
@property --color-rdg-carousel-title {syntax: "<color>";inherits: true;initial-value: #275FA6;}

.rdg-blocks .rdg-carousel {
    
    p {
        margin: 0;
        padding: 0;
        font-family: 'Helvetica', sans-serif;
    }

    .wrapper {
        position: relative;
        padding: 0 64px;

        @media (max-width: 550px) {
            padding: 0;
        }

        .carousel-btn {
            border-radius: 50%;
            display: grid;
            place-content: center;
            border: 2px solid var(--color-rdg-carousel-btn-border);
            background-color: var(--color-white);
            width: 48px;
            height: 48px;
            position: absolute;
            top: 50%;

            @media (max-width: 550px) {
                display: none !important;
            }
        }

        .carousel-btn.left {
            left:0;
            display: none;
        }

        .carousel-btn.right {
            right: 0;
        }

        .carousel.dragging {
            cursor: grab;
            scroll-behavior: auto;

            .carousel-item {
                pointer-events: none;
            }
        }

        .carousel {
            display: flex;
            gap: 2rem;
            flex-wrap: nowrap;
            width: 100%;
            overflow: hidden;
            scroll-behavior: smooth;

            .carousel-item {
                min-width: 31%;
                width: calc(100% / 3);
                max-width: 400px;

                @media (max-width: 900px) {
                    min-width: 48%;
                    width: calc(100% / 2);
                    max-width: 400px;
                }

                @media (max-width: 550px) {
                    min-width: 100%;
                    width: 100%;
                    max-width: 100%;
                }

                .featured-img a img {
                    height: 225px;
                    object-fit: cover;
                    border-radius: 16px;
                    object-position: top;
                    margin-bottom: 8px;
                }

                .date {
                    color: var(--color-rdg-carousel-date);
                    font-size: 12px;
                    font-weight: 400;
                    line-height: normal;
                    margin-bottom: 12px;
                }

                .title {
                    color: var(--color-rdg-carousel-title);
                    font-size: 20px;
                    font-weight: 700;
                    line-height: normal;
                    text-decoration-line: underline;
                }

                .excerpt {
                    margin-top: 12px;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 24px; /* 171.429% */
                    letter-spacing: 0.14px;
                    line-clamp: 3;
                    -webkit-line-clamp: 3;
                    overflow: hidden;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                }
            }
        }
    }
}