/* CSS for the background container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: black; /* Set background color to black */
    display: flex;
    flex-wrap: wrap;
}

.background-image {
    position: relative;
    flex: 0 0 auto; /* Prevent images from shrinking or growing */
    min-width: 0; /* Allow images to shrink beyond their intrinsic width */
    height: auto; /* Allow images to adjust their height based on aspect ratio */
    background-size: contain; /* Ensure the entire image is visible */
    background-repeat: no-repeat;
}

.caption {
    display: none;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 5px;
}

.background-image:hover .caption {
    display: block;
}