/* Centered magazine cover, used by the photography listing. */
.photography-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  padding-block: 3rem 6rem;
}
.photography-card {
  min-width: 0;
  container-type: inline-size;
  --cover-surface: var(--card);
  --cover-text: var(--ink);
  --cover-muted: var(--muted);
  --cover-rule: var(--rule);
}
.photography-card[data-theme="dark"] {
  --cover-surface: var(--ink);
  --cover-text: var(--paper);
  --cover-muted: color-mix(in srgb, var(--paper) 62%, transparent);
  --cover-rule: color-mix(in srgb, var(--paper) 22%, transparent);
}
.photography-cover {
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  height: 100%;
  min-width: 0;
  padding: 4cqw;
  border: 1px solid var(--cover-rule);
  background: var(--cover-surface);
  color: var(--cover-text);
  box-shadow: 0 0 0 color-mix(in srgb, var(--ink) 0%, transparent);
  transition: transform 240ms cubic-bezier(.2,.75,.25,1), border-color 240ms ease, box-shadow 240ms ease;
}
.photography-card:hover .photography-cover,
.photography-card:focus-within .photography-cover {
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  box-shadow: 0 1.1rem 2.4rem color-mix(in srgb, var(--ink) 8%, transparent);
  transform: translateY(-0.35rem);
}
.photography-card[data-theme="dark"]:hover .photography-cover,
.photography-card[data-theme="dark"]:focus-within .photography-cover {
  border-color: var(--ink);
  box-shadow: 0 1.1rem 2.5rem color-mix(in srgb, var(--ink) 20%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .photography-card:hover .photography-cover,
  .photography-card:focus-within .photography-cover { transform: none; }
}
.photography-cover:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
.photography-cover-heading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7cqw 4cqw;
  text-align: center;
}
.photography-cover-wordmark {
  margin: 0 0 5cqw;
  font-size: clamp(1.25rem, 7.5cqw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  /* Balance the final letter space from the shared brand rule. */
  text-indent: .8em;
  white-space: nowrap;
}
.photography-cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .5rem 1.5rem;
  width: 80%;
  min-width: 0;
  margin-top: 5cqw;
  padding-top: 4cqw;
  border-top: 1px solid var(--cover-rule);
  color: var(--cover-muted);
  font-size: clamp(.7rem, 3cqw, .875rem);
  line-height: 1.5;
  letter-spacing: .08em;
}
.photography-cover h2 {
  margin: 0;
  font-size: clamp(1.1rem, 5.4cqw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.photography-cover-image {
  flex: none;
  aspect-ratio: 3 / 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.photography-cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.photography-cover-meta time { flex: none; }
.photography-cover-location { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .photography-cover-grid { column-gap: 1.5rem; }
}
@media (max-width: 800px) {
  .photography-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .photography-cover-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 2rem 4rem; }
}
