/* ========================================
   WMRN COLLECTION SYSTEM (DO NOT DUPLICATE)
   Scoped to: page-template-page-collection
======================================== */

/* ================================
   COLLECTION PAGE – MODERN + ARCHIVAL HYBRID
================================ */

/* Container */
.page-template-page-collection .wmrn-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Intro */
.page-template-page-collection .collection-intro {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* GRID */
.page-template-page-collection .collection-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 28px !important;
}

/* CARD */
.page-template-page-collection .collection-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  text-decoration: none !important;

  border: 1px solid rgba(0,0,0,0.06) !important;

  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

/* Hover */
.page-template-page-collection .collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* IMAGE */
.page-template-page-collection .collection-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eee;
  filter: contrast(1.02) saturate(0.95);
}

/* CONTENT */
.page-template-page-collection .card-content {
  padding: 14px 14px 16px;
  flex-grow: 1;
  display: flex;
}

/* TITLE */
.page-template-page-collection .collection-card h3 {
  font-family: "EB Garamond", Garamond, serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: #1c2d4a;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Divider */
.page-template-page-collection .collection-card h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin-top: 8px;
}

/* MOBILE */
@media (max-width: 600px) {
  .page-template-page-collection .collection-grid {
    gap: 20px !important;
  }
}

.page-template-page-collection .collection-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 28px !important;
  margin-top: 2rem !important;
}

/* ================================
   COLLECTION INTRO — PARAGRAPH POLISH
================================ */

/* Force readable line breaks */
.page-template-page-collection .collection-intro p {
  white-space: pre-line;
}

/* Add spacing where line breaks occur */
.page-template-page-collection .collection-intro p br {
  display: block;
  content: "";
  margin-bottom: 1rem;
}

/* Optional: better readability */
.page-template-page-collection .collection-intro {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

