/* ========================
   PROJECT DETAILS
======================== */

.project-details-section {
  background: #F5F0E6;
  padding: 80px 20px 20px;
}

/* WRAPPER */
.project-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================
   MAIN IMAGE
======================== */

.project-main-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

/* IMAGE */
.project-main-image img {
  width: 100%;
  height: 100vh; 
  object-fit: cover;
  display: block;
}

/* OVERLAY */
.project-name-overlay {
  position: absolute;
  left: 60px;
  bottom: 60px;

  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);

  padding: 20px 40px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* TITLE */
.project-name-overlay h1 {
  color: #fff;
  font-size: clamp(48px, 6vw, 60px);
  font-weight: 400;
  line-height: 1;

}

/* ========================
   GALLERY
======================== */

.project-gallery {
  overflow: hidden;
}

/* TRACK */
.gallery-track {
  display: flex;
  gap: 12px;

  width: max-content;

  animation: scrollGallery 20s linear infinite;
}

/* ITEM */
.gallery-item {
  flex-shrink: 0;
}

/* IMAGE */
.gallery-item img {
  width: 420px;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.project-gallery:hover .gallery-track {
  animation-play-state: paused;
}

/* ========================
   AUTO SCROLL
======================== */

@keyframes scrollGallery {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 768px) {

  .project-details-section {
    padding: 40px 16px 16px;
  }

  /* MAIN IMAGE */
  .project-main-image img {
    aspect-ratio: 4 / 3;
  }

  /* OVERLAY */
  .project-name-overlay {
    left: 12px;
    bottom: 12px;

    padding: 10px 18px;
  }

  .project-name-overlay h1 {
    font-size: 32px;
  }

  /* GALLERY */
  .gallery-track {
    gap: 8px;
  }

  .gallery-item img {
    width: 180px;
  }

}




/* ========================
   PROJECT INFO
======================== */

.project-info-section {
  background: #F5F0E6;
  padding: 20px 20px 80px;
}

/* CONTENT */
.project-info-content {
  max-width: 1200px;
}

/* TITLE */
.project-info-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

/* ALL TEXT */
.project-info-content p {
  font-size: 20px;
  line-height: 1.7;
}

/* SHORT DESCRIPTION */
.project-short-desc {
  margin-bottom: 32px;
}

/* META */
.project-meta {
  margin-bottom: 32px;
}

.project-meta p {
  margin-bottom: 12px;
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 768px) {

  .project-info-section {
    padding: 16px 16px 60px;
  }

  .project-info-content h2 {
    font-size: 20px;
  }

  .project-info-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .project-short-desc {
    margin-bottom: 24px;
  }

  .project-meta {
    margin-bottom: 24px;
  }

}


/* ========================
   LIGHTBOX
======================== */

.lightbox {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.95);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.4s ease;

  z-index: 99999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* IMAGE */
.lightbox img {
  width: auto;
  max-width: 92%;
  max-height: 92vh;

  object-fit: contain;

  transform: scale(0.9);
  transition: 0.4s ease;
}

.lightbox.active img {
  transform: scale(1);
}

/* CLOSE */
.lightbox-close {
  position: absolute;

  top: 30px;
  right: 40px;

  color: white;
  font-size: 42px;

  cursor: pointer;

  transition: 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
  transform: rotate(90deg);
}

/* MOBILE */
@media (max-width: 768px) {

  .lightbox img {
    max-width: 95%;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 16px;
    right: 20px;
    font-size: 32px;
  }

}

/* ========================
   LIGHTBOX ARROWS
======================== */

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 60px;
  height: 60px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  color: white;
  font-size: 32px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.3s ease;

  z-index: 10;
}

/* LEFT */
.lightbox-arrow.left {
  left: 40px;
}

/* RIGHT */
.lightbox-arrow.right {
  right: 40px;
}

/* HOVER */
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.08);
}

/* MOBILE */
@media (max-width: 768px) {

  .lightbox-arrow {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .lightbox-arrow.left {
    left: 12px;
  }

  .lightbox-arrow.right {
    right: 12px;
  }

}