/* Photos page (scoped) */

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
  margin-top: 12px;
}

.photos-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  font-size: 0.88rem;
  border-radius: 999px;
  margin-bottom: 14px;
}

.photos-filter[hidden] {
  display: none;
}

.photos-filter-tag {
  color: var(--text);
  font-weight: 600;
}

.photos-filter-clear {
  color: var(--muted);
  text-decoration: none;
}
.photos-filter-clear:hover { color: var(--link); text-decoration: underline; }

.photo-card {
  margin: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.photo-img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.photo-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.photo-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.photo-location {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
}

.photo-sep {
  color: var(--muted);
}

.photo-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.photo-tag {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
}
.photo-tag:hover { color: var(--link); }

.photo-related {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.photo-related:hover { color: var(--link); }

.photo-card.is-hidden { display: none; }

@media (min-width: 840px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  .photo-frame { aspect-ratio: 1 / 1; }
}
