/*
Theme Name: The Luxetarians
Description: A minimalist luxury travel theme — front page cards match blog cards (4:3)
Version: 1.0.1
Author: The Luxetarians
*/

/* ===============================
   Card grid (unified with /blog/)
   =============================== */

/* Card shell */
.post-card {
  background: #fff;
  border: 1px solid #E5E5E0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
  border-color: #E7D9C4;
}

/* Make the whole card clickable */
.card-link { display: block; color: inherit; text-decoration: none; }

/* --- Image: match blog page exactly --- */
.post-image {
  width: 100%;
  aspect-ratio: 4 / 3;     /* same ratio the blog grid uses */
  object-fit: cover;       /* “magazine crop” – fills without distortion */
  display: block;
}

/* OPTIONAL: per-post letterbox (no crop) — add class "post-image--contain" */
.post-image--contain {
  object-fit: contain !important;   /* keep entire image visible */
  background: #f3f4f6;              /* neutral bars for empty space */
}

/* Content inside the card */
.post-content { padding: 24px; }
.post-category {
  display: inline-block;
  padding: 4px 12px;
  background: #14302F;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
  transition: color .2s ease;
}
.post-card:hover .post-title { color: #14302F; }
.post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 16px;
}
.post-meta { font-size: 14px; color: #999; }

/* ===============================
   Front page grid niceties
   =============================== */

.section .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* Tighten on small screens */
@media (max-width: 640px) {
  .section .post-grid { gap: 16px; }
  .post-title { font-size: 20px; }
  .post-excerpt { font-size: 15px; }
}

/* ===============================
   Hero polish (safe defaults)
   =============================== */

.hero { position: relative; min-height: 60vh; max-height: 75vh; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.55)); }
.hero-content { position: absolute; inset: 0; display: grid; place-items: center; }

/* ===============================
   Small utilities
   =============================== */

/* Prevent any global img { height:auto } elsewhere from fighting the crop */
.section .post-grid .post-card .post-image {
  height: auto;           /* works with aspect-ratio */
}

/* --- Final: make single post hero image match thumbnail ratio (4:3) --- */
.single-post .post-hero-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 16px auto 32px;
  aspect-ratio: 4 / 3;        /* same ratio as homepage cards */
  object-fit: cover;          /* uniform crop */
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  height: auto;
  max-height: 520px;          /* limit tall images */
}

/* --- Optional editorial crop: balance hero vs. thumbnails --- */
@media (min-width: 768px) {
  .single-post .post-hero-img {
    aspect-ratio: 16 / 10;     /* slightly wider crop than 4:3 */
    max-height: 460px;         /* reduces vertical space */
  }
}

.single-post .post-hero {
  text-align: center;
}

.single-post .post-hero-img {
  border: 1px solid #eee;
}
