/* Section wrapper */
.tcafe-section{ width: 100%; }
.tcafe-empty{ color:#6b7280; padding: 10px 0; }

/* Wrap = safe area */
.tcafe-gallery-wrap{
  max-width: var(--tcafe-maxw, 1200px);
  margin: 0 auto;
  padding-left: var(--tcafe-pad, 24px);
  padding-right: var(--tcafe-pad, 24px);
  box-sizing: border-box;
}

/* Grid row-major (soldan sağa) */
.tcafe-gallery,
.tcafe-posts{
  --tcafe-gap: var(--tcafe-gap, 18px);
  display: grid;
  grid-template-columns: repeat(var(--tcafe-cols-desktop, 3), minmax(0, 1fr));
  gap: var(--tcafe-gap);
  align-items: start;
}
@media (max-width: 1024px){
  .tcafe-gallery,
  .tcafe-posts{
    grid-template-columns: repeat(var(--tcafe-cols-tablet, 2), minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .tcafe-gallery,
  .tcafe-posts{
    grid-template-columns: repeat(var(--tcafe-cols-mobile, 1), minmax(0, 1fr));
  }
}

.tcafe-gallery .tcafe-gitem{
  display: block;
  width: 100%;
  text-decoration: none;
  cursor: zoom-in;
}
.tcafe-gallery img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--tcafe-radius, 10px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* Posts */
.tcafe-post{
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--tcafe-radius, 10px);
  overflow: hidden;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tcafe-post-thumb img{
  width: 100%;
  height: auto;
  display: block;
}
.tcafe-post-meta{
  padding: 12px 12px 14px;
}
.tcafe-post-title{
  font-weight: 700;
  line-height: 1.25;
}
.tcafe-post-excerpt{
  margin-top: 8px;
  color: rgba(0,0,0,.65);
  font-size: 14px;
  line-height: 1.45;
}

/* Hover effects */
.tcafe-hover-none img,
.tcafe-hover-none .tcafe-post{ transition: none; }

.tcafe-hover-zoom .tcafe-gitem:hover img{ transform: scale(1.03); }
.tcafe-hover-lift .tcafe-gitem:hover img{ transform: translateY(-4px); }
.tcafe-hover-shadow .tcafe-gitem:hover img{ box-shadow: 0 12px 28px rgba(0,0,0,.18); }

.tcafe-hover-zoom .tcafe-post:hover{ transform: scale(1.01); }
.tcafe-hover-lift .tcafe-post:hover{ transform: translateY(-4px); }
.tcafe-hover-shadow .tcafe-post:hover{ box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* Lightbox */
.tcafe-lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.tcafe-lightbox-inner{
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
}
.tcafe-lightbox-inner img{
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 14px;
  display: block;
}
.tcafe-lightbox-close{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 40px;
  text-align: center;
}
