/* Shared site styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    Helvetica,
    sans-serif;
  background: #f5f5f5;
  color: #111;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header / Nav */
.header {
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header h1 {
  font-size: 20px;
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: #007bff;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f0f8ff;
  font-size: 14px;
}
.nav a:hover {
  background: #e6f0ff;
}
.nav-people {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 600px;
}
.nav-person {
  color: #333;
  padding: 4px 8px;
  font-size: 13px;
  text-decoration: none;
}

/* People list */
.people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}
.person-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: block;
  text-align: center;
}
.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background: #f0f0f0;
}
.person-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  word-break: break-word;
}
.person-card .count {
  font-size: 14px;
  color: #666;
}

/* Images grid */
.images-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.image-card,
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.image-card img,
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.meta {
  padding: 10px 12px;
  font-size: 13px;
  color: #444;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}
.modal .inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: 900px;
}
.modal img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.close {
  position: fixed;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Utility */
.hidden {
  display: none !important;
}
