/* Ana sayfa galerisi ve Projeler sayfası */
#islerimiz .gallery,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-featured,
.projects-featured {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy-900);
  min-height: 400px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.feature-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.feature-slide.is-active { opacity: 1; pointer-events: auto; }
.gallery-featured.is-carousel::after,
.projects-featured.is-carousel::after { display: none; }
.feature-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,40,.76), rgba(8,24,40,.08) 72%); }
.feature-slide .gallery-featured__copy,
.feature-slide .projects-featured__copy { position: relative; z-index: 1; }
.feature-controls { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 9px; }
.feature-controls__dot { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.feature-controls__dot[aria-current="true"] { background: var(--orange); border-color: var(--orange); }
.feature-controls__dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .feature-slide { transition: none; } }

.gallery-featured img,
.projects-featured img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.gallery-featured::after,
.projects-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,24,40,.76), rgba(8,24,40,.08) 72%);
}

.gallery-featured__copy,
.projects-featured__copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
  min-height: 400px;
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.gallery-featured__badge,
.projects-featured__badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gallery-featured__copy h3,
.projects-featured__copy h2 {
  color: #fff;
  font: 700 clamp(1.5rem, 3vw, 2.5rem)/1.2 var(--font-head);
}

.gallery-featured__copy p,
.projects-featured__copy p { margin-top: 10px; color: #e6eef6; }

#islerimiz .gallery__item,
.projects-grid__item {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#islerimiz .gallery__item img,
.projects-grid__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

#islerimiz .gallery__item:hover img,
.projects-grid__item:hover img { transform: scale(1.035); }

#islerimiz .gallery__item figcaption,
.projects-grid__item figcaption {
  position: static;
  display: block;
  padding: 16px 18px;
  min-height: 62px;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: .94rem;
}

.gallery-actions { display: flex; justify-content: center; margin-top: 34px; }
.gallery-note { margin: -10px 0 22px; text-align: center; font-size: .8rem; color: var(--muted); }

.before-after__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.compare-card { min-width: 0; overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.compare-card__visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b1a2b; --split: 50%; }
.compare-card__visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; pointer-events: none; }
.compare-card__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-card__tag { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 8px; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; pointer-events: none; }
.compare-card__tag--before { left: 16px; background: rgba(7,19,31,.75); }
.compare-card__tag--after { right: 16px; background: var(--orange); }
.compare-card__divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--split); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.25); }
.compare-card__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-900); background: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
.compare-card__range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-card__visual:focus-within { outline: 3px solid var(--orange); outline-offset: -3px; }
.compare-card__copy { padding: 20px 22px 24px; }
.compare-card__copy h3 { font: 700 1.04rem var(--font-head); color: var(--navy); }
.compare-card__copy p { color: var(--muted); margin-top: 6px; font-size: .91rem; }

.projects-hero { background: linear-gradient(150deg, #0b1a2b, #16314e); color: #fff; padding: 70px 0; }
.projects-hero .section__label { color: var(--amber); }
.projects-hero h1 { font: 800 clamp(2.2rem, 5vw, 4rem)/1.13 var(--font-head); margin: 10px 0 15px; }
.projects-hero p { max-width: 690px; color: #dbe6f0; }
.projects-page .section__head { text-align: center; }
.projects-grid__item p { color: var(--muted); padding: 0 18px 18px; font-size: .88rem; }
.projects-page .before-after { background: var(--bg-alt); }
.projects-cta { text-align: center; padding: 60px 0; }
.projects-cta h2 { font: 700 clamp(1.5rem, 3vw, 2rem) var(--font-head); color: var(--navy); margin-bottom: 18px; }

@media (max-width: 900px) {
  #islerimiz .gallery, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  #islerimiz .gallery, .projects-grid, .before-after__grid { grid-template-columns: 1fr; }
  .gallery-featured, .projects-featured, .gallery-featured img, .projects-featured img, .gallery-featured__copy, .projects-featured__copy { min-height: 360px; }
  .gallery-featured::after, .projects-featured::after { background: linear-gradient(0deg, rgba(8,24,40,.84), rgba(8,24,40,.03) 75%); }
  .feature-slide::after { background: linear-gradient(0deg, rgba(8,24,40,.84), rgba(8,24,40,.03) 75%); }
}
