/* ==============================
   BASE
============================== */

body {
  background-color: #f4f1e8;
  color: #656550;
  font-family: Verdana;
  padding: 50px 200px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==============================
   HEADER (logo + icons)
============================== */

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 75px;
    gap: 24px;
}

.icon:hover {
  filter: opacity(60%);
}

/* ==============================
   WORKS GRID (vertical layout)
============================== */

/* work thumbnails */
.worksimg {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.worksimg:hover {
  filter: opacity(80%);
}

/* space between rows */
.flex-container + .flex-container {
  margin-top: 48px;
}

.work-title {
  color: #656550;
  transition: color 0.2s; 
}

.work-title:hover {
  color: #8a8a6a; 
}

/* ==============================
   LIGHTBOX
============================== */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightbox-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 95vw;
  max-height: 80vh;
}

.lightbox-image,
#lightbox-container video,
#lightbox-container audio {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

#lightbox-caption {
  color: white;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.lightbox-controls {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

#prev, #next {
  background: white;
  border: none;
  padding: 8px 14px;
  font-size: 20px;
  cursor: pointer;
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {

  body {
    padding: 16px 12px;
  }

  .worksimg {
    width: 100%;
    height: auto;
  }

  .icon {
    width: auto;
  }
  
  .works-row {
    flex-direction: column;
  }
  
}
