/* --- Hybrid Container --- */
.hybrid-main-container {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 5rem 2rem !important;
}

/* --- Hero Feature (Jessica Wang inspired) --- */
.hero-feature-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

@media (max-width: 860px) {
  .hero-feature-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.hero-feature-card .wp-block-post-featured-image {
  margin: 0 !important;
}

.hero-feature-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 520px !important;
  object-fit: cover !important;
  display: block;
}

.hero-feature-meta h1.wp-block-post-title {
  font-family: Georgia, "Editorial Serif", serif !important;
  font-size: 2.5rem !important;
  line-height: 1.2 !important;
  margin: 0.75rem 0 1.25rem 0 !important;
}

/* --- Delicate Section Divider --- */
.section-divider {
  text-align: center;
  position: relative;
  margin: 4rem 0 3.5rem 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.section-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888888;
  font-weight: 500;
}

/* --- Editorial Grid (The Anna Edit inspired) --- */
.editorial-grid-section ul.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 3.5rem 3rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  .editorial-grid-section ul.wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

.grid-story-card {
  display: flex;
  flex-direction: column;
}

.grid-story-card .wp-block-post-featured-image {
  margin: 0 0 1.2rem 0 !important;
}

.grid-story-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 440px !important;
  object-fit: cover !important;
  display: block;
}

.grid-story-meta h2.wp-block-post-title {
  font-family: Georgia, "Editorial Serif", serif !important;
  font-size: 1.6rem !important;
  line-height: 1.3 !important;
  margin: 0.4rem 0 0.6rem 0 !important;
}

.grid-story-meta .wp-block-post-date {
  font-size: 0.72rem !important;
  color: #999999 !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.75rem !important;
}
/* Floating Category Badge — Top Right Corner */
.anna-badge {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  background-color: #ffffff !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 2;
  white-space: nowrap;
}

/* Category link inside the badge */
.anna-badge a,
.anna-badge .wp-block-post-terms a {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Remove hover line underline inside the badge */
.anna-badge a::after {
  display: none !important;
}
/* --- Ensure Image Wrapper Always Has Height & Background --- */
.image-badge-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  background-color: #f6f5f2 !important; /* Soft warm editorial placeholder */
  overflow: hidden !important;
}

/* Hero Section Image Box */
.hero-feature-card .image-badge-wrapper {
  min-height: 480px !important;
}

/* Grid Section Image Box (Portrait 4:5 Crop) */
.grid-story-card .image-badge-wrapper {
  min-height: 400px !important;
  aspect-ratio: 4 / 5 !important;
}

/* Ensure uploaded images fill the box properly */
.image-badge-wrapper img,
.wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* --- Pin Badge Strictly Inside the Image Box --- */
.image-badge-wrapper .anna-badge {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  background: #ffffff !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  z-index: 10 !important;
  white-space: nowrap !important;
}

/* Badge Typography */
.anna-badge a,
.anna-badge .wp-block-post-terms a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Suppress unwanted underline inside the badge */
.anna-badge a::after {
  display: none !important;
}
/* =========================================================
   1. FORCE STRICT SINGLE CATEGORY ON ALL BADGES
   ========================================================= */

/* Display the very first category link clearly */
.anna-badge .wp-block-post-terms a:first-of-type {
  display: inline-block !important;
}

/* Hide every category link after the first */
.anna-badge .wp-block-post-terms a:not(:first-of-type) {
  display: none !important;
}

/* Eradicate any commas, spaces, or separator tags entirely */
.anna-badge .wp-block-post-terms .wp-block-post-terms__separator,
.anna-badge .wp-block-post-terms span {
  display: none !important;
}

/* Clean, crisp pill positioning */
.anna-badge {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  background-color: #ffffff !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  z-index: 10 !important;
  white-space: nowrap !important;
}

.anna-badge a {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.anna-badge a::after {
  display: none !important;
}

/* =========================================================
   2. LOCK ALL POST IMAGES TO IDENTICAL DIMENSIONS
   ========================================================= */

/* Force all post cards (hero + grid) to identical 4:5 portrait dimensions */
.hero-feature-card .image-badge-wrapper,
.grid-story-card .image-badge-wrapper,
.image-badge-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 460px !important;
  min-height: 460px !important;
  max-height: 460px !important;
  aspect-ratio: 4 / 5 !important;
  background-color: #f5f4f0 !important;
  overflow: hidden !important;
}

/* Ensure real images and WordPress picture elements stretch to fit the box uniformly */
.image-badge-wrapper img,
.image-badge-wrapper picture,
.image-badge-wrapper .wp-block-post-featured-image,
.image-badge-wrapper .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
/* =========================================================
   JESSICA WANG EDITORIAL ARCHITECTURE & ZIGZAG
   ========================================================= */

.hybrid-main-container {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 3.5rem 2rem 6rem 2rem !important;
}

/* Remove default WordPress query list margins and bullets */
.hero-spread-query ul.wp-block-post-template,
.zigzag-feed-query ul.wp-block-post-template {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hero-spread-query li.wp-block-post,
.zigzag-feed-query li.wp-block-post {
  list-style: none !important;
  margin-bottom: 6.5rem !important;
}

/* --- The Editorial Spread: 50 / 50 Side-by-Side --- */
.editorial-spread {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4.5rem !important;
  align-items: center !important;
  width: 100% !important;
}

/* --- Zigzag Alternation for Post Feed --- */
/* Odd posts in query #2 (i.e. Post #2 overall): Text on Left, Image on Right */
.zigzag-feed-query ul.wp-block-post-template > li:nth-child(odd) .editorial-spread .image-badge-wrapper {
  grid-column: 2 !important;
  order: 2 !important;
}

.zigzag-feed-query ul.wp-block-post-template > li:nth-child(odd) .editorial-spread .editorial-meta-column {
  grid-column: 1 !important;
  order: 1 !important;
}

/* Even posts in query #2 (i.e. Post #3 overall): Image on Left, Text on Right */
.zigzag-feed-query ul.wp-block-post-template > li:nth-child(even) .editorial-spread .image-badge-wrapper {
  grid-column: 1 !important;
  order: 1 !important;
}

.zigzag-feed-query ul.wp-block-post-template > li:nth-child(even) .editorial-spread .editorial-meta-column {
  grid-column: 2 !important;
  order: 2 !important;
}

/* Mobile Responsive Flow */
@media (max-width: 860px) {
  .editorial-spread,
  .zigzag-feed-query ul.wp-block-post-template > li:nth-child(odd) .editorial-spread,
  .zigzag-feed-query ul.wp-block-post-template > li:nth-child(even) .editorial-spread {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .image-badge-wrapper {
    grid-column: 1 !important;
    order: 1 !important;
  }
  .editorial-meta-column {
    grid-column: 1 !important;
    order: 2 !important;
  }
}

/* =========================================================
   PORTRAIT EDITORIAL IMAGES & ANNA BADGE
   ========================================================= */

.image-badge-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 560px !important;
  min-height: 560px !important;
  aspect-ratio: 3 / 4 !important;
  background-color: #f7f6f3 !important; /* Neutral high-fashion editorial placeholder */
  overflow: hidden !important;
}

.image-badge-wrapper img,
.image-badge-wrapper .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* The Anna Edit Pill Badge (Top-Right) */
.anna-badge {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  background: #ffffff !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  z-index: 5 !important;
  white-space: nowrap !important;
}

.anna-badge a {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.anna-badge a::after {
  display: none !important;
}

/* Ensure only single category */
.anna-badge .wp-block-post-terms a:not(:first-of-type),
.anna-badge .wp-block-post-terms .wp-block-post-terms__separator {
  display: none !important;
}

/* =========================================================
   HIGH-FASHION TYPOGRAPHY (JESSICA WANG METRICS)
   ========================================================= */

/* Top Location Meta */
.meta-top-row {
  margin-bottom: 0.65rem !important;
}

.post-location-meta,
.post-location-meta a {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #888888 !important;
  text-decoration: none !important;
}

/* Big Editorial Headlines */
.editorial-meta-column h1.wp-block-post-title,
.editorial-meta-column h2.wp-block-post-title {
  font-family: "Playfair Display", Georgia, "Editorial Serif", serif !important;
  font-size: 2.35rem !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  margin: 0.4rem 0 1.25rem 0 !important;
}

.editorial-meta-column h1.wp-block-post-title a,
.editorial-meta-column h2.wp-block-post-title a {
  color: #111111 !important;
}

/* Excerpt Copy */
.editorial-meta-column .wp-block-post-excerpt__excerpt {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #404040 !important;
  margin-bottom: 1.5rem !important;
}

/* Underlined READ MORE → Button */
.wp-block-post-excerpt__more-link {
  display: inline-block !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  padding-bottom: 5px !important;
  border-bottom: 1.5px solid #111111 !important;
  text-decoration: none !important;
}

.wp-block-post-excerpt__more-link::after {
  display: none !important;
}

/* Date & Comment Split Row */
.meta-bottom-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding-top: 1.25rem !important;
  margin-top: 2.2rem !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #888888 !important;
}

.post-comments-count a {
  color: #888888 !important;
  text-decoration: none !important;
}

/* Section Hairline Divider */
.editorial-divider {
  text-align: center !important;
  position: relative !important;
  margin: 4.5rem 0 5rem 0 !important;
}

.editorial-divider::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

.editorial-divider span {
  position: relative !important;
  background: #ffffff !important;
  padding: 0 1.5rem !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #888888 !important;
  font-weight: 600 !important;
}

/* Full Width Shop The Post Section Under Hero Post */
.shop-the-post-container {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 2rem !important;
  padding-top: 2.5rem !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.shop-the-post-header {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

.shop-the-post-header span {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #888888 !important;
  font-weight: 600 !important;
}