body {
  margin: 0;
  font: 16px/1.6 system-ui, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f5f8f9 0%, #e9eff1 100%);
  color: #0f2227;
  min-height: 100vh;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.hero p {
  margin: 0;
  max-width: 56rem;
  color: #4b5c63;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid #e1ecee;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gallery-count {
  color: #6c7a7e;
  font-size: 0.95rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid #c5d5d9;
  background: #e1ecee;
  color: #0f2227;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: #d4e6e8;
  transform: translateY(-2px);
}

.gallery-figure {
  margin: 0;
}

.gallery-figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid #d6e5e8;
  box-shadow: 0 12px 28px rgba(15, 34, 39, 0.08);
  background: #f8fbfb;
}

.gallery-caption {
  margin-top: 14px;
}

.gallery-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.gallery-caption p {
  margin: 0;
  color: #2f3d40;
}

.site-footer {
  margin-top: 22px;
  text-align: center;
  color: #6c7a7e;
}

.site-footer a {
  color: #00787d;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .gallery-controls {
    justify-content: center;
  }

  .gallery-count {
    width: 100%;
    text-align: center;
    order: -1;
  }

  button {
    flex: 1 1 180px;
  }
}
