.layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* form */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.input,
.textarea {
  font-family: var(--serif-stack);
  font-size: clamp(16px, 1.8vw, 19px);
  color: #4f3528;
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid rgba(199, 154, 85, 0.5);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus,
.textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 85, 0.18);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.error { color: var(--lotus-red); font-size: 0.95rem; }
.submitRow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.success {
  text-align: center;
  padding: 1.4rem;
}
.successTitle { font-size: 1.6rem; color: var(--garnet); }

/* entries */
.entries { display: flex; flex-direction: column; gap: 1rem; }
.empty {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
}
.entry {
  position: relative;
  padding: 1.1rem 1.3rem;
}
.entryHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.entryName { font-size: 1.25rem; color: var(--garnet); }
.entryMeta { font-size: 0.85rem; color: var(--muted); }
.entryMsg { margin-top: 0.5rem; color: #4f3528; line-height: 1.6; white-space: pre-wrap; }
.entryQuote { color: var(--gold); font-size: 1.6rem; line-height: 0.6; }
/* Red ✕ delete control — clearly visible at the corner of each message. */
.removeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--lotus-red);
  color: #fff;
  border: 1.5px solid #fff7ec;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}
.removeBtn:hover { background: #d4212f; transform: scale(1.06); }

/* photo submit */
.photoWrap { margin-top: 0; }
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px dashed rgba(199, 154, 85, 0.6);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 252, 245, 0.6);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.drop:hover { background: rgba(255, 250, 238, 0.95); border-color: var(--gold); }
.dropIcon { font-size: 2rem; }
.fileName { color: var(--garnet); font-style: italic; }
.hiddenInput { display: none; }

/* password gate */
.gate {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.gateRow { display: flex; gap: 0.6rem; }
.gateRow .input { flex: 1; }

/* shared album grid */
.shareGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 1.6rem;
}
.shareTile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #2a1a12;
  box-shadow: 0 0 0 3px var(--wood-1), 0 4px 14px rgba(20, 8, 10, 0.25);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.shareTile img,
.shareTile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shareBadge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(18, 7, 9, 0.6);
  color: #f3ddc3;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 8px;
}
.shareCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.5rem 0.4rem;
  font-size: 12px;
  color: #fff7ec;
  background: linear-gradient(180deg, transparent, rgba(18, 7, 9, 0.7));
}
