.teceem-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(var(--teceem-cols,3), minmax(0,1fr));
  gap:16px;
}

/* Responsive fallback */
@media (max-width: 1024px){
  .teceem-grid{grid-template-columns:repeat(3, minmax(0,1fr));}
}
@media (max-width: 767px){
  .teceem-grid{grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width: 480px){
  .teceem-grid{grid-template-columns:1fr;}
}

.teceem-card-link{display:block; text-decoration:none; color:inherit;}

.teceem-card{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:#111;
}

/* Fixed card media size: crop without stretching */
.teceem-media{
  width:100%;
  aspect-ratio:16/9;
  position:relative;
  overflow:hidden;
}

.teceem-media img.teceem-img,
.teceem-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.teceem-img--placeholder{
  width:100%;
  height:100%;
  background:linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
}

.teceem-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:14px;
  gap:10px;
  pointer-events:none;
}

.teceem-title{
  font-size:18px;
  line-height:1.15;
  font-weight:700;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,0.55);
}

.teceem-date{
  align-self:flex-start;
  background:rgba(0,0,0,0.60);
  color:#fff;
  font-weight:800;
  font-size:16px;
  padding:8px 10px;
  border-radius:10px;
  letter-spacing:0.5px;
}

/* Subtle overlay fade so text remains legible */
.teceem-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.0));
  pointer-events:none;
}

/* Keep overlay above the fade */
.teceem-overlay{z-index:2;}
.teceem-media{z-index:1;}

.teceem-empty{padding:16px;}
