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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background: #f5f5f5;
}

/* Navigation (used on all pages) */
.site-header {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0.8rem 1rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Home hero image */
.hero {
    height: 100vh;
    background-image: url("img/header-marinadittrich.png"); /* <- your image */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Slight dark overlay so links / text pop if needed later */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* Content pages */
.page {
    max-width: 900px;
    margin: 5rem auto 3rem; /* leave room for fixed nav */
    padding: 0 1.5rem 3rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.page h1 {
    margin: 1.5rem 0 0.75rem;
    font-size: 2rem;
}

.page h2 {
    margin: 1.5rem 0 0.5rem;
}

.page p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Make nav stack on small screens */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }
}

/* --- Art Gallery Grid --- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gallery img:hover {
    transform: scale(1.03);
}

/* --- Lightbox Viewer --- */

.lightbox {
    display: none; /* hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* Keeps full image in view */
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
}

.biographie-bg {
    background-image: url("https://marinadittrich.com/MarinaArt/AnAlisdair.JPG");
    background-size: cover;      /* fill the screen */
    background-position: center; /* focus image center */
    background-attachment: fixed; /* smooth parallax effect */
    background-repeat: no-repeat;
}

.art-bg {
    background-image: url("https://marinadittrich.com/MarinaArt/Connection.JPG");
    background-size: cover;      /* fill the screen */
    background-position: center; /* focus image center */
    background-attachment: fixed; /* smooth parallax effect */
    background-repeat: no-repeat;
}

.illustrationen-bg {
    background-image: url("https://marinadittrich.com/MarinaArt/Thinking.JPG");
    background-size: cover;      /* fill the screen */
    background-position: center; /* focus image center */
    background-attachment: fixed; /* smooth parallax effect */
    background-repeat: no-repeat;
}

.originaldrucke-bg {
    background-image: url("https://marinadittrich.com/MarinaArt/Use it.JPG");
    background-size: cover;      /* fill the screen */
    background-position: center; /* focus image center */
    background-attachment: fixed; /* smooth parallax effect */
    background-repeat: no-repeat;
}

/* Lightbox Navigation Controls */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 1rem;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.6);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    position: relative;
    width: 90vw;         /* 90% of viewport width */
    height: 90vh;        /* 90% of viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-caption {
    position: absolute;
    bottom: 2vh;                     /* always in view */
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 6px;
    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
    pointer-events: none;
    z-index: 10;
}
