.imageslider {
    font-family: Arial, sans-serif;
    margin: 20px;
    margin-left: 100px;
    background-color: #f0f0f0;
}

.imageslider .thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s;
}

.imageslider .thumbnail:hover {
    transform: scale(1.05);
}

/* Modal styles */
.imageslider .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2002;
    justify-content: center;
    align-items: center;
}

.imageslider .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.imageslider .modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.imageslider .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.imageslider .close-btn:hover {
    color: #ff4444;
}

.imageslider .navigation-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.imageslider .arrow {
    font-size: 40px;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.imageslider .arrow:hover {
    color: #4CAF50;
}

.imageslider .thumbnail-container {
    margin-left: 8%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* overflow-x: auto; */
    padding: 10px 0;
    gap: 10px;
    margin-top: 10px;
}

.imageslider .thumbnail-container img {
    width: 80px;
    margin-left: 2%;
    align-items: center;
    height: 80px;
    padding: 0;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.imageslider .thumbnail-container img.active {
    opacity: 1;
    border: 2px solid #4CAF50;
}
