/* =========================================================
   Shared Meal Ideas — Isolated Gallery Grid
   Does NOT affect other site sections
   ========================================================= */

/* ---------- Gallery Grid ---------- */
.gallery {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.25rem;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;

  align-items: stretch;
}

/* ---------- Tile ---------- */
.tile {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  cursor: pointer;

  display: flex;
  flex-direction: column;

  transition: transform .15s ease, box-shadow .15s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}

/* ---------- Image ---------- */
.tile img {
  width: 100%;
  height: 180px;

  object-fit: cover;
  display: block;

  background: #f2f2f2;
}

/* ---------- Caption ---------- */
.caption {
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  text-align: center;
  color: #192168;
  line-height: 1.35;
  background: #fff;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .tile img {
    height: 160px;
  }
}
