/* Wrapper for scroller and arrows */
.hz-scroller-wrapper-58b81ed4 {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Arrows */
.hz-arrow-58b81ed4 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: opacity 0.3s ease;
}

.hz-arrow-58b81ed4:hover,
.hz-arrow-58b81ed4:focus,
.hz-arrow-58b81ed4:active {
    opacity: 0.7;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.hz-arrow-58b81ed4.hz-disabled-58b81ed4 {
    opacity: 0.3;
    pointer-events: none;
}

.hz-arrow-prev-58b81ed4 {
    left: 20px;
}

.hz-arrow-next-58b81ed4 {
    right: 20px;
}

/* Arrow Lines */
.hz-arrow-58b81ed4::before,
.hz-arrow-58b81ed4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: #000;
    transition: background-color 0.3s;
}

.hz-arrow-prev-58b81ed4::before {
    transform: rotate(-45deg);
    top: 30%;
    left: 20%;
}

.hz-arrow-prev-58b81ed4::after {
    transform: rotate(45deg);
    bottom: 30%;
    left: 20%;
}

.hz-arrow-next-58b81ed4::before {
    transform: rotate(45deg);
    top: 30%;
    right: 20%;
}

.hz-arrow-next-58b81ed4::after {
    transform: rotate(-45deg);
    bottom: 30%;
    right: 20%;
}

/* Container for horizontal scroll */
.hz-scroller-58b81ed4 {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hz-scroller-58b81ed4::-webkit-scrollbar {
    display: none;
}

/* Track holding all items */
.hz-scroller-track-58b81ed4 {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start; /* Align to top to ensure consistent baseline for text */
    position: relative;
    width: max-content;
    padding-right: 5vw; /* give some breathing room at the end */
}

/* Individual scroller item */
.hz-scroller-track-58b81ed4 .hz-item-58b81ed4 {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* Keep above the line */
    height: 100%;
    width: max-content; /* Allow item to size based on its content (media) */
}

/* The Continuous Line */
/* Bound to the top position determined by hz-item-top height plus margin */
.hz-scroller-track-58b81ed4::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    /* This calculates the exact position based on the flex container's fixed top sections */
    /* It sits exactly between hz-item-top and hz-item-bottom */
    top: calc(var(--image-area-height, 60vh) + var(--divider-top-margin, 20px));
    transform: translateY(-50%);
    z-index: 0;
}

/* Media wrapper setup to enforce a consistent height */
.hz-scroller-track-58b81ed4 .hz-item-top-58b81ed4 {
    display: flex;
    align-items: flex-end; /* Push smaller images/videos down to meet the line */
    height: var(--image-area-height, 60vh);
    margin-bottom: var(--divider-top-margin, 20px);
}

.hz-scroller-track-58b81ed4 .hz-media-58b81ed4 {
    height: 100%;
    /* No fixed width here, allow it to dictate the width */
}

.hz-scroller-track-58b81ed4 .hz-media-58b81ed4 img,
.hz-scroller-track-58b81ed4 .hz-media-58b81ed4 video {
    height: 100%;
    width: auto; /* Width becomes proportional to height */
    max-width: none;
    object-fit: contain; /* Ensure it stays within bounds without cropping */
    display: block;
}

/* Content block setup */
.hz-item-bottom-58b81ed4 {
    padding-top: var(--divider-bottom-margin, 20px);
}

/* Ensure the content area does not exceed the width of the media */
.hz-scroller-track-58b81ed4 .hz-item-58b81ed4 {
    /* Use grid to make children respect the max-content width defined by the image */
    display: grid;
    grid-template-rows: auto 1fr;
}

.hz-scroller-track-58b81ed4 .hz-content-58b81ed4 {
    width: 100%;
    /* This is key: prevent the text from dictating the grid item's width */
    min-width: 0; 
    max-width: 100%;
}

.hz-scroller-track-58b81ed4 .hz-title-58b81ed4 {
    margin: 0 0 10px 0;
    /* Ensure long words break if necessary */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hz-scroller-track-58b81ed4 .hz-desc-58b81ed4 {
    margin: 0;
    /* Ensure long words break if necessary */
    word-wrap: break-word;
    overflow-wrap: break-word;
}