* {
    /* margin: 0; */
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #272727;
}

.carousel [role='list'] {
    padding: 0;
    list-style: none;
}

.carousel {
    width: 100vw;
    max-width: 40ch;
}

.carousel-scroll-container {
    /* Enable horizontal scrolling */
    overflow-x: auto;
    /* Enable horizontal scroll snap */
    scroll-snap-type: x mandatory;
    /* Smoothly snap from one focal point to another */
    scroll-behavior: smooth;
}

.carousel-media {
    /* Arrange media horizontally */
    display: flex;
    margin:0;
}

.carousel-item {
    /* Limit the height of each media item */
    /* height: 245px; */
    width: 100vw;
    max-width: 40ch;
    /* Prevent media from shrinking */
    flex-shrink: 0;
    /* The focal point for each item is the center */
    scroll-snap-align: center;
}

.carousel-item:first-of-type {
    /* Allow users to fully scroll to the start */
    scroll-snap-align: start;
}

.carousel-item:last-of-type {
    /* Allow users to fully scroll to the end */
    scroll-snap-align: end;
}

.carousel-item>*,
.carousel-item :is(picture, figure, img) {
    height: 100%;
    width: 100%;
}

.carousel-item img {
    /* Remove line height (typically done in a CSS reset) */
    display: block;
    /* Responsive width based on aspect ratio */
    /* width: auto; */
    object-fit: cover;
    object-position: center;
}

/* ------------------- */
.carousel {
    position: relative;
    margin-bottom: 70px;
}

.carousel-control {
    --offset-x: 0;
    cursor: pointer;
    /* Anchor the controls relative to the outer wrapper */
    position: absolute;
    /* Center the controls vertically */
    top: 110%;
    transform: translateY(-50%);
    background-color: transparent;
    border:none;
}

/* Don't allow icons to be event targets */
.carousel-control * {
    pointer-events: none;
}

.carousel-control[data-direction='start'] {
    /* Same as left in LTR and right in RTL */
    inset-inline-start: var(--offset-x);
}

.carousel-control[data-direction='end'] {
    /* Same as right in LTR and left in RTL */
    inset-inline-end: var(--offset-x);
}

.carousel-control[aria-disabled='true'] {
    filter: opacity(0.5);
    cursor: not-allowed;
}