/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

/* Title */
.title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
    margin: 0;
    letter-spacing: 0.05em;
}

/* Image container */
.image-container {
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Loading state */
.image-container.loading {
    min-height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container.loading::before {
    content: "Loading...";
    color: #999;
    font-size: 1rem;
}

/* Contact links */
.contact {
    margin-top: 1rem;
}

.contact a {
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.contact a:hover {
    color: #666;
    text-decoration: underline;
}

.contact .separator {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0 0.5rem;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .image-container {
        max-width: 95vw;
        max-height: 75vh;
    }
}

/* Portrait orientation on mobile - prioritize height */
@media (max-width: 768px) and (orientation: portrait) {
    .image-container {
        max-width: 95vw;
        max-height: 60vh;
    }
}

/* Landscape orientation on mobile - prioritize width */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .image-container {
        max-width: 85vw;
        max-height: 70vh;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .image-container {
        max-width: 98vw;
        max-height: 65vh;
    }
}
