.ym-ig-last-posts{
  max-width:1180px;
  margin:18px auto 26px;
  padding:0 18px;
}
.ym-ig-last-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  text-align:center;
  margin-bottom:14px;
}
.ym-ig-last-head h2{
  margin:0;
  font-size:24px;
  color:#3b2414;
  font-weight:900;
}
.ym-ig-handle{
  color:#c94816;
  font-weight:900;
}
.ym-ig-badge{
  background:linear-gradient(135deg,#f39a22,#e75616);
  color:#fff;
  border-radius:999px;
  padding:7px 13px;
  font-weight:900;
  font-size:12px;
  box-shadow:0 8px 18px rgba(229,86,22,.22);
}
.ym-ig-last-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
.ym-ig-last-card{
  display:block;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(109,64,16,.12);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(74,40,0,.10);
  aspect-ratio:1/1;
  padding:0;
  cursor:pointer;
}
.ym-ig-last-card img,
.ym-ig-last-card video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border:0;
}
.ym-ig-last-card:hover img,
.ym-ig-last-card:hover video{
  transform:scale(1.025);
  transition:.2s ease;
}
.ym-ig-video-badge{
  position:absolute;
  right:8px;
  top:8px;
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:14px;
}
.ym-ig-post-modal[hidden]{display:none!important}
.ym-ig-post-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.ym-ig-post-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,10,10,.88);
  backdrop-filter:blur(4px);
}
.ym-ig-post-dialog{
  position:relative;
  width:min(94vw,920px);
  max-height:94vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.ym-ig-post-close{
  position:absolute;
  right:-10px;
  top:-12px;
  z-index:2;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.ym-ig-post-view{
  width:100%;
  height:min(76vh,820px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ym-ig-post-view img,
.ym-ig-post-view video{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  background:#111;
  box-shadow:0 20px 60px rgba(0,0,0,.4);
}
.ym-ig-post-info{
  color:#fff;
  text-align:center;
  max-width:760px;
}
.ym-ig-post-info strong{
  display:block;
  font-size:17px;
  margin-bottom:5px;
}
.ym-ig-post-info p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
@media(max-width:900px){
  .ym-ig-last-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ym-ig-last-head h2{font-size:20px}
}
@media(max-width:520px){
  .ym-ig-last-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ym-ig-last-posts{padding:0 12px}
  .ym-ig-post-modal{padding:12px}
  .ym-ig-post-close{right:2px;top:2px}
}


/* ID Bilişim güncellemesi: API bağlı değilken de Instagram alanı boş kalmasın */
.ym-ig-post-placeholder,.ym-ig-last-placeholder{position:relative;display:flex!important;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff7ed,#ecfdf5 48%,#fff1f2)!important;border:1px dashed rgba(249,115,22,.38)!important;min-height:160px;overflow:hidden}
.ym-ig-post-placeholder img,.ym-ig-last-placeholder img{width:58%!important;height:58%!important;object-fit:contain!important;filter:drop-shadow(0 12px 18px rgba(15,23,42,.12));opacity:.94}
.ym-ig-placeholder-badge{position:absolute;left:12px;bottom:12px;border-radius:999px;background:rgba(0,115,72,.92);color:#fff;font-weight:900;font-size:12px;padding:7px 11px;box-shadow:0 10px 22px rgba(0,115,72,.2)}
.ym-ig-post-placeholder:after,.ym-ig-last-placeholder:after{content:'Yunmar Market';position:absolute;right:12px;top:12px;border-radius:999px;background:rgba(255,255,255,.9);color:#0f7a4f;font-weight:900;font-size:12px;padding:7px 11px;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.ym-nav a{white-space:nowrap}.ym-nav{gap:8px;flex-wrap:wrap}.ym-nav a[href*="is-basvurusu"]{background:rgba(0,115,72,.12);border-color:rgba(0,115,72,.18);color:#075f3f!important;font-weight:900}
@media(max-width:760px){.ym-ig-post-placeholder,.ym-ig-last-placeholder{min-height:136px}.ym-ig-post-placeholder img,.ym-ig-last-placeholder img{width:64%!important;height:64%!important}.ym-nav{justify-content:center}}
