/* source-sans-pro-latin-400-normal */
* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-pro@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-pro@latest/latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JunicodeReg';
  font-style: regular;
  src: url(https://lizevandergulden.nl/junicode-woff-1.002/Junicode.woff) format('woff');
  }

  @font-face {
  font-family: 'JunicodeIt';
  font-style: italic;
  src: url(https://lizevandergulden.nl/junicode-woff-1.002/Junicode-Italic.woff) format('woff');
  }

  @font-face {
  font-family: 'JunicodeBold';
  font-style: bold;
  src: url(https://lizevandergulden.nl/junicode-woff-1.002/Junicode-Bold.woff) format('woff');
  }

:root {
  --primary-bg-color: #eaf882;
  /* --primary-bg-color: #e9f0d5; */
  /* --primary-txt-color:  rgb(52, 12, 68); */
  --primary-txt-color: #00123D;
  --header-txt-color: #004CFF;
}

i{
    font-family: JunicodeIt;
}

b{
    font-family: JunicodeBold;
}

body {
    font-family: JunicodeReg;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg-color);
    color: var(--primary-txt-color);
    /* color: #5A5D0E; */
}

header {
    text-align: left;
    position: fixed;
    top: 30px;
    left: 150px;
    /* color: #2B59C3; */
    color: var(--header-txt-color);
}

header a {
    /* color: #2B59C3; */
    color: var(--header-txt-color);
}

#name {
    padding: 0;
    font-size: 60pt;
    top: 40px;
    position: fixed;
    left: 0px;
    writing-mode: vertical-lr;
    color: var(--header-txt-color);
}

#name a{
    color: var(--header-txt-color);
}

a {
    color: var(--primary-txt-color);
}

a#indexurl{
    text-decoration-line: none;
}

main {
    margin: 120px 0px 0px 150px;
    background-color: var(--primary-bg-color);
    position: relative;
}

.project-content .project-image{
    width: 100%;
}

.project-box {
    position: relative;
    /* max-height: 60vh; */
    width: 85vw;
    margin: 0 0 60px 0; /* Adjust spacing as necessary */
    overflow: hidden; /* Hides overflow from hover effect */
}

.project-image {
    width: 100%; /* Image takes up 60% of the project box */
    height: auto; /* Keeps aspect ratio */
    /* max-height: 100%; */
    /* overflow: hidden; */
    background-color: white;
}

.video-wrapper {
    width: 100%;          /* Same width as your images */
    position: relative;   /* Needed for absolute positioning inside */
    height: calc(48vw * (9 / 16));           /* Must be 0 to use padding-bottom trick */
    overflow: hidden;
}

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

.project-info {
    position: absolute;
    left: 50vw;
    top: 0px;
    padding: 20px 30px 20px 0px;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin; /* optional: thinner scrollbar for Firefox */
    scrollbar-color: rgba(43, 89, 195, 0) transparent; /* optional */
}

.project-date{
    font-size: 10pt;
    font-family: JunicodeIt;
}

.project-title{
    text-decoration: none;
    font-size: 17pt;
    margin-top: -20px;
    margin-bottom: -20px;
}

.carousel {
    cursor: default; /* default */
    position: relative;
    /* background-color: #eaf882; */
    cursor: pointer;
}

.carousel-track{
    width: 48vw; /* Image takes up 60% of the project box */
    height: auto;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 5px 0;
}

@media (max-width: 1000px) {
    main {
        width: 80vw;
    }

    .project-box {
        width: 100%;
        margin-bottom: 40px;
    }

    .carousel-track {
        width: 100% !important;
    }

    .project-info {
        position: relative;
        left: auto;
        top: auto;
        padding: 10px 5%;
        max-height: none;
        overflow-y: visible;
    }

    .project-title{
        font-size: 14pt;
    }

    .project-image {
        width: 100%;
        height: auto;
    }

    .video-wrapper {
        width: 100%;
        height: calc(100vw * 9 / 16); /* 16:9 ratio based on screen width */
    }

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .carousel {
        cursor: pointer;
        width: 100%;
    }

}

@media (max-width: 768px) {
    header {
        position: relative;
        top: 0;
        left: 0;
        padding: 10px 5%;
        padding-top: 0px;
        text-align: left;
    }

    #name {
        position: relative;
        writing-mode: horizontal-tb; /* horizontal text */
        font-size: 30pt;
        display: inline-block;
        padding: 10px 5%;
        padding-bottom: 0px;
        top: 10px;
        color: var(--header-txt-color);
    }

    main {
        margin: 0;
        padding: 0;
        width: 100vw;
    }

    main#about{
        padding: 10px 5%;
    }

    .project-box {
        width: 100%;
        margin-bottom: 40px;
    }

    .carousel-track {
        width: 100% !important;
    }

    .project-info {
        position: relative;
        left: auto;
        top: auto;
        padding: 10px 5%;
        max-height: none;
        overflow-y: visible;
    }

    .project-title{
        font-size: 14pt;
    }

    .project-image {
        width: 100%;
        height: auto;
    }

    .video-wrapper {
        width: 100%;
        height: calc(100vw * 9 / 16); /* 16:9 ratio based on screen width */
    }

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .carousel {
        cursor: pointer;
        width: 100%;
    }
}
