body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: black;
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

h1, h3 {
    margin: 0.2em 0;
    line-height: 1.1;
    font-size: clamp(1.2rem, 5vw, 2.2rem);
}

#slideCounter {
    font-size: clamp(1rem, 4vw, 1.8rem);
}

#slideshow {
    position: relative;
    width: 92vw;
    height: 65vh;          /* ← key: leave room for header + button */
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#slideshow img {
    max-width: 100%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    object-fit: contain;
}

figcaption {
    margin-top: 8px;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: bold;
}

#start {
    font-size: clamp(1.2rem, 5vw, 2rem);
    padding: 12px 28px;
    margin-bottom: 200px;
    background: #ff9900;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

#start:hover { background: #cc6600; }

#pauseOverlay {
    font-size: clamp(80px, 20vw, 180px);
}

/* Portrait phones & small screens */
@media (max-width: 600px) and (orientation: portrait) {
    #slideshow { height: 55vh; }
    h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
}

/* Landscape phones/tablets */
@media (orientation: landscape) and (max-height: 500px) {
    #slideshow { height: 70vh; }
    h1, #start { margin: 8px 0; }
}
    