﻿.image-container {
    position: relative;
    width: 100%;
    max-width: fit-content;
    height: auto;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 20px;
    border-width: 0px;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

    .image-overlay h1 {
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        text-align: center;
    }

/* Tablet and smaller */
@media (max-width: 768px) {
    .image-container {
        aspect-ratio: 21 / 9;
    }

    .image-overlay {
        padding: 15px;
        font-size: 0.9rem;
    }

    .image-overlay input,
    .image-overlay select,
    .image-overlay button {
        font-size: 0.9rem;
        padding: 6px 10px !important;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .image-container {
        aspect-ratio: 16 / 9;
    }

    .image-overlay {
        padding: 10px;
        font-size: 0.75rem;
    }

    .image-overlay h1 {
        font-size: 1.5rem;
    }

    .image-overlay input,
    .image-overlay select,
    .image-overlay button {
        font-size: 0.75rem;
        padding: 4px 8px !important;
        min-height: auto;
    }

    .image-overlay label {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
}
