.photo-topics {
  margin-block: clamp(1.75rem, 3.5vw, 3rem) clamp(2.5rem, 5vw, 4.5rem);
}

.photo-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-topic-card > img,
.garden-story > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: var(--photo-focus, center);
  background: var(--soft);
}

.photo-topic-card > img {
  aspect-ratio: 3 / 2;
}

.photo-topic-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.15rem 1.2rem;
}

.photo-topic-copy h3 {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  letter-spacing: -.02em;
}

.photo-topic-copy p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.45;
}

.photo-topic-copy a {
  margin-top: auto;
  padding-block: .3rem;
  font-size: .91rem;
  font-weight: 750;
}

.photo-topic-copy a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.photo-topic-copy a:focus-visible::after {
  outline: 3px solid #a2641a;
  outline-offset: -4px;
  border-radius: var(--radius);
}

.photo-topic-card:has(a:hover) {
  border-color: #91a88d;
  background: #fbfcf5;
}

.garden-photo-credit {
  color: var(--muted);
  font-size: .75rem;
}

.photo-topic-credit {
  margin-top: .55rem;
  text-align: right;
}

.garden-story {
  margin-block: clamp(1.8rem, 4.5vw, 3.8rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.garden-story > img {
  aspect-ratio: 16 / 9;
}

.garden-story figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  align-items: baseline;
  color: var(--ink);
  padding: .75rem clamp(.8rem, 2vw, 1.2rem);
  font-size: .9rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .photo-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .garden-story > img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 600px) {
  .photo-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
  }

  .photo-topic-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    border-radius: .9rem;
    box-shadow: none;
  }

  .photo-topic-card > img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .photo-topic-copy {
    gap: .32rem;
    padding: .72rem .78rem;
  }

  .photo-topic-copy h3 {
    font-size: 1.03rem;
  }

  .photo-topic-copy p,
  .photo-topic-copy a {
    font-size: .82rem;
  }
}
