.table-selector-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.table-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 15px;
  text-align: center;
  overflow: hidden;
}

.table-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f3f3;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-bottom: 10px;
}

.table-details h3 {
  margin-top: 0;
  color: #0073aa;
  font-size: 1.2em;
}

.table-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}

.table-meta p {
  margin: 0;
  font-size: 0.9em;
}

/* Modal */
.ts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ts-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

/* Responsive: stack info in mobile */
@media (max-width: 768px) {
  .table-meta {
    grid-template-columns: 1fr;
  }

  .table-card img {
    height: 160px;
  }
}
