* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    cursor: pointer;
    position: relative;
}

.container img {
    max-width: 100vw;
    max-height: 80vh;
    min-width: 300px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 400ms ease-in;
}

.container img.loaded {
    opacity: 1;
}

.alt-text {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1rem;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.alt-text.visible {
    opacity: 1;
}
