.images-carousel {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
    overflow: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.images-carousel img {
  opacity: 0.85; /* example */
  transition: opacity 0.3s ease;
}

.carousel-item:hover img {
  opacity: 1;
}

.images-carousel:active {
    cursor: grabbing;
}

.images-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    position: relative;
    display: block;
    flex-shrink: 0;
}

/* .images-carousel img {
    object-fit: cover;
    border-radius: 6px;
    display: block;
} */

.images-carousel img {
    object-fit: contain;
    border-radius: 6px;
    display: block;
    width: 100%;
    height: 100%;
}


.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*     background: rgba(255, 255, 255, 0.8); */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
}

.carousel-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Size variations for odd/even items */
.carousel-item:nth-of-type(odd) img {
    height: 39rem;
    width: 33rem;
}

.carousel-item:nth-of-type(even) img {
    height: 29rem;
    width: 23rem;
}

@media (max-width: 1024px) {
    .carousel-item:nth-of-type(odd) img {
        height: 35rem;
        width: 27rem;
    }

    .carousel-item:nth-of-type(even) img {
        height: 25rem;
        width: 19rem;
    }
}

@media (max-width: 500px) {
    .images-carousel {
        gap: 1.5rem;
    }

    .carousel-item:nth-of-type(odd) img {
        height: 30rem;
        width: 23rem;
    }

    .carousel-item:nth-of-type(even) img {
        height: 22rem;
        width: 15rem;
    }
    
    .portfolio-overlay {
        font-size: 1.2rem;
    }
}