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

html, body {
    height: 100%;
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

.image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height - accounts for mobile browser UI */
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    position: relative;
}

/* Visually hidden but accessible to screen readers and search engines */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.image-container img {
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh; /* Dynamic viewport height - accounts for mobile browser UI */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
