/* Gallery Page */
.gallery_header_box{
  max-width: 800px;
  background: var(--highlight);  
  padding: 10px;      
  border-radius: 14px;
  margin: 10px auto;
}

#gallery_header{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.project-card{
  max-width: 1150px;
  margin: 28px auto;
  padding: 18px;
  background: #fff;
  border: 5px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  transition: box-shadow 0.2s ease, border-color 1.0s ease;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  border-color: rgba(0,0,0,0.28);
}

.project-preview {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: start;
}

.project-text h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.project-text .location {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.project-text p {
  line-height: 1.6;
}
.project-text li {
  list-style: none;
  font-size: 24px;
  color: #2E2E2E;
  line-height: 1.4;
}

.project-text li strong{
  display: inline-block;
  min-width: 120px;
  font-weight: 600;
  color: #1F1F1F;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 140px;
  gap: 12px;
  margin: auto;
}

/* Link wrappers for lightbox */
.gallery-main-img-link {
  grid-column: 1 / -1;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1c1c;
  cursor: zoom-in;
}

.gallery-side-img-link {
  display: block;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1c1c;
  cursor: zoom-in;
}

.gallery-main-img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  clip-path: inset(0px 10px 0px 10px);
  transition: transform 0.2s ease;
}

.gallery-main-img-link:hover .gallery-main-img {
  transform: scale(1.03);
}

.gallery-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.gallery-side-img-link:hover .gallery-side-img {
  transform: scale(1.03);
}

.gallery-more-img{
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-more-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-more-img::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.gallery-more-img span{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.gallery-more-img:hover::before{
  background: rgba(0,0,0,0.7);
}

.lightbox-footer{
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ===== Responsive (aligned with home.css breakpoints) ===== */
@media (max-width: 900px) {
  .project-preview {
    margin: 16px auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: center;
    width: 100%;
  }

  .project-text li {
    font-size: 20px;
  }

  .project-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: 100%;
  }

  .gallery-side-img-link {
    height: 120px;
  }

  .gallery-more-img {
    height: 120px;
  }
}

@media (max-width: 520px) {
  .project-card {
    padding: 12px;
    margin: 18px auto;
  }

  .project-preview {
    margin: 8px auto;
  }

  .project-text h3 {
    font-size: 18px;
  }

  .project-text li {
    font-size: 16px;
  }

  .project-text li strong {
    min-width: 100px;
  }

  .project-images {
    gap: 8px;
  }

  .gallery-side-img-link {
    height: 100px;
  }

  .gallery-more-img {
    height: 100px;
  }

  .gallery-more-img span {
    font-size: 24px;
  }
}
