/* =========================================
   Project Page — assets/css/pages/project.css
   Hero ile footer arası proje içeriği
========================================= */

.eskiz-project{
  padding: clamp(38px, 6vw, 96px) var(--pad);
  background: #fff;
}

.eskiz-project__frame{
  width: min(var(--wrap), 100%);
  margin: 0 auto;
}

/* Üst alan: sol içerik + sağ meta */
.eskiz-project__top{
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 56px);
  align-items: start;
}

.eskiz-project__location{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7f7f7f;
}

/* İçerik tipografisi (modern + okunur) */
.eskiz-project__content{
  color: #6f6f6f;
  font-size: 16px;
  line-height: 1.95;
}

.eskiz-project__content h2,
.eskiz-project__content h3{
  color: #121212;
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 34px 0 14px;
}

.eskiz-project__content p{ margin: 0 0 18px; }
.eskiz-project__content a{ border-bottom: 1px solid rgba(0,0,0,.18); }
.eskiz-project__content a:hover{ border-bottom-color: rgba(0,0,0,.45); }

/* Sağ bilgi paneli */
.eskiz-project__meta{
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line, #e9e9e9);
}

.eskiz-project__metaTitle{
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #2b2b2b;
}

.eskiz-project__dl{
  margin: 0;
}

.eskiz-project__dl dt{
  margin: 18px 0 6px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1f1f1f;
}

.eskiz-project__dl dd{
  margin: 0;
  color: #7a7a7a;
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================
   Project Gallery — Modern Grid Thumbs
   Works with:
   <div id="eskizProjectGallery" class="eskiz-project__gallery">
     <a><img></a> ...
   </div>
========================================= */

#eskizProjectGallery{
  margin-top: clamp(28px, 4vw, 54px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
}

/* Varsayılan kart: 3 kolon görünüm */
#eskizProjectGallery > a{
  grid-column: span 4;          /* 12/4 = 3 kolon */
  aspect-ratio: 4 / 3;          /* thumb oranı */
  display: block;
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}

/* Otomatik/manuel geniş görsel */
#eskizProjectGallery > a.is-wide{
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

/* Otomatik/manuel dikey görsel */
#eskizProjectGallery > a.is-tall{
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

#eskizProjectGallery img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;            /* kırp, ama net */
  object-position: center;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1);
  transition: filter .35s ease, transform .55s var(--ease, cubic-bezier(.2,.8,.2,1));
}

#eskizProjectGallery > a:hover img{
  filter: grayscale(.18) contrast(1.05) saturate(1.12);
  transform: scale(1.02);
}

/* Tablet */
@media (max-width: 980px){
  #eskizProjectGallery > a{ grid-column: span 6; }     /* 2 kolon */
  #eskizProjectGallery > a.is-wide{ grid-column: span 12; } /* 1 kolon */
}

/* Mobil */
@media (max-width: 640px){
  #eskizProjectGallery{ grid-template-columns: 1fr; }
  #eskizProjectGallery > a,
  #eskizProjectGallery > a.is-wide,
  #eskizProjectGallery > a.is-tall{
    grid-column: auto;
    aspect-ratio: 4 / 3; /* mobilde tutarlı */
  }
}


/* Proje alt navigasyon */
.eskiz-projNav{
  margin-top: clamp(26px, 4vw, 52px);
  border-top: 1px solid var(--line, #e9e9e9);
  border-bottom: 1px solid var(--line, #e9e9e9);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
}

.eskiz-projNav__col{ min-width: 0; }

.eskiz-projNav__link{
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.eskiz-projNav__kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.eskiz-projNav__title{
  font-size: 18px;
  font-weight: 300;
  color: #121212;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eskiz-projNav__col--prev{ text-align: left; }
.eskiz-projNav__col--next{ text-align: right; }

.eskiz-projNav__grid{
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,0,0,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2b2b2b;
  transition: transform .2s ease, border-color .2s ease;
}

.eskiz-projNav__grid:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.28);
}

/* Responsive */
@media (max-width: 980px){
  .eskiz-project{
    padding: 28px 16px 64px;
  }

  .eskiz-project__top{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eskiz-project__meta{
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line, #e9e9e9);
    padding-top: 18px;
  }

  .eskiz-project__gallery .wp-block-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .eskiz-projNav{
    grid-template-columns: 1fr;
    text-align: left;
    padding: 18px 0;
  }
  .eskiz-projNav__col--next{ text-align: left; }
  .eskiz-projNav__grid{ justify-self: start; }
}

@media (max-width: 640px){
  .eskiz-project__gallery .wp-block-gallery{
    grid-template-columns: 1fr;
  }
}
