kk.tt-page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Make the whole tile clickable */
.tt-tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tt-tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tt-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tt-tile .tt-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.tt-tile:hover .tt-bg {
  transform: scale(1.05);
}

/* Caption bar at bottom */
.tt-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  z-index: 2;
}

/* Dark mode */
.tt-caption.dark-bg {
  background: rgba(17,17,17,0.75);
  color: #fff;
}
.tt-caption.dark-bg h2 { color: #fff; }
.tt-caption.dark-bg p  { color: #ddd; }

/* Light mode */
.tt-caption.light-bg {
  background: rgba(255,255,255,0.85);
  color: #222;
}
.tt-caption.light-bg h2 { color: #111; }
.tt-caption.light-bg p  { color: #333; }

.tt-caption h2 {
  margin: 0 0 6px;
  font-size: 1.2em;
  font-weight: bold;
}

.tt-caption p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .tt-tile {
    min-height: 240px;
  }
  .tt-caption {
    padding: 12px 15px;
  }
}
.tt-tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.tt-tile .tt-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;   /* ✅ image behind */
}

.tt-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  z-index: 10;  /* ✅ force above image */
}

/* Dark mode (text always visible) */
.tt-caption.dark-bg {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 100%);
  color: #fff !important;
}
.tt-caption.dark-bg h2,
.tt-caption.dark-bg p {
  color: #fff !important;
}

/* Light mode (text always visible) */
.tt-caption.light-bg {
  background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
  color: #111 !important;
}
.tt-caption.light-bg h2,
.tt-caption.light-bg p {
  color: #111 !important;
}/* Force captions visible */
.tt-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  z-index: 9999;             /* ✅ sits above image and theme layers */
  display: block;
  min-height: 60px;          /* ✅ ensures it has height */
  background: rgba(0,0,0,0.6); /* ✅ always show a dark backdrop (for testing) */
}

/* Force text visible regardless of theme */
.tt-caption h2,
.tt-caption p {
  margin: 0;
  color: #fff !important;    /* ✅ make text white for testing */
  position: relative;
  z-index: 10000;
}
