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

body {
  font-family: "chakra-petch", sans-serif;
  background-color: #f7f6f5;
  color: #2d2b2a;
  line-height: 1.5;
}

.page-layout{
  display: grid;
  grid-template-columns: 15% 1fr;
  height: 100vh;
}

/*-------------------------------------------- NAV BAR --------------------------------------------*/

.navbar-inner {
  padding: 1.5em;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 15%;
  background-color: #f7f6f5;
  /*-- border-right: 1px solid #b2a796;
  color: #2d2b2a; debating including --*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navbar-logo {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .navbar-logo {
    width: 50%;
  }
  
}



.navbar a {
  text-decoration: none;
}

.navbar h1 {
  color: #2d2b2a;
  font-size: clamp(1rem, 2vw, 2rem);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .navbar-logo h1 {
    font-size: xx-large;
  }
  
}

.navbar hr {
  display: block;
  width: 100%; 
  border: none;
  border-top: 2px solid #2d2b2a;
  margin: 1em 0;
}

.navbar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.navbar-link {
  text-decoration: none;
  color: #2d2b2a;
  font-size: 1.25em;
  font-weight: 500;
  padding: 0.5em 0;
/* transition: color 0.2s; debating including this */
}

.navbar-link:hover {
  color: #f05327;
}

.navbar-footer {
  padding: 1em;
  color: #b2a796;
}

/*--------------------------------------- HOME PAGE: PROJECT GRID ---------------------------------------*/

.project-grid {
  margin-left: 15%;
  padding: 1.5em;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2em;
}

/*--------------------------------------- HOME PAGE: PROJECT CARD ---------------------------------------*/

.project-card {
  display: block;
}

.project-link {
  text-decoration: none;
}

.project-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  overflow: hidden;
  background-color: #b2a796;
}

.project-link h3 {
  margin-top: .5em;
  color: #2d2b2a;
}

.project-card h4 {
  color: #b2a796;
  font-weight: 500;
}

.project-link:hover img {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover h3 {
  color: #f05327;
}

/*-------------------------------------------- PROJECT PAGE --------------------------------------------*/

.project-page {
  padding: 1.5em;
  max-width: 100%;
  margin-left: 15%;
  margin-right: 15%;
}

.project-header {
  margin-bottom: 2em;
}

.project-header h2 {
  font-weight: 400;
  color: #f05327;
}

.project-header h3 {
  color: #b2a796;
  font-weight: 400;
  margin-top: .25em;
}

.project-header p {
  font-size: large;
  margin-top: 2em;
}

.project-footer {
  margin-top: 2em;
  text-align: center;
}

.project-footer hr {
  display: block;
  width: 100%; 
  border: none;
  border-top: 1px solid #b2a796;
  margin-bottom: 1em;
}

.project-footer a {
  text-decoration: none;
  color: #b2a796;
  font-size: large;
}

.project-footer a:hover {
  color: #f05327;
}

.project-footer p {
  color: #b2a796;
  font-weight: 400;
  text-align: center;
}

/*-------------------------------------------- PROJECT IMAGES --------------------------------------------*/

.project-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}

.project-images img {
  width: 100%;
  height: auto;
  display: block;
}

.project-images figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  break-inside: avoid;
}

.project-images .full {
  grid-column: 1 / -1; /* spans across both columns */
}

.project-images .tall {
  grid-row: span 3;
  height: 100%; /* make sure it stretches */
  object-fit: cover;
}

.project-images figcaption {
  color: #b2a796;
  font-size: large;
  margin-top: .25em;
}

.project-images:hover {
  cursor: pointer;
}

/*-- ETHEREALA brand book grid --*/

.bb-grid {
  grid-column: 1 / -1; /* make it span full width of parent grid */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.bb-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/*-- misc. grid --*/

.misc-project h1 {
  font-size: large;
}

.misc-project p {
  font-size: large;
  margin-bottom: 1em;
}

/*-------------------------------------------- LIGHTBOX --------------------------------------------*/

/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;              /* hidden by default */
  align-items: center;        /* centers vertically */
  justify-content: center;    /* centers horizontally */
  z-index: 9999;              /* on top of everything */
}

/* when active */
#lightbox.active {
  display: flex;
}

/* image inside */
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  /*-- box-shadow: 0 0 20px rgba(0,0,0,0.5); --*/
  border-radius: 4px;
}

/*-------------------------------------------- MOBILE MQ --------------------------------------------*/

@media (max-width: 768px) {
  .navbar {
    width: 100%;
    position: relative;
  }
}

@media (max-width: 768px) {
  .project-grid {
    margin-left: 0;
    padding: 1.5em;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
  }
}

@media (max-width: 768px) {
  .project-page {
    margin-left: 0;
    margin-right: 0;
  }
}