body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #eaf4fb;
  color: #2f2f2f;
  line-height: 1.6;
}

.hero {
  background:
    linear-gradient(rgba(20, 30, 40, 0.55), rgba(20, 30, 40, 0.55)),
    url("images/beach-sunset.jpg") center/cover no-repeat;
  color: white;
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.25rem;
  margin-top: 10px;
}

.hero-photos {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
  .hero-photo {
    width: 96px;
    height: 96px;
  }
}

.visit-counter {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14pt;
  color: #eaf4fb; /* matches body background — invisible until selected */
  user-select: text;
}

main {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: white;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  color: #23395d;
}

.card ul {
  margin: 0;
  padding-left: 22px;
}

.card ul li {
  margin-bottom: 6px;
}

.highlight {
  border-left: 8px solid #7c9a6d;
}

a {
  color: #1d5f99;
}

footer {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* Photo gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-loading {
  color: #777;
  font-style: italic;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Memory wall */

.memory-quip {
  display: inline-block;
  background: #fbf0d9;
  border: 1px solid #e9d19b;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #6b4f1d;
}

.memory-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.memory-form label {
  font-weight: bold;
  font-size: 0.95rem;
}

.memory-form input[type="text"],
.memory-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}

.memory-form button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 22px;
  background: #23395d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.memory-form button:hover {
  background: #1a2c47;
}

.memory-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.memory-form-status {
  min-height: 1.2em;
  color: #3a6b3a;
  font-size: 0.95rem;
}

.memory-form-status-error {
  color: #a33a3a;
}

/* Honeypot field: present in the DOM for bots, invisible to people */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.memory-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.memory-item {
  border-top: 1px solid #e3e0d8;
  padding-top: 16px;
}

.memory-meta {
  margin: 0 0 4px;
  font-weight: bold;
  color: #23395d;
  font-size: 0.95rem;
}

.memory-body {
  margin: 0;
  white-space: pre-wrap;
}

.memory-list-loading,
.memory-list-empty {
  color: #777;
  font-style: italic;
}

/* Admin delete mode (?admin) */

.memory-admin-select {
  display: block;
  font-size: 0.85rem;
  color: #a33a3a;
  margin-bottom: 6px;
  cursor: pointer;
}

.memory-admin-select input {
  margin-right: 6px;
}

.memory-admin-bar {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #e3e0d8;
}

.memory-admin-bar button {
  padding: 10px 22px;
  background: #a33a3a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.memory-admin-bar button:hover {
  background: #822d2d;
}
