/* yelekler.com — gallery grid (square tiles) + lightbox v1
   Loads after style.css; pairs with /js/lightbox.js. */

/* ---------- gallery grid: square tiles ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
}
.gallery-item{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:12px;
  background:linear-gradient(135deg,#F4FBFC,#E3F4FD);
  border:1px solid rgba(31,184,245,.10);
  cursor:zoom-in;
  transition:transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.gallery-item:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(31,184,245,.22);
  border-color:rgba(31,184,245,.42);
}
.gallery-item:focus-visible{
  outline:3px solid #1FB8F5;
  outline-offset:2px;
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.gallery-item:hover img{ transform:scale(1.04); }
.gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 70%,rgba(0,0,0,.22) 100%);
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
}
.gallery-item:hover::after{ opacity:1; }

/* ---------- lightbox overlay ---------- */
.yl-lightbox{
  position:fixed; inset:0;
  background:rgba(8,12,20,.94);
  display:none;
  z-index:10000;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.yl-lightbox.open{
  display:flex;
  animation:yl-fade .18s ease-out;
}
@keyframes yl-fade{ from{opacity:0} to{opacity:1} }

.yl-lightbox__stage{
  position:relative;
  max-width:96vw;
  max-height:92vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.yl-lightbox__img{
  max-width:96vw;
  max-height:84vh;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 16px 60px rgba(0,0,0,.7);
  user-select:none;
  -webkit-user-drag:none;
}
.yl-lightbox__caption{
  position:absolute;
  left:0; right:0;
  bottom:-46px;
  color:#fff;
  text-align:center;
  font-size:.92rem;
  line-height:1.4;
  text-shadow:0 1px 3px rgba(0,0,0,.85);
  padding:0 12px;
  font-family:Inter,system-ui,sans-serif;
}
.yl-lightbox__counter{
  position:absolute;
  top:-30px;
  left:6px;
  color:rgba(255,255,255,.7);
  font-size:.82rem;
  font-family:Inter,system-ui,sans-serif;
  letter-spacing:.04em;
}
.yl-lightbox__btn{
  position:absolute;
  background:rgba(255,255,255,.14);
  border:0;
  color:#fff;
  width:48px; height:48px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  line-height:1;
  transition:background .15s, transform .15s;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  user-select:none;
  font-family:Arial,sans-serif;
}
.yl-lightbox__btn:hover{ background:rgba(255,255,255,.28); }
.yl-lightbox__btn:focus-visible{ outline:2px solid #1FB8F5; outline-offset:2px; }
.yl-lightbox__close{ top:18px; right:18px; }
.yl-lightbox__close:hover{ transform:scale(1.08); }
.yl-lightbox__prev{ left:18px; top:50%; transform:translateY(-50%); }
.yl-lightbox__next{ right:18px; top:50%; transform:translateY(-50%); }
.yl-lightbox__prev:hover{ transform:translateY(-50%) translateX(-2px); }
.yl-lightbox__next:hover{ transform:translateY(-50%) translateX(2px); }

@media(max-width:640px){
  .yl-lightbox__btn{ width:42px; height:42px; font-size:22px; }
  .yl-lightbox__prev{ left:6px; }
  .yl-lightbox__next{ right:6px; }
  .yl-lightbox__close{ top:8px; right:8px; }
  .yl-lightbox__caption{ font-size:.84rem; bottom:-40px; }
  .gallery-grid{ grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; }
}
