.hhg-wrapper {
    display: flex;
    overflow-x: auto;
    padding-right: 6%;
    box-sizing: content-box;
}

.hhg-item {
    min-width: 300px;
    flex-shrink: 0;
}

.hhg-item a {
    text-decoration: none;
    color: inherit;
}

.hhg-image {
    position: relative;
    overflow: hidden;
}

.hhg-image img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Overlay text - FULL COVER by default */
.hhg-overlay {
    position: absolute;
    inset: 0; /* fully cover image */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;

    background: rgba(0,0,0,0.55);
    transition: all 0.4s ease;

    box-sizing: border-box;


    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Hover effects */
.hhg-item:hover img {
    filter: grayscale(0%);
}

.hhg-item:hover .hhg-overlay {
    inset: auto 0 0 0;   /* stick to bottom */
    height: auto;
    align-items: flex-end;
    justify-content: center;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0)
    );
    padding: 20px 15px;
}


/*arrow*/
.hhg-container {
    position: relative;
    height: fit-content;
    pointer-events: none;
}

/* Right-side scroll arrow */
.hhg-arrow {
    position: absolute;
    top: 0;
    right: 0;

    height: 100%;        /* same height as thumbnail */
    width: 104px;

    background: #D13A21;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;     /* vertical center */
    justify-content: center; /* horizontal center */

    color: #fff;
    font-size: 28px;
    font-weight: 600;

    z-index: 10;
    pointer-events: auto;
}


.hhg-container * {
    pointer-events: auto;
}

/* Optional hover polish */
.hhg-arrow:hover {
    background: #b8321c;
}


.hhg-wrapper {
    cursor: grab;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE & Edge */
    scrollbar-width: none;     /* Firefox */
     overscroll-behavior-x: contain;
}

.hhg-wrapper::-webkit-scrollbar {
    display: none;             /* Chrome, Safari */
}

.hhg-wrapper.dragging {
    cursor: grabbing;
}

/* Hide arrow on small screens (optional) */
@media (max-width: 768px) {
    .hhg-arrow {
        display: none;
    }
    .hhg-overlay {
        inset: auto 0 0 0;
        align-items: flex-end;
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.7),
            rgba(0,0,0,0)
        );
    }
    
}


