/* Styles for Slideshow Component */
.mySlides {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* kies wat past: 4/5, 3/4, 16/9, etc */
    max-height: 300px; /* optioneel: cap voor grote schermen */
    overflow: hidden;
    background: #f5f5f5; /* optioneel: maakt “lege” ruimte netjes */
}

.mySlides.is-active {
    display: flex;
}

/* Main image past altijd binnen de container */
.slideshow-container img.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* nooit uitrekken/croppen */
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Use transform for precise vertical centering */
    width: auto;
    padding: 16px;
    color: #fff; /* Changed to white for better visibility on dark backgrounds */
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    text-decoration: none; /* Remove underline for links */
    background-color: rgba(0, 0, 0, 0.5); /* Add default background for visibility */
    user-select: none;
}

.prev {
    left: 0; /* Explicitly set left position */
    border-radius: 0 3px 3px 0; /* Border-radius for left button */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px; /* Border-radius for right button */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 20px;
}

.demo {
    width: 60px;
    height: 80px;
    object-fit: cover; /* of contain als je geen crop wil */
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border-radius: 3px;
}

.demo:hover, .demo.active {
    opacity: 1;
}