.parish-archive {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.parish-grid {
  display: block;
}

.parish-card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 100%;
}

.parish-image img {
  width: 300px;
  height: 300px;
  border-radius: 6px;
  object-fit: cover;
}

.parish-details {
  flex: 1;
}

.parish-details h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.parish-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #555;
}

.details-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}
.details-link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .parish-card {
    flex-direction: column;
    align-items: center;
  }

  .parish-image img {
    width: 100%;
    max-width: 400px;
  }
}

/*this is for search*/

.parish-search-form {
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.parish-search-form input[type="search"] {
  flex: 1;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.parish-search-form button {
  padding: 0.6rem 1rem;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.parish-search-form button:hover {
  background-color: #005f8d;
}
/*end this is for search*/