/* REWP — ilan galerisi ve ortak fotoğraf görüntüleyici (yalnızca ilan sayfasında yüklenir).
   Klasik temaların .prop-gallery kuralları (2fr 1fr 1fr, ilk görsel 2 satır) temada duruyor;
   burada yalnız fotoğraf sayısına göre düzen ve bağlantı sarmalayıcısı için eklemeler var.
   Seçiciler temadakinden özgül olduğu için yükleme sırasından bağımsız çalışır. */

/* ---------- Klasik galeri: tıklanabilir fotoğraflar ---------- */
.prop-gallery{position:relative}
.prop-gallery > a{display:block;position:relative;min-width:0;overflow:hidden;cursor:zoom-in;color:inherit}
.prop-gallery > a img{display:block;transition:transform .35s ease}
.prop-gallery > a:first-child img{aspect-ratio:auto}
.prop-gallery > a:hover img{transform:scale(1.02)}
.prop-gallery > a:focus-visible{outline:3px solid var(--accent,#2563eb);outline-offset:-3px;z-index:1}
.prop-gallery__more{position:absolute;inset:0;display:grid;place-items:center;background:rgba(10,12,14,.5);
  color:#fff;font-weight:700;font-size:22px;letter-spacing:.01em}
.prop-gallery__all{position:absolute;right:12px;bottom:12px;z-index:2;display:inline-flex;align-items:center;gap:8px;
  min-height:40px;padding:9px 15px;border:1px solid rgba(0,0,0,.12);border-radius:8px;background:#fff;color:#111;
  font:inherit;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.prop-gallery__all:hover{background:#f3f4f6}
.prop-gallery__all:focus-visible{outline:3px solid var(--accent,#2563eb);outline-offset:2px}

/* Fotoğraf sayısına göre düzen: boş hücre kalmasın.
   1: tam genişlik · 2: iki eşit yarı · 3: büyük + iki · 4: büyük + iki + geniş · 5+: büyük + dört */
.prop-gallery--1 > a:first-child,
.prop-gallery--2 > a:first-child{grid-row:auto;grid-column:auto}
.prop-gallery.prop-gallery--1{grid-template-columns:1fr}
.prop-gallery--1 > a:first-child img{aspect-ratio:16/9;height:auto;max-height:560px}
.prop-gallery.prop-gallery--2{grid-template-columns:1fr 1fr}
.prop-gallery.prop-gallery--2 > a img{aspect-ratio:3/2;height:auto}
@media (min-width:861px){
  .prop-gallery.prop-gallery--3{grid-template-columns:2fr 1fr}
  .prop-gallery--4 > a:nth-child(4){grid-column:span 2}
  .prop-gallery--4 > a:nth-child(4) img{aspect-ratio:8/3}
}
@media (max-width:860px){
  .prop-gallery.prop-gallery--4{grid-template-columns:1fr 1fr 1fr}
  .prop-gallery--4 > a:first-child{grid-column:span 3}
  .prop-gallery--1 > a:first-child img{aspect-ratio:4/3}
  /* Telefonda küçük resimlerin üstüne binmesin: galerinin altında tam genişlik satır */
  .prop-gallery__all{position:static;grid-column:1/-1;justify-content:center;min-height:44px;box-shadow:none;
    border-color:var(--line,rgba(0,0,0,.15))}
}

/* ---------- Görüntüleyici (lightbox) ---------- */
html.rewp-lb-open,html.rewp-lb-open body{overflow:hidden}
.rewp-lb{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#0b0c0e;color:#fff;
  font-family:inherit;opacity:0;transition:opacity .2s ease}
.rewp-lb[hidden]{display:none}
.rewp-lb.is-open{opacity:1}
.rewp-lb__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 20px;flex:0 0 auto}
.rewp-lb__count{font-size:15px;font-weight:600;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.rewp-lb__stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;
  padding:0 72px 12px;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.rewp-lb__img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:4px;
  transition:opacity .2s ease}
.rewp-lb.is-loading .rewp-lb__img{opacity:.35}
.rewp-lb__cap{margin:0;padding:0 20px 16px;text-align:center;font-size:15px;line-height:1.45;color:rgba(255,255,255,.85);flex:0 0 auto}
.rewp-lb__cap:empty{display:none}
.rewp-lb__btn{display:inline-grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;cursor:pointer;transition:background .15s ease}
.rewp-lb__btn:hover{background:rgba(255,255,255,.24)}
.rewp-lb__btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.rewp-lb__btn svg{width:24px;height:24px}
.rewp-lb__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:1}
.rewp-lb__prev{left:12px}
.rewp-lb__next{right:12px}
.rewp-lb--single .rewp-lb__nav,.rewp-lb--single .rewp-lb__count{display:none}
.rewp-lb__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:640px){
  .rewp-lb__stage{padding:0 0 8px}
  .rewp-lb__nav{width:44px;height:44px;background:rgba(0,0,0,.55)}
  .rewp-lb__prev{left:8px}
  .rewp-lb__next{right:8px}
}
@media (prefers-reduced-motion:reduce){
  .rewp-lb,.rewp-lb__img,.rewp-lb__btn,.prop-gallery > a img{transition:none}
  .prop-gallery > a:hover img{transform:none}
}
