/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: 'Roboto Mono', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container - Full Screen Background */
main {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    min-height: -webkit-fill-available; /* iOS Safari */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    /* Safe area support for iOS devices with notches */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Studio Title - Top Left */
.studio-title {
    position: absolute;
    top: calc(100px + env(safe-area-inset-top));
    left: calc(50px + env(safe-area-inset-left));
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.studio-title .logo-mark {
    width: auto;
    height: 1.5rem;
    filter: brightness(0) invert(1);
    margin-bottom: 2rem;
    display: block;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Loading State */
main.loading {
    background-color: #1a1a1a;
}

/* Fallback State (when no images found) */
main.no-images {
    background-color: #0a0a0a;
    background-image: none;
}

main.no-images .studio-title {
    opacity: 0.9;
}
