/* Search and related recipes share plain, square-photo previews. */
.photorecept-discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
}

.photorecept-discovery-grid .photorecept-discovery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #22383d;
}

.photorecept-discovery-card .photorecept-discovery-card__image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f6f6;
}

.photorecept-discovery-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.photorecept-discovery-card .photorecept-discovery-card__title {
  margin: 12px 0 0;
  padding: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  overflow-wrap: anywhere;
}

.photorecept-discovery-card .photorecept-discovery-card__title a,
.photorecept-discovery-card .photorecept-discovery-card__byline a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.photorecept-discovery-card .photorecept-discovery-card__title a:hover {
  color: #087f89;
  text-decoration: underline;
}

.photorecept-discovery-card a:focus-visible,
.photorecept-discovery-card button:focus-visible {
  outline: 2px solid #087f89;
  outline-offset: 3px;
}

.photorecept-discovery-card .photorecept-discovery-card__excerpt {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.photorecept-discovery-card__byline {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.photorecept-discovery-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

.photorecept-discovery-card__meta { min-width: 0; }
.photorecept-discovery-card__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.photorecept-preview-stars { display: inline-flex; flex: 0 0 auto; color: #087f89; }
.photorecept-preview-stars svg { display: block; }
.photorecept-preview-unrated,
.photorecept-discovery-card__time { color: #28757c; font-size: 12px; line-height: 1.5; }
.photorecept-discovery-card__time { display: block; margin-top: 3px; }

.photorecept-discovery-card .photorecept-action-button.photorecept-preview-save {
  position: relative;
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #eaf6f7;
  color: #087f89 !important;
  box-shadow: none;
}

.photorecept-discovery-card .photorecept-preview-save::before { display: none; }
.photorecept-preview-save span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.photorecept-discovery-card .photorecept-preview-save:hover { background: #d8eff1; }
.photorecept-preview-save.is-saved svg { fill: currentColor; }
.photorecept-preview-save:disabled { cursor: wait; opacity: .6; }
.photorecept-discovery-card .photorecept-favorite-status { margin: 6px 0 0; font-size: 12px; color: #28757c; }
.photorecept-discovery-card .photorecept-favorite-status:empty { display: none; }
.photorecept-discovery-card .photorecept-favorite-status.is-error { color: #9e3030; }

.related-recipes-w.photorecept-recipe-related {
  padding: 28px 32px;
  border-radius: 0;
  background: #fff;
}

@media (max-width: 767px) {
  .photorecept-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .photorecept-discovery-card .photorecept-discovery-card__title { font-size: 16px; }
  .photorecept-discovery-card .photorecept-discovery-card__excerpt { font-size: 14px; }
  .related-recipes-w.photorecept-recipe-related { padding: 22px 20px; }
}
@media (max-width: 359px) {
  .photorecept-discovery-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .photorecept-discovery-card .photorecept-preview-save { min-height: 44px; height: 44px; }
}
