/* ==========================
   Base & Navigation
========================== */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 1rem;
  width: 100%;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  color: #555;
}

/* ==========================
   Layout: Work Page
========================== */
.work-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  width: 100%;
  padding: 1rem;
}

.project-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.project-column a {
  font-size: 5rem;
  cursor: pointer;
}

/* ==========================
   Project Grid
========================== */
.project-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.project-hero {
  grid-row: 1 / span 2;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.project-hero img,
.project-thumbs img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  justify-items: start;
  cursor: pointer;
}

.project-thumbs img {
  width: 100px;
  transition: transform 0.2s ease;
}

.project-thumbs img:hover {
  transform: scale(1.05);
}

.project-thumbs figure {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.project-thumbs figcaption {
  font-size: 0.75rem;
  color: #555;
}


/* ==========================
   Project Info (UPDATED)
========================== */
.project-info {
  grid-column: 2;
  align-self: end;
  padding-top: 1rem;
  max-width: 550px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-description h4,
.info-specs h4 {
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #000;
  padding-bottom: 0.25rem;
}

.info-description {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-specs ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.info-specs li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 0.25rem 0;
}

.next-project {
  margin-top: 1rem;
  text-align: right;
}

.next-project a {
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.next-project a:hover {
  opacity: 0.7;
}

/* ==========================
   Lightbox
========================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #ababab;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================
   Info Pages
========================== */
.info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  padding: 1rem;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 1024px) {
  .work-layout { gap: 2rem; }
  .project-column a { font-size: 3.5rem; }
  .project-info { max-width: 100%; }
  .project-grid { gap: 1.5rem; }
}

@media (max-width: 968px) {
  .work-layout { flex-direction: column; gap: 2rem; }
  .project-column a { font-size: 2.5rem; }
  .project-grid { display: block; }
  .project-hero { display: block; margin-bottom: 1rem; }
  .project-thumbs { display: flex; }
  .info-container { margin: 0 auto; max-width: 100%; }
}

@media (max-width: 480px) {
  .nav-container { gap: 0.5rem; }
  .work-layout { gap: 1rem; }
  .project-column a { font-size: 2rem; word-break: break-word; }
  .project-thumbs { justify-content: space-between; }
}

/* Disable hover highlight on mobile */
@media (max-width: 768px) {
  .project-list tr:hover,
  .project-list tr:active {
    background-color: inherit;
    cursor: default;
  }
}

.project-list tr { -webkit-tap-highlight-color: transparent; }