/* Font Face */
@font-face {
  font-family: 'Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/eb-garamond-v10-latin-regular.eot');
  src: local('EB Garamond Regular'), local('EBGaramond-Regular'),
       url('fonts/eb-garamond-v10-latin-regular.eot?#iefix') format('embedded-opentype'),
       url('fonts/eb-garamond-v10-latin-regular.woff2') format('woff2'),
       url('fonts/eb-garamond-v10-latin-regular.woff') format('woff'),
       url('fonts/eb-garamond-v10-latin-regular.ttf') format('truetype'),
       url('fonts/eb-garamond-v10-latin-regular.svg#EBGaramond') format('svg');
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Garamond', serif;
    font-weight: lighter;
    font-size: 16px;
    color: #282828;
    text-align: left;
    margin: 0;
    padding: 0;
}

a:link, a:visited {
    color: #282828;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: lightblue;
}

#container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Navigation Styles */
.navigation {
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 2000;
    padding: 1em;
    width: 15%;
    line-height: 1.4;
}

.nav-header {
    margin-bottom: 1em;
}

.nav-projects {
    margin-bottom: 1em;
}

.nav-projects a {
    display: block;
    margin-bottom: 0.2em;
    cursor: pointer;
}

.nav-projects a.active {
    color: lightblue;
}

/* Project Info Styles */
.project-info {
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    width: 15%;
    padding: 1em;
    font-weight: 400;
    line-height: 1.4;
    font-size: 14px;
    z-index: 1000;
    overflow: hidden;
    /* hyphens */
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.project-info p {
    margin-top: 0;
}

/* Desktop: Basic info visible, description hidden */
.basic-info {
    display: block;
}

.description-toggle {
    cursor: pointer;
    margin-top: 1em;
}

.description-content {
    padding-top: 1em; 
    display: none;
}

/* Main Content */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
/*transition: background-image 0.3s ease; */
}

.main-content .nav-arrow {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

/* Image navigation controls */

.image-nav {
    position: fixed;
    bottom: 0px;
    left: 80%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    gap: 0px;
    background: rgba(255, 255, 255, 255);
    padding: 0px;
    border-radius: 0px;
}

.image-nav button {
    background: none;
    color: black;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 0px;
    font-family: 'Garamond', serif;
}

.image-nav button:hover {
    background: white;
}

.image-nav button:disabled {
    background: white;
    cursor: not-allowed;
}

.image-counter {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-family: 'Garamond', serif;
    font-size: 12px;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
}

/* Separate Page Styles */
.separate-page {
    display: none;
    position: relative;
    padding-top: 1em;
    padding-left: 20em;
    line-height: 1.4;
    height: 100%;
    overflow-y: auto;
}

/* Image Link Styles (Legacy) */
.imagelink {
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}

.imagelink > a {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Vimeo Wrapper */
.vimeo-wrapper {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 500;
   pointer-events: none;
   overflow: hidden;
}

.vimeo-wrapper iframe {
   width: 100vw;
   height: 56.25vw;
   min-height: 100vh;
   min-width: 177.77vh;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
}

 .mobile-project-view {
    display: none;
    padding: 1em;
    background-color: white;
    overflow-y: auto;
    font-family: 'Garamond', serif;
    line-height: 1.6;
    font-size: 14px;
    }

    .mobile-project-view img {
    width: 100%;
    margin: 1em 0;
    }

/* Mobile Styles */
@media screen and (max-width: 1024px) {
    .navigation {
        position: sticky;
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        border-bottom: 1px solid gray;
    }
    
    .mobile-toggle {
        display: inline-block;
        margin-left: 6px;
        cursor: pointer;
    }
    
    .nav-projects {
        display: none;
        margin-top: 1em;
    }
    
    .nav-projects.show {
        display: block;
    }
    
    .nav-projects a {
        margin: 0.3em 0;
    }

    .project-info {
        position: relative;
        z-index: 1000;
        width: 100%;
        padding: 1em 15px;
        display: block;
        overflow-wrap: break-word;
        font-family: 'Garamond';
        /* max-height: 70v; */
        overflow-y: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    
    .basic-info  {
        display: block;
    }
    
    .project-info.show {
        display: block;
    }
    
    .project-info.show .description-content {
        display: block !important;
    }
    
    .description-toggle {
        display: block;
        margin-top: 0.5em;

    }
    
    .separate-page {
        display: block;
        padding: 60px 15px;
        line-height: 1.4;
        font-size: 14px;
        height: auto; 
        overflow-y: visible;
    }
   
    .main-content {
        display: none;
    }

    .mobile-project-view {
        display: block;
    }

    .image-nav {
        display: none !important;
    }
    
}