/* Styles for published trip report pages and the /trip-reports/ listing page.
   The site header/nav/global type comes from the shared theme stylesheet;
   this file only covers what's new here. */

.trip-report .entry-meta { color: #666; font-size: 0.9rem; margin: 0.3rem 0 1.2rem; }

.report-inline-photo { display: inline-block; vertical-align: middle; margin: 0 6px; max-width: 45%; }
.report-inline-photo img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

/* A paragraph with nothing but a photo in it — dropped on its own blank line — renders full-width and centered. */
.report-block-photo { margin: 1.75rem auto; text-align: center; }
.report-block-photo img { max-width: 70%; max-height: 75vh; height: auto; border-radius: 4px; display: inline-block; }

.report-slideshow { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.report-slideshow h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.slideshow-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem; list-style: none; margin: 0; padding: 0;
}
.report-slide { margin: 0; }
.report-slide img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; display: block; }

/* A YouTube/Vimeo embed, whether placed inline in the text or listed at the end. Always
   block-level and full-width up to a sensible cap — a video is too big to sit beside text. */
.report-video-embed {
  position: relative; width: 100%; max-width: 640px; margin: 1.75rem auto;
  aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000;
}
.report-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.report-videos { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.report-videos h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.report-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.report-card a { display: block; text-decoration: none; color: inherit; }
.report-card .report-thumb { display: block; aspect-ratio: 4/3; background: #eee; border-radius: 6px; overflow: hidden; margin-bottom: 0.5rem; }
.report-card .report-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-card .report-title { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.report-card .report-meta { display: block; font-size: 0.85rem; color: #666; }
.report-empty { color: #666; }

@media (max-width: 600px) {
  .report-inline-photo { display: block; max-width: 100%; margin: 1rem 0; }
}
