html, body {
    height: 100%;
    margin: 0;
}

a {
  color: #000;
}
a:hover{
  color: #7a7a7a;
}
.layout-wrapper {
    /* Layout: restrict everything inside viewport */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main area above footer */
.main-content {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden; /* Prevent main from scrolling, columns scroll instead */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* Grid for image/text columns + divider */
.page_container {
    display: grid;
    grid-template-columns: 3fr 12px 2fr;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding:1rem 1rem 0 1rem;

}

/* Columns scroll individually */
.scrollable-col {
    overflow-y: auto;
    height: 100%;
}

/* Divider line */
.divider {
    width: 1px;
    background: #222;
    justify-self: center;
    align-self: stretch;
    opacity: 1;
    margin-bottom: 1rem;
    
}

/* Image column */
.page_img {
    width: 100%;
    box-sizing: border-box;
}
.page_img img, .page_img video {
    width: 100%;
    height: auto;
    display: block;
    padding-bottom: 1rem;
}

/* Text column */
.page_txt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
    padding-left: 0rem;
}
.work_title {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 1rem;
    text-align: left;
    display: block;
    line-height: 90%;
}
.page_txt p:first-child {
    margin-top: 0;
}

/* Sticky footer */
.footer  {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #b0b0b0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
    gap: 5em;
    position: sticky;
    left: 0;
    bottom: 0;
    border-top: 1px solid #7a7a7a;
    background: #fff;
    flex-wrap: wrap;
    z-index: 100;
    margin-left: 1rem;
    margin-right: 1rem;
    padding:0.2rem;
}
.footer a {
    color: #000;
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer a:hover {
    color: #888;
    text-decoration: underline;
}
.footer .go-back-arrow {
    font-size: 2rem;
    vertical-align: right;
    padding-left: 0.5em;
    margin-right: 1rem;

}
.footer .go-back-arrow:hover{
    text-decoration: none;
}


.footer-left {
  display: flex;
    justify-self: left;
    align-items: center;
    gap: 5em;
    margin-left: 1rem;
}


/* width */
::-webkit-scrollbar {
  width: 0px;
}

/* Track */
::-webkit-scrollbar-track {
  background: none; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: none; 
}


 /* thumbnail index */
  .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
  
  .thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3; /* fallback if browser supports */
    display: block;
    text-decoration: none;
  }
  
  .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes any ratio fit the grid cell */
    display: block;
    transition: transform 0.3s;
  }
  

  .thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 80, 80, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
  }
  
  .thumbnail:hover .thumbnail-overlay,
  .thumbnail:focus .thumbnail-overlay {
    opacity: 1;
  }
  
  .thumbnail-title {
    color: #fff;
    font-size: 1.25rem;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-weight:100;
    text-align: center;
    padding: 0.5rem 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s;
  }
  
  .thumbnail:hover .thumbnail-title,
  .thumbnail:focus .thumbnail-title {
    opacity: 1;
    transform: translateY(0);
  }


.bio {
  color:#b0b0b0;
  line-height: 1;

}


/* Responsive tweaks */
@media (max-width: 800px) {
    .main-content {
        max-width:100vw;
    }
    .page_container {
        grid-template-columns: 1fr;
    }
    .divider {
        display: none;
    }
    .page_img, .page_txt {
        width: 100%;
        padding: 0;
    }
    .work_title {
        font-size: 2.2rem;
    }
    .footer {
        flex-direction: column;
        gap: 0.6em;
        font-size: 1rem;
        padding: 1em 0 1em 0;
    }
    .footer-left {
      gap:0.6em;
    }
}

