* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 12px 20px;
}

.page-title {
  font-size: 14px;
  font-weight: 400;
  color: #E82929;
  letter-spacing: -0.2px;
}

.admin-link {
  font-size: 12px;
  color: #E82929;
  text-decoration: none;
  opacity: 0.35;
}
.admin-link:hover { opacity: 1; }

/* ── Grid: 4 independent columns ── */
.grid-wrapper {
  display: flex;
  gap: 2px;
  background: #E82929;
  padding: 2px;
}

.grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Cells ── */
.grid-cell {
  background: white;
  border-radius: 8px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.grid-cell.empty {
  cursor: default;
}

.cell-number {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #E82929;
}

.grid-cell .hero-img {
  max-width: 65%;
  max-height: 175px;
  object-fit: contain;
  pointer-events: none;
}

/* ── Expanded cell (in-place, pushes column down) ── */
.grid-cell.expanded {
  background: #FFD900;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: default;
  padding: 20px;
  min-height: 0;
  overflow: hidden;
  width: 0;
  min-width: 100%;
}

.exp-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #E82929;
}

.exp-top-num {
  flex-shrink: 0;
}

.exp-top-date {
  text-align: right;
}

.exp-hero {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
}

.exp-recipe-header {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #E82929;
  text-decoration: underline;
  margin-bottom: 10px;
}

.exp-ingredients {
  list-style: none;
  margin-bottom: 18px;
  line-height: 2;
  width: 100%;
}

.ing-line {
  display: flex;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #E82929;
  line-height: 1.7;
}

.ing-left {
  flex-shrink: 0;
  white-space: nowrap;
}

.ing-dashes {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ing-right {
  flex-shrink: 0;
  white-space: nowrap;
}

.exp-vw {
  margin-bottom: 18px;
  width: 100%;
}

.exp-vw-ratio {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #E82929;
  margin-bottom: 2px;
}

.exp-vw-line {
  line-height: 1.7;
}

.exp-photos { }

.exp-photos-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #E82929;
  text-decoration: underline;
  margin-bottom: 10px;
  cursor: pointer;
}
.exp-photos-link:hover { opacity: 0.7; }

.exp-photo-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

#lightbox.active {
  display: flex;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.exp-photo-thumb {
  cursor: zoom-in;
}

.exp-photo-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #E82929;
}
