* {
  box-sizing: border-box;
}

/* RESET */
body {
  margin: 0;
  font-family: sans-serif;
  background: black;
  color: rgb(197, 197, 197);
  font-size: 12px; /* unified font size */
}

.namespace {
  margin-bottom: 28px;
}

/* TYPOGRAPHY */
p {
  margin: 0 0 25px;
  line-height: 1.4;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
  margin-bottom: 4px;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid rgba(227, 227, 227, 0.4);
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s ease, font-style 0.25s ease;
}

a:hover {
  font-style: italic;
  opacity: 0.5;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: black;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* MAIN */
.main {
  margin-left: 280px;
  min-height: 100vh;
  padding: 20px;
  background: black;
  border-left: 1px solid rgba(227, 227, 227, 0.4);
}

/* TEXT LAYOUT */
.projectText {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.leftText {
  width: 35%;
}

.rightText {
  width: 65%;
}

.rightText ul {
  text-align: right;
  margin-bottom: 10px;
}

/* TYPO HELPERS */
.name {
  font-weight: bold;
}

.bio {
  margin-top: 10px;
}

.sectionTitle,
.projectTitle {
  font-weight: bold;
}

/* PROJECT */
.project {
  margin-bottom: 40px;
}

.project img {
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

/* IMAGE GRID */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 5px;
  width: 100%;
  margin-bottom: 5px;
}

/* TILE CONTAINER */
.img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: black;
  cursor: pointer;
}



/* IMAGE */
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* TILE CONTAINER 2*/



/* HOVER */
.img-container:hover img {
  transform: scale(1.05);
}

/* OVERLAY TEXT (now inherits font size) */
.img-container h2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0);
  margin: 0;
  pointer-events: none;
}

/* FOOTER */
.footer {
  margin-top: 40px;
}

.footer p {
  opacity: 0.8;
}

video {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
}

.footerText {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rightFooter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leftFooter p,
.rightFooter p {
  margin: 0;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-text {
  margin-top: 12px;
  text-align: center;
  color: rgb(197, 197, 197);
  max-width: 90%;
}

/* MENU */
.menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 10000;
  background: black;
  color: rgb(197, 197, 197);
  border: 1px solid rgba(227,227,227,0.4);
  padding: 8px 12px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: auto;/* optional: controls max size */
  margin: 0 auto;   /* centers it */
  margin-bottom: 5px;
  aspect-ratio: 16 / 9; /* modern, clean solution */
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    width: 260px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 15px;
  }

  .menu-btn {
    display: block;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .projectText {
    flex-direction: column;
    gap: 15px;
  }

  .leftText,
  .rightText {
    width: 100%;
    text-align: center;
  }

  .rightText ul {
    text-align: center;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .img-container:hover img {
    transform: none;
  }
}