/* Slideshow container is responsive: aspect ratio 16:9 */
.dashboard-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio, adjusts automatically */
}

/* Images stacked */
.dashboard-slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: contain;
}

/* Active slide */
.dashboard-slideshow img.active {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .dashboard-slideshow {
        padding-top: 75%; /* taller aspect ratio for small screens */
    }
}
