/* gecis.css — gecis.js ile birlikte kullanılır.
   <div data-gecis="suluboya"><img …><img …><img …></div>
   İlk görsel JS beklemeden görünür; diğerleri aynı kutuda üst üste durur (alt metinleri korunur).
   Tuval yalnız geçiş sırasında görünür (aria-hidden). */

[data-gecis] {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}
/* Mevcut bir görselin yerine konan sahne sarmalayıcısı: görselin kutusunu aynen doldurur */
.gecis-sahne { width: 100%; height: 100%; }

[data-gecis] > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  margin: 0;
}
[data-gecis] > img:not(:first-of-type) {
  position: absolute !important;
  inset: 0;
  left: 0;
  top: 0;
  opacity: 0;
}
[data-gecis].gecis-hazir > img { opacity: 0; }
[data-gecis].gecis-hazir > img.gecis-on { opacity: 1; }
/* Motor yoksa ya da hareket azaltma açıksa: yumuşak opaklık geçişi */
[data-gecis].gecis-yumusak > img { transition: opacity .7s ease; }

.gecis-tuval {
  position: absolute !important;
  inset: 0;
  left: 0;
  top: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}
.gecis-tuval.gecis-acik { opacity: 1; }

[data-gecis][data-gecis-tetik="tikla"],
[data-gecis][data-gecis-tetik="hover"] { cursor: pointer; }

/* JS kapalıyken: ilk görsel görünür kalır (diğerleri gizli) */
@media print {
  .gecis-tuval { display: none !important; }
}
