@font-face {
    font-family: "Scto-Medium";
    src: url("fonts/Scto_Medium.otf") format("opentype");
}

@font-face {
    font-family: "Scto-Bold";
    src: url("fonts/Scto_Bold.otf") format("opentype");
}

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

html {
    scroll-behavior: smooth;
}

a,
summary {
    transition: color 0.25s ease;
}

details[open] .image-row,
details[open] .project-info {
    animation: fadeIn 0.4s ease forwards;
}

.image-row {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    min-height: 100vh;
    padding: 10px;

    display: flex;
    flex-direction: column;

    font-family: "Scto-Medium", sans-serif;
    font-size: 25px;

    color: white;
    background: black;
}

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

/* Header */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    font-size: 21px;
    margin-bottom: 40px;
}

/* Main */

main {
    flex: 1;
}

/* Projektliste */

.projects {
    display: flex;
    flex-direction: column;
}

.project {
    margin-bottom: 10px;
}

/* Projekttitel */

summary {
    list-style: none;
    cursor: pointer;

    font-size: 100px;
    line-height: 0.95;

    text-align: center;
    text-transform: uppercase;

    font-family: "Scto-Medium", sans-serif;

    transition: color 0.2s ease;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    display: none;
}

/* Bilder Desktop */

.image-row {
    display: flex;
    gap: 0;

    width: calc(100% + 20px);

    margin-left: -10px;
    margin-right: -10px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-top: 10px;
    padding-bottom: 10px;
}

.image-row img,
.image-row video {
    height: 70vh;
    width: auto;

    display: block;
    flex-shrink: 0;
}

/* Projektinformationen */

.project-info {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;

    margin-top: 10px;
    margin-bottom: 40px;

    font-size: 21px;
    text-align: left;
    line-height: 1.1;
}

.info-year {
    grid-column: 1;
}

.info-category {
    grid-column: 2;
}

.info-dimension {
    grid-column: 3;
}

.info-description {
    grid-column: 4 / 6;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: auto;

    font-size: 25px;
}

/* Mobile */
@media (max-width: 750px) {
    @media (max-width: 750px) {

        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        body {
            font-size: 20px;
            padding: 10px;
        }

        header {
            font-size: 20px;
            gap: 12px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        summary {
            font-size: clamp(28px, 10vw, 42px);
            line-height: 0.95;
            text-align: center;

            width: 100%;
            max-width: 100%;

            color: white !important;

            overflow-wrap: normal;
            word-break: keep-all;
            hyphens: none;
        }

        summary:hover,
        summary:active,
        summary:focus {
            color: white !important;
            background: transparent !important;
        }

        .project {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        .image-row {
            display: flex;
            gap: 0;

            width: 100vw;
            margin-left: calc(-1 * 10px);

            overflow-x: auto;
            overflow-y: hidden;

            padding: 0;

            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .image-row::-webkit-scrollbar {
            display: none;
        }

        .image-row img,
        .image-row video {
            height: 65vh;
            width: auto;
            display: block;
            flex-shrink: 0;

            margin: 0;
            padding: 0;
        }

        .project-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;

            font-size: 20px;
            line-height: 1.1;

            margin-top: 10px;
            margin-bottom: 50px;
        }

        .info-year {
            grid-column: 1 / 3;
        }

        .info-category {
            grid-column: 1;
            white-space: nowrap;
        }

        .info-dimension {
            grid-column: 2;
            white-space: nowrap;
        }

        .info-description {
            grid-column: 1 / 3;
        }

        footer {
            display: flex;
            justify-content: center;
            align-items: center;

            flex-direction: row;
            gap: 20px;

            margin-top: auto;

            font-size: 20px;
            text-align: center;
        }


    }
}