/* 

.project-image {
  max-width: 700px;
  margin: 0 auto;
}
.main-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.thumbs-swiper {
  margin-top: 12px;
}
.thumbs-swiper .swiper-slide {
  width: 90px;
  height: 64px;
  opacity: 0.6;
  cursor: pointer;
  box-sizing: border-box;
  padding: 2px;
}
.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
}
.thumbs-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swiper-button-prev,
.swiper-button-next {
  color: #222;
}

.swiper-wrapper{
 
  justify-content: center;
}

@media (max-width: 576px) {
  .thumbs-swiper .swiper-slide {
    width: 64px;
    height: 98px;
  }
}

.project {
  padding-top: 200px;
    padding-bottom: 20px;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "details image"
    "description image"
    "features image";
  gap: 28px;
  align-items: start;
}

.project-image {
  grid-area: image;
  display: block;
}
.project-image img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  
  object-fit: cover;
}

.project-details {
  grid-area: details;
}
.project-type {
  color: var(--second-color);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
}
.project-title {
  color: #fff;
  font-size: 30px;
  margin-bottom: 18px;
  font-weight: 600;
}

.project-meta {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.85);
}
.project-meta th,
.project-meta td {
  padding: 10px 12px;
  vertical-align: top;
  
}
.project-meta th {
  color: var(--second-color);
  font-weight: 700;
  width: 120px;
}
.project-meta td {
  color: rgba(255, 255, 255, 0.9);
}



.description {
  grid-area: description;
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 12px;
  line-height: 1.9;
  max-width: 680px;                
  width: 100%;                     
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
  justify-self: start;             
}



.project-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-start; 
}
.btn-visit,
.btn-repo {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn-visit {
  background: linear-gradient(90deg, var(--main-color), var(--second-color));
  color: #fff;
}
.btn-repo {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-features {
  grid-area: features;
  text-align: right;
}
.project-features h5 {
  color: var(--second-color);
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding-left: 0;
}
.features li {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
}


@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "details"
      "description"
      "features";
  }

   .project-image{
    max-width: 300px;
  }

  .project-image img {
    height: auto;
    max-height: 360px;
  }

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

  .project-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .description {
    max-width: 330px;
  }
} */

/* .container {
  padding: 150px 80px;
} */

/* =========================
   Swiper Gallery (Main + Thumbs)
   ========================= */

.project-image {
  grid-area: image;
  max-width: 700px;
  margin: 0 auto;
  display: block;
}

/* Main Swiper */
.main-swiper {
  width: 100%;
}

.main-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* Thumbs Swiper */
.thumbs-swiper {
  width: 100%;
  margin-top: 12px;
}

.thumbs-swiper .swiper-slide {
  width: 90px;
  height: 64px;
  opacity: 0.6;
  cursor: pointer;
  box-sizing: border-box;
  padding: 2px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--second-color);
}

.thumbs-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation */
.swiper-button-prev,
.swiper-button-next {
  color: #222;
}

/* ❌ IMPORTANT: removed this to avoid breaking Swiper layout
.swiper-wrapper{
  justify-content: center;
}
*/

@media (max-width: 576px) {
  .thumbs-swiper .swiper-slide {
    width: 64px;
    height: 98px;
  }
}

/* =========================
   Page Layout + Details
   ========================= */

.project {
  padding-top: 200px;
  padding-bottom: 20px;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "details image"
    "description image"
    "features image";
  gap: 28px;
  align-items: start;
  justify-items: start;
}

.project-details {
  grid-area: details;
}

.project-type {
  color: var(--second-color);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.project-title {
  color: #fff;
  font-size: 30px;
  margin-bottom: 18px;
  font-weight: 600;
}

.project-meta {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.85);
}

.project-meta th,
.project-meta td {
  padding: 10px 12px;
  vertical-align: top;
}

.project-meta th {
  color: var(--second-color);
  font-weight: 700;
  width: 120px;
}

.project-meta td {
  color: rgba(255, 255, 255, 0.9);
}

/* Description */
/* .description {
  grid-area: description;
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
  max-inline-size: 680px;
  inline-size: min(680px, 100%);
  justify-self: start;
  align-self: start;
} */

.project-grid > .description{
  grid-area: description;
  justify-self: start;
  align-self: start;

  /* override any old width rules */
  width: auto !important;
  max-width: 680px;

  /* shrink-to-fit within the grid cell */
  display: inline-block;

  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
}

/* Actions */
.project-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.btn-visit,
.btn-repo {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.btn-visit {
  background: linear-gradient(90deg, var(--main-color), var(--second-color));
  color: #fff;
}

.btn-repo {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Features */
.project-features {
  grid-area: features;
  text-align: right;
}

.project-features h5 {
  color: var(--second-color);
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding-left: 0;
}

.features li {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive: single column on small screens */
@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "details"
      "description"
      "features";
  }

  .project-image {
    max-width: 300px;
  }

  /* Main image height control on small screens (optional safe limit) */
  .main-swiper .swiper-slide img {
    max-height: 360px;
  }

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

  .project-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .description {
    max-width: 330px;
  }
}
