/* ===== GLOBAL BASE STYLES (PRIORITY FROM CODE #1) ===== */

body {
  background-color: #000202;   /* from code #1 */
  color: #f4f4f4;
}


a {
  color: #f4f4f4;
  text-decoration: underline;
  -webkit-text-decoration-color: #ec1e24;
          text-decoration-color: #ec1e24;
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
  color: #ec1e24;
  -webkit-text-decoration-color: #f4f4f4;
          text-decoration-color: #f4f4f4;
}

button {
  font-family: "Lemur";
}

/* ===== LIGHTBOX (PRESERVED FROM BOTH, PRIORITY #1) ===== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
          backdrop-filter: blur(12px) saturate(180%);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: calc(100vw - (100px * 2));
  max-height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: calc(100vw - (100px * 2));
  max-height: 80vh;
  border-radius: 0;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: #f4f4f4;
  cursor: pointer;
  z-index: 10000;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #f4f4f4;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10000;
  border-radius: 0;
}

.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }

/* ===== PROJECT PAGE STYLES (FROM CODE #1) ===== */

#project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6rem 5%;
  padding-bottom: 0%;
  flex-wrap: wrap;
  gap: 2rem;

  width: 80vw;
  
}
}

.project-meta {
  max-width: 60%;
    width:80vw;

}

.meta-description {
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0rem;
  color: #f4f4f4;
  line-height: 1rem;
  margin-bottom: 5%;
}

.project-title {
  margin: 0;
  line-height: 4rem;
}

.project-info {
  text-align: right;
  min-width: 200px;
  color: #f4f4f4;
    width: 80vw;
  
    
}

.project-info p {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  font-weight: 500;
    line-height: .8rem;

}

/* ===== HERO VIDEO ===== */

#project-hero {
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
  padding-bottom: 2rem;
}

.project-hero-video {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* ===== DESCRIPTION ===== */

#project-description {
  max-width: 80%;
  margin: 2rem auto;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 0 5%;
}

/* ===== MEDIA GALLERY ===== */

#project-media .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0 5%;
  margin-bottom: 2rem;
   max-width: 80%;
     margin: auto auto 8px auto;

}

#project-media img,
#project-media video {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== EXPLORE MORE BUTTON (FROM CODE #1) ===== */

#explore-more {
  text-align: center;
  margin: 3rem 0;
}

#explore-more .btn {
  font-family: "Lemur";
  font-size: 3rem;
  padding: .6rem 5rem .3rem 5rem;
  border: none;
  border-radius: 0;
  background-color: #ec1e24;
  color: #f4f4f4;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

#explore-more .btn:hover {
  background-color: #f4f4f4;
  color: #ec1e24;
}

/* vrtical video grid system */
#project-hero2 {
  padding: 2rem;
}

.video-grid2 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.video-wrapper2 {
  flex: 1 1 45%;
  max-width: 500px;
  aspect-ratio: 9 / 16;
}
.video-wrapper3 iframe {
  width: 100%;
  height: 100%;
aspect-ratio: 4 / 3;
  border-radius: 0;
}

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

/* Small UI tweak from code #2 */
.homepage-nav {
  top: -100px;
}

/* ===== RESPONSIVE STYLES (MERGED LOGIC) ===== */

@media screen and (max-width: 768px) {


  #project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-info {
    text-align: right;
  
 
  }

  .prev-btn { left: 0rem; }
  .next-btn { right: 0rem; }

  .lightbox-content {
    max-width: calc(100vw - (50px * 2));
    max-height: 90vh;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-width: calc(100vw - (50px * 2));
    max-height: 90vh;
  }

  .video-wrapper2 {
    flex: 1 1 100%;
    max-width: 100%;
    height: 100vh;
  }
}
