.slider{
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.slider .list{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
}
.slider .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: 1s;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}
.slider .list .item .content{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100px;
    width: 500px;
    color: #fff;
    text-shadow: 0 5px 10px #000;
}
.slider .list .item .content p{
    font-size: 1.2em;
    letter-spacing: 5px;
}
.slider .list .item .content h2{
    font-size: 5em;
    margin: 0;
}
.slider .arrows{
    position: absolute;
    top: 80%;
    right: 50px;
    z-index: 10;
}
.slider .arrows button{
    background-color: #eee4;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: 1.5em;
    color: #eee;
    cursor: pointer;
    margin: 0 5px;
}
.thumbnail{
    position: absolute;
    bottom: 20px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 150px; /* Adjusted height for better visibility */
    padding: 0 50px;
    box-sizing: border-box;
    overflow-x: auto; /* Changed to overflow-x for horizontal scrolling */
    justify-content: center;
}
.thumbnail::-webkit-scrollbar {
    height: 8px;
}
.thumbnail::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.thumbnail::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.thumbnail .item{
    width: 120px;
    height: 100%; /* Adjusted to fill the thumbnail container height */
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.thumbnail .item.active{
    filter: brightness(1); /* Changed to 1 for full brightness */
    border: 2px solid #fff; /* Added a border to active thumbnail */
}
.thumbnail .item .content{
    position: absolute;
    inset: auto 10px 10px 10px;
    color: #fff;
    font-size: 0.8em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}
@media screen and (max-width: 768px) {
    .slider .list .item .content{
        left: 50px;
        width: calc(100% - 100px);
    }
    .slider .list .item .content h2{
        font-size: 3em;
    }
    .slider .arrows{
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
    }
    .slider .arrows button{
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
    .thumbnail{
        height: 100px;
        padding: 0 20px;
    }
    .thumbnail .item{
        width: 80px;
    }
}
@media screen and (max-width: 480px) {
    .slider .list .item .content{
        left: 20px;
        width: calc(100% - 40px);
    }
    .slider .list .item .content h2{
        font-size: 2em;
    }
    .slider .list .item .content p{
        font-size: 0.9em;
    }
    .thumbnail{
        height: 80px;
        padding: 0 10px;
    }
    .thumbnail .item{
        width: 60px;
    }
}