
/* Container for the slider */

.slider-container {
    position: relative;
    max-height: 600px;      /* Adjust to your preferred width */ 
    overflow: hidden;
    margin: 0 -1.5rem;
}

/* Slider that holds all the images */

.slider {
    display: flex;           /* arrange slides in a row */
    transition: transform 0.4s ease-in-out; /* smooth sliding */
}




.prev, .next {
    position: absolute;
    top: 0;
    height: 100%; 
    width: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    user-select: none;
}

.prev {
    left: 0;
    background-size: contain; /* or 100% 100% */
    cursor: url("../arrow_left.png") 50 50, pointer;
}

.next {
    right: 0;
    background-size: contain; /* or 100% 100% */
    cursor: url("../arrow_right.png") 50 50, pointer;
}

.slider-images {
    position: relative;
}

.slider img {
    height: 600px;
    width: auto;
}

.slide {
    margin-left: 1rem;
    flex: 0 0 auto;          /* slide width based on image naturally */
    height: auto;            /* keep aspect ratio */
    object-fit: contain;     /* ensures image fits without cropping */
    border-radius: 0.5rem;
}

.slide.active {
    border-radius: 0.5rem;
}

.pagination {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    z-index: 3999;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    line-height: 100%;
    padding: 0.5rem 0.5rem 0.35rem 0.5rem;
    border-radius: 0.25rem;
    width: fit-content;
}





.hide {
    display: none;
}









@media (max-width: 600px) {

    .hero-project img {
        min-width: 100%;
        object-fit: cover;

    }

    .hero-project {
        height: 75vh;
        border-radius: 1rem;
    }

    .text p,
    .list ul li {
        font-size: 1.25rem;
        line-height: 1.5rem;
        hyphens: auto;
        hyphenate-limit-chars: auto 3;
        
    }

    figure ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .slider img {
    aspect-ratio: auto;
}


}