body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: transparent;
}

.gallery .tile {
  appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
  width: 100%;
}

.gallery .tile img {
  display: block;
  width: 100%;
}

.tile .caption,
.tile .plate-description,
.tile .coach-credit {
  display: block;
}

.tile .plate-description {
  margin: 6px 10px 12px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.tile .coach-credit {
  margin: 0 10px 10px;
  font-size: 0.82rem;
  opacity: 0.8;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: 95vw;
  max-height: 92vh;
  text-align: center;
}

#lightboxImage {
  max-width: 95vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 0 55px rgba(0,0,0,0.75);
}

#lightboxCaption {
  color: #fff;
  margin-top: 12px;
  max-width: 860px;
  line-height: 1.45;
  padding: 0 18px;
}

.lightbox-arrow,
.lightbox-close {
  position: absolute;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border: 0;
  cursor: pointer;
  user-select: none;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.2rem;
  padding: 12px;
  border-radius: 14px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close {
  top: 18px;
  right: 28px;
  font-size: 3.4rem;
  line-height: 1;
  background: transparent;
  text-shadow: 0 0 14px #000;
}

.profile-meal-card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.profile-meal-card h2 {
  margin-top: 0;
}

.plate-upload-form {
  display: grid;
  gap: 14px;
}

.plate-upload-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.plate-upload-form input,
.plate-upload-form select,
.plate-upload-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font: inherit;
}

.plate-upload-form textarea {
  min-height: 110px;
  resize: vertical;
}

.plate-preview {
  max-width: 260px;
  border-radius: 12px;
  display: none;
}

.form-status {
  min-height: 1.4em;
  font-weight: 700;
}

.form-status.is-error { color: #AF1E2D; }
.form-status.is-success { color: #14532d; }
