.puppies-header {
  margin: 2rem 0 1.5rem;
}

.puppies-header h1,
.puppy-editor h2,
.puppy-card h2 {
  color: #253b2e;
}
.puppies-header p {
  max-width: 760px;
  margin: .5rem 0 0;
  color: #425448;
  line-height: 1.6;
}

.puppy-editor {
  padding: 1.25rem;
  border: 1px solid #d9d2c4;
  border-radius: 8px;
  background: #fffaf2;
  margin-bottom: 2rem;
}

.puppy-form-actions,
.puppy-card-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.puppy-photo-preview {
  margin-bottom: 1rem;
}

.puppy-photo-preview img {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d9d2c4;
}

.puppies-list {
  margin-bottom: 2rem;
}

.puppies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.puppy-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9d2c4;
  border-radius: 8px;
  background: #ffffff;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.puppy-card-button {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.puppy-card-button > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee8dc;
  transition: filter .2s ease;
}

.puppy-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0.75rem 1.75rem rgb(29 37 32 / 18%);
}

.puppy-card:hover .puppy-card-button > img {
  filter: brightness(0.72);
}

.puppy-card-body {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: .75rem;
  padding: 1rem;
}

.puppy-card-title {
  display: block;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #253b2e;
}

.puppy-card-description {
  display: block;
  margin: 0;
  white-space: pre-wrap;
}

.puppy-card-actions {
  margin-top: auto;
  padding: 0 1rem 1rem;
}

.puppy-details-modal {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
}

.puppy-details-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  padding: .75rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .82);
}

.puppy-details-image {
  display: block;
  width: 100%;
  height: 68vh;
  max-height: 720px;
  object-fit: cover;
  background: #ffffff;
}

.puppy-details-body {
  display: grid;
  gap: .75rem;
  padding: 1.25rem;
  background: #ffffff;
}

.puppy-details-body h2 {
  margin: 0;
  color: #253b2e;
}

.puppy-details-description {
  margin: 0;
  white-space: pre-wrap;
}

.puppy-details-description p,
.puppy-details-description ul,
.puppy-details-description ol {
  margin: 0;
}

.puppy-details-description ul,
.puppy-details-description ol {
  padding-left: 1.25rem;
}
