/* TTL Grid Widget for Elementor (Pub & Media) */

/* grid wrapper */
.ttl-pg-grid{
  display: grid;
  gap: 0px;
  grid-template-columns: repeat(var(--ttl-cols-desktop, 3), minmax(0, 1fr));
}

@media (max-width: 1024px){
  .ttl-pg-grid{
    grid-template-columns: repeat(var(--ttl-cols-tablet, 2), minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .ttl-pg-grid{
    grid-template-columns: repeat(var(--ttl-cols-mobile, 1), minmax(0, 1fr));
  }
}

/* link + tile */
.ttl-pg-link{ text-decoration:none; display:block; }
.ttl-pg-item{
  position: relative;
  width: 100%;
  min-height: 240px;
  border-radius: 0px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,.06);
  transition: transform .12s ease;
}

/* Hover = simple offset only (no overlay changes) */
.ttl-pg-link:hover .ttl-pg-item{
  transform: translateY(-3px);
}

/* overlay always visible */
.ttl-pg-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  opacity: 1;
}

/* overlay color layer */
.ttl-pg-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background-color:#ffffff2b;
}

/* meta */
.ttl-pg-meta{
  position:relative;
  text-align:center;
  max-width:92%;

  display: inline-flex;
  flex-direction: column;
  align-items: center; /* centers pills horizontally */
}

/* title */
.ttl-pg-title{
  margin:0 0 6px 0;
  color: #c62828;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.25;
}

/* org + date text (default color white) */
.ttl-pg-org,
.ttl-pg-date{
  color:#ffffff;
}

.ttl-pg-org{
  font-size:14px;
}

.ttl-pg-date{
  font-size: 12px;
}

/* pill highlight for org + date */
.ttl-pg-org,
.ttl-pg-date{
  display: inline-block;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.55); /* dark translucent */
  padding: 4px 10px;
  border-radius: 999px; /* pill shape */
  margin: 4px 0;
}

.ttl-grid-empty{ padding: 12px 0; opacity: .8; }
