*,
*:after,
*:before {
    margin: 0;
    padding: 0;
}

body {
    margin: 1rem;
    background-color: #f5f5f4;
}

.horizontal-line {
    height: 7px;
    width: auto;
    background-color: black;
    border-radius: 50px; /* Makes the line ends rounded */
    margin: 1rem 0;
}

a {
    color: currentColor;
    text-decoration: none;
}

.title, .splash-title {
    font-family:'American Typewriter Condensed Bold';
    text-align: center;
    font-size: 3rem;
    line-height: 100%;
}

.title {
    color: black;
}

/* SPLASH SCREEN */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 19; /* On top of everything */
}

.splash-title {
    color: white;
    position: fixed;
    top: 1rem;
}

.horizontal-line-splash {
    height: 7px;
    background-color: white;
    border-radius: 50px; 
    z-index: 25;
    position: fixed;
    top: 5rem;
    left: 1rem;
    right: 1rem;
}

#splash-screen img {
    max-width: 60%;
    max-height: 60%;
    border-radius: 30px;
    -webkit-filter: grayscale(100%) contrast(50%) blur(1px); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%) contrast(50%) blur(1px);
}



/* HOME */

.menu {
    margin-bottom: 1rem;
    text-align: center;
    font-family: "Averia Libre", serif;
    font-weight: 300;
    font-style: normal;
    text-transform: uppercase;
}

.menu-item a {
    color: black; 
    padding: 0 0.5rem;
    background-color: #f5f5f4;
    display: inline-block; 
    border-radius: 10px;
    padding: 0 0.5rem;
    margin: 0 0.2rem 0.5rem 0; 
    transition: background-color 0.3s ease; 
  }
  
.menu-item a:hover {
    color: #f5f5f4;
    background-color: black;
    display: inline-block; 
    border-radius: 10px;
    padding: 0 0.5rem;
    margin: 0 0.2rem 0.5rem 0; 
}

.back-to-home {
    font-family: Arial, Helvetica, sans-serif;
    position: fixed; 
    top: 0.7rem;
    left: 1rem;
    font-size: 3rem;
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    z-index: 2;
    transition: transform 0.2s ease; /* Transition for the movement */
}
  
.back-to-home:hover {
    transform: translateY(3px); /* Moves the link 3px down */
    /* Keeps the background black and text white */
}

.content {
    margin-bottom: 1rem;
}


img {
    width: 100%;
}

.arbeiten-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    grid-gap: 1rem;
}

.arbeiten-overview img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease-in-out;
    -webkit-filter: grayscale(100%) contrast(50%) blur(1px); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%) contrast(50%) blur(1px);
    border-radius: 30px;
}

.arbeiten-overview li:hover img {
    -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    filter: grayscale(0%);
}

/* MODAL OVERLAY */


.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; 
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 1rem; /* Added top padding for close button */
    border-radius: 30px;
    position: relative;
    max-width: 500px;
    width: 80%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


.close-btn, .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: black;
    transition: transform 0.2s ease; 
}

.close-btn:hover, .close-modal:hover {
    transform: translateY(-3px); 
}

.modal-title {
    font-family: 'American Typewriter Condensed Bold';
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid black; /* Horizontal line under title */
    padding-bottom: 0.5rem;
}

.datenschutz-und-impressum {
    margin: 1rem 0 0 0;
    text-align: center;
    font-family: "Averia Libre", serif;
    font-weight: 300;
    font-style: normal;
    text-transform: uppercase;
}

.datenschutz-und-impressum a {
    color: black; 
    padding: 0 0.5rem;
    background-color: #f5f5f4;
    display: inline-block; 
    border-radius: 10px;
    padding: 0 0.5rem;
    margin: 0 0.2rem 0.5rem 0; 
    transition: background-color 0.3s ease; 
  }
  
.datenschutz-und-impressum a:hover {
    color: #f5f5f4;
    background-color: black;
    display: inline-block; 
    border-radius: 10px;
    padding: 0 0.5rem;
    margin: 0 0.2rem 0.5rem 0; 
}


/* ARBEITEN */

.images-roll {
    display: flex;
    overflow-x: auto;
    margin: 0 0 1rem 0;
}

.images-roll img {
    max-height: 300px; /* Adjust height as needed */
    width: auto;      /* Maintain aspect ratio */
    margin-right: 1rem; /* Add spacing between images */
    object-fit: cover; /* Optional: crop if needed */
    border-radius: 30px; /* Optional: rounded corners */
}

.details {
    font-family:'American Typewriter Regular';
    position: relative;
    text-align: center;
    margin: 0;
}

.exhibition-title {
    font-family:'American Typewriter Bold';
}

.credits {
    display: inline-block;
    text-align: center;
    align-items: center;
}

.credits-name {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    letter-spacing: -0.04em;
    padding-right: 0.5rem;
}

.ausstellungslinks {
    font-family:'American Typewriter Regular';
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.external-link {
    font-family:'American Typewriter Regular';
    color: #f5f5f4;
    background-color: black;
    display: inline-block; 
    border-radius: 10px;
    padding: 0 0.5rem;
    margin: 0 0.2rem 0.5rem 0;
    transition: transform 0.2s ease; /* Transition for the movement */
}

.external-link:hover {
    transform: translateY(3px); /* Moves the link 3px down */
    /* Keeps the background black and text white */
}

.horizontal-line2 {
    height: 2px;
    width: auto;
    background-color: black;
    border-radius: 5px; /* Makes the line ends rounded */
}

.two-columns {
    column-count: 2;
    column-gap: 2rem; /* Space between columns */
    font-family: "Averia Libre", serif;
    font-weight: 300;
    text-align: justify;
    line-height: 100%;
    letter-spacing: -0.04em;
    margin: 1rem 0;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    background-color: rgb(225, 225, 225);
    border-radius: 10px;
}

/* Video wrapper to maintain aspect ratio */
.video-wrapper {
    position: relative;
    width: 50%;
    margin: 0 auto; /* Centers horizontally */
    padding-bottom: 28.125%; /* Adjusted for 50% width (16:9) */
    height: 0;
    border-radius: 30px;
    overflow: hidden; /* Ensures rounded corners */
}


.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 30px;
}

/* ARBEITEN IMG OVERLAY */

.arbeit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.arbeit-modal-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    position: relative;
    max-width: 700px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.arbeit-modal-content img {
    max-width: 100%;
    max-height: 80vh; /* Ensures the image never exceeds 80% of the viewport height */
    height: auto;
    object-fit: contain; /* Keeps the image fully visible without cropping */
}


.arbeit-image-caption {
    margin-top: 1rem;
    font-family: "Averia Libre", serif;
    font-weight: 300;
    font-size: 1rem;
}

.arbeit-close-modal {
    position: absolute;
    top: 1rem;
    right: 1.7rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease; 
}

.arbeit-close-modal:hover {
    transform: translateY(-3px); 
}


/* PUBLIKATIONEN */

.publikationen {
    column-count: 2;
    column-gap: 1rem;
    list-style: none;
}

.publikationen li {
    break-inside: avoid;
    margin-bottom: 1rem; /* Space between items */
    width: 100%;
    display: inline-block;
}

.publikation {
    line-height: 110%;
    letter-spacing: -0.04em;
    margin: 1rem 0;
}

.publikationstitel {
    font-family:'American Typewriter Regular';
    text-align: center;
}

.publikationstitel:hover {
    text-decoration-line: underline;
}

.publikationsjahr {
    font-family: "Averia Libre", serif;
    font-weight: 300;
}

.teaser {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    text-align: justify;
    line-height: 100%;
    letter-spacing: -0.04em;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    margin: 1rem 0;
    background-color: rgb(225, 225, 225);
    border-radius: 10px;
}

/* CV */

.cv-listen {
    column-count: 2;
    column-gap: 1rem;
    list-style: none;
}

.cv-listen ul {
    break-inside: avoid;
    margin-bottom: 1rem; /* Space between items */
    width: 100%;
    display: inline-block;
}

.cv-titles {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    text-transform: uppercase;
}

.cv-liste {
    list-style: none;
    margin: 0.5rem 0;
    line-height: 110%;
}

.cv-jahre {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    font-size: larger;
}

.bezeichnung {
    font-family:'American Typewriter Bold';
}

.kontext {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    font-style: italic;
}

.institution {
    font-family:'American Typewriter Regular';
}

.cv-jahre {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    font-size: larger;
}

.fokus {
    font-family: "Averia Libre", serif;
    font-weight: 300;
}

.kenntnisse {
    margin: 0.5rem 0;
    line-height: 110%;
}

.kurzbio {
    font-family: "Averia Libre", serif;
    font-weight: 300;
    text-align: justify;
    line-height: 100%;
    letter-spacing: -0.04em;
    margin: 1rem 0;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    background-color: rgb(225, 225, 225);
    border-radius: 10px;
}


/* Media query for mobile devices */
@media only screen and (max-width: 599px) and (pointer: coarse) {
    .title, .splash-title {
        font-size: 2.2rem;
    }

    #splash-screen img {
        max-width: 90%;
        max-height: 90%;
    }

    .back-to-home {
        font-size: 2rem;
        transition: none; 
    }

    .back-to-home:hover {
        transform: translateY(0);
    }

    .arbeiten-overview {
        grid-template-columns: repeat(1, 1fr);
    }

    .images-roll img {
        max-height: 190px; /* Adjust height as needed */
    }

    .two-columns {
        column-count: 1;
    }

    .video-wrapper {
        width: 100%;
        padding-bottom: 56.25%; /* Adjusted for 50% width (16:9) */
    }

    .publikationen {
        column-count: 1;
    }

    .cv-listen {
        column-count: 1;
    }
}


/* FONTS */


@font-face {
    font-family: 'American Typewriter Regular';
    src: url('/assets/fonts/American Typewriter Regular.woff2') format('woff2'), 
         url('/assets/fonts/American Typewriter Regular.woff') format('woff');
}

@font-face {
    font-family: 'American Typewriter Bold';
    src: url('/assets/fonts/American Typewriter Bold.woff2') format('woff2'), 
         url('/assets/fonts/American Typewriter Bold.woff') format('woff');
}

@font-face {
    font-family: 'American Typewriter Condensed Bold';
    src: url('/assets/fonts/American Typewriter Condensed Bold.woff2') format('woff2'), 
         url('/assets/fonts/American Typewriter Condensed Bold.woff') format('woff');
}