/* CarseBid fotoğraf görüntüleyici 1.0.0 — yalnız .ceb-foto içini ve kart kapağının imlecini biçimlendirir. */
html.ceb-foto-acik, html.ceb-foto-acik body { overflow: hidden !important; overscroll-behavior: none; }
.ceb-foto { position: fixed; inset: 0; z-index: 2147483003; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100vw; height: 100vh; height: 100dvh; background: #0b1424; color: #fff; opacity: 0; transition: opacity .18s ease; -webkit-tap-highlight-color: transparent; font-family: inherit; }
.ceb-foto[hidden] { display: none !important; }
.ceb-foto.is-gorunur { opacity: 1; }
.ceb-foto-ust { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px)); }
.ceb-foto-kapat { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.ceb-foto-kapat:active { background: rgba(255, 255, 255, .28); }
.ceb-foto-sayac { font-size: 15px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ceb-foto-sahne { position: relative; z-index: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.ceb-foto-serit { display: flex; height: 100%; will-change: transform; }
.ceb-foto-kare { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ceb-foto-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; }
.ceb-foto-ok { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 20, 36, .55); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; transition: opacity .15s ease; }
.ceb-foto-onceki { left: max(8px, env(safe-area-inset-left, 0px)); }
.ceb-foto-sonraki { right: max(8px, env(safe-area-inset-right, 0px)); }
.ceb-foto-ok:disabled { opacity: .3; cursor: default; }
.ceb-foto.is-tek .ceb-foto-ok, .ceb-foto.is-yakin .ceb-foto-ok, .ceb-foto.is-surukle .ceb-foto-ok { opacity: 0; pointer-events: none; }
.ceb-foto-alt { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.ceb-foto-alt:empty { padding: 0 0 env(safe-area-inset-bottom, 0px); }
/* Dik ekranda sayaç altta, ortada; yatayda üstte (alt alan gizli) */
.ceb-foto-alt { flex-wrap: wrap; row-gap: 6px; }
.ceb-foto-sayac-alt { flex-basis: 100%; text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ceb-foto-sayac-ust { display: none; }
.ceb-foto-ozet { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ceb-foto-ad { font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ceb-foto-fiyat { font-size: 15px; font-weight: 700; color: #ffb36b; }
.ceb-foto-ek { font-size: 13px; color: rgba(255, 255, 255, .78); }
.ceb-foto-incele { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: #173e65; font-size: 14px; font-weight: 700; text-decoration: none; }
.ceb-foto :focus-visible { outline: 3px solid #fbb45b; outline-offset: 2px; }
/* Yatay telefon: fotoğraf bütün ekranı kaplar; üst çubuk ve oklar fotoğrafın üstünde, bilgi gizli */
@media (orientation: landscape) and (max-height: 540px) {
  .ceb-foto { display: block; }
  .ceb-foto-sahne { position: absolute; inset: 0; }
  .ceb-foto-ust { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
  .ceb-foto-alt { display: none; }
  .ceb-foto-sayac-ust { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .ceb-foto, .ceb-foto-ok { transition: none; } }
/* Kart kapağı ve detaydaki ana fotoğraf: dokunulabilir */
.ceb-foto-kapak { cursor: zoom-in; }
.ceb-detail-gallery .ceb-photo-link { cursor: zoom-in; }
