/* =========================================================
   GÖKSU HES — GALERİ
   TEK-EN Enerji Üretim A.Ş.
   ========================================================= */

.goksu-gallery-section{
  max-width: 1200px;
  margin: 0 auto;
  padding: 86px 28px 100px;
  background: #f7f6f3;
}

/* Başlık alanı — eski sade/kurumsal görünüm */
.goksu-gallery-head{
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(280px,.75fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #d9d6d0;
}

.goksu-gallery-head > div{
  position: relative;
  padding-bottom: 20px;
}

.goksu-gallery-head > div::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -31px;
  width: 72px;
  height: 2px;
  background: #b40d32;
}

.goksu-gallery-eyebrow{
  margin: 0 0 14px;
  color: #b40d32;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.goksu-gallery-head h2{
  margin: 0;
  color: #17191b;
  font-size: clamp(42px,4.2vw,64px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.045em;
}

.goksu-gallery-head > p{
  margin: 0 0 5px;
  max-width: 390px;
  color: #747474;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   GALERİ MOZAIK DÜZENİ
   ========================================================= */
.goksu-gallery-grid{
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 245px;
  gap: 10px;
}

.goksu-gallery-tile{
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  background: #17191b;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.goksu-gallery-wide{
  grid-column: span 2;
}

.goksu-gallery-tall{
  grid-row: span 2;
}

.goksu-gallery-tile img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.goksu-gallery-tile::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,rgba(7,10,12,.76) 0%,rgba(7,10,12,.22) 34%,rgba(7,10,12,0) 64%);
  pointer-events: none;
}

.goksu-gallery-tile span{
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 18px;
  color: #fff;
}

.goksu-gallery-tile b{
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 750;
}

.goksu-gallery-tile small{
  display: block;
  color: rgba(255,255,255,.82);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.goksu-gallery-tile:hover img{
  transform: scale(1.035);
}

.goksu-gallery-tile:focus-visible{
  outline: 3px solid #b40d32;
  outline-offset: 3px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.goksu-lightbox{
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(10,13,16,.94);
}

.goksu-lightbox.is-open{
  display: flex;
}

.goksu-lightbox figure{
  margin: 0;
  max-width: min(1180px,90vw);
  max-height: 88vh;
  text-align: center;
}

.goksu-lightbox figure img{
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
}

.goksu-lightbox figcaption{
  margin-top: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.goksu-lightbox-close,
.goksu-lightbox-prev,
.goksu-lightbox-next{
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.goksu-lightbox-close{
  top: 22px;
  right: 30px;
  font-size: 42px;
  line-height: 1;
}

.goksu-lightbox-prev,
.goksu-lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  font-size: 58px;
  line-height: 1;
}

.goksu-lightbox-prev{ left: 28px; }
.goksu-lightbox-next{ right: 28px; }

/* Tablet */
@media (max-width: 900px){
  .goksu-gallery-section{
    padding: 68px 22px 80px;
  }

  .goksu-gallery-head{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .goksu-gallery-head > p{
    max-width: 650px;
  }

  .goksu-gallery-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-rows: 230px;
  }

  .goksu-gallery-wide{
    grid-column: span 2;
  }

  .goksu-gallery-tall{
    grid-row: span 2;
  }
}

/* Mobil */
@media (max-width: 620px){
  .goksu-gallery-section{
    padding: 54px 16px 64px;
  }

  .goksu-gallery-head{
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .goksu-gallery-head > div{
    padding-bottom: 12px;
  }

  .goksu-gallery-head > div::after{
    bottom: -25px;
    width: 52px;
  }

  .goksu-gallery-head h2{
    font-size: 40px;
  }

  .goksu-gallery-grid{
    grid-template-columns: 1fr;
    grid-auto-rows: 245px;
    gap: 8px;
  }

  .goksu-gallery-wide,
  .goksu-gallery-tall{
    grid-column: auto;
    grid-row: auto;
  }

  .goksu-gallery-tile span{
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  .goksu-gallery-tile b{
    font-size: 17px;
  }

  .goksu-lightbox{
    padding: 55px 18px;
  }

  .goksu-lightbox-prev{ left: 8px; }
  .goksu-lightbox-next{ right: 8px; }
}

/* =========================================================
   GALERİ ÜST ŞERİT — KURUMSAL REVİZYON
   Galeri grid ve lightbox yapısına dokunmaz.
   ========================================================= */
.goksu-gallery-head{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 170px;
  align-items: center;
  gap: 64px;
  margin-bottom: 32px;
  padding: 30px 34px 32px;
  border-top: 1px solid #e3dfd8;
  border-bottom: 1px solid #d9d6d0;
  background:
    linear-gradient(90deg, rgba(180,13,50,.045) 0, rgba(180,13,50,0) 31%),
    #faf9f6;
}

.goksu-gallery-head::before{
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #b40d32;
}

.goksu-gallery-head::after{
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  top: -105px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(23,25,27,.055);
  border-radius: 50%;
}

.goksu-gallery-head > div{
  padding-bottom: 0;
}

.goksu-gallery-head > div::after{
  display: none;
}

.goksu-gallery-title{
  position: relative;
  min-width: 0;
}

.goksu-gallery-ghost{
  position: absolute;
  z-index: -1;
  left: -4px;
  top: 50%;
  transform: translateY(-48%);
  white-space: nowrap;
  color: rgba(23,25,27,.032);
  font-size: clamp(72px,8vw,126px);
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.065em;
  pointer-events: none;
  user-select: none;
}

.goksu-gallery-eyebrow{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.goksu-gallery-eyebrow::before{
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  background: #b40d32;
}

.goksu-gallery-head h2{
  position: relative;
  font-size: clamp(42px,4.2vw,62px);
}

.goksu-gallery-intro{
  position: relative;
  align-self: center;
  max-width: 410px;
  padding: 7px 0 7px 24px;
  border-left: 2px solid #b40d32;
}

.goksu-gallery-head > .goksu-gallery-intro > p{
  margin: 10px 0 0;
  max-width: 390px;
  color: #666a6d;
  font-size: 14px;
  line-height: 1.75;
}

.goksu-gallery-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #17191b;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
}

.goksu-gallery-meta i{
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b40d32;
}

@media (max-width: 900px){
  .goksu-gallery-head{
    min-height: 0;
    gap: 24px;
    padding: 28px 28px 30px;
  }

  .goksu-gallery-intro{
    max-width: 650px;
  }

  .goksu-gallery-ghost{
    font-size: clamp(64px,14vw,105px);
  }
}

@media (max-width: 620px){
  .goksu-gallery-head{
    margin-bottom: 24px;
    padding: 25px 20px 26px;
  }

  .goksu-gallery-head h2{
    font-size: 40px;
  }

  .goksu-gallery-intro{
    padding-left: 17px;
  }

  .goksu-gallery-ghost{
    top: 54%;
    font-size: 62px;
  }
}
