/* ====== Flex Grid ====== */
.rfp-flex { display: flex; flex-wrap: wrap; gap: 32px; }
.rfp-flex.rfp-cols-1 .rfp-card { flex: 0 1 100%; }
.rfp-flex.rfp-cols-2 .rfp-card { flex: 0 1 calc((100% - 32px) / 2); }
.rfp-flex.rfp-cols-3 .rfp-card { flex: 0 1 calc((100% - 64px) / 3); }
.rfp-flex.rfp-cols-4 .rfp-card { flex: 0 1 calc((100% - 96px) / 4); }

/* ====== Base Card ====== */
.rfp-card { background: transparent; border: 0; box-shadow: none; display: flex; flex-direction: column; }
.rfp-card a { color: inherit; text-decoration: none; }
.rfp-thumb { width: 100%; display: block; object-fit: cover; }
.rfp-body { padding-top: 30px; }
.rfp-title { 
  margin: 0 0 20px; 
  font-family: "Inter Tight", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  fill: white !important;
  color: #ffffff !important;
  line-height: 0 !important;
}
.rfp-excerpt { margin: 0 0 12px; color: #acacab !important; line-height: 1.6; opacity: .9; }
.rfp-meta { 
  margin: 0; 
  font-size: .9rem; 
  opacity: .65; 
  color: #acacab !important;
  font-family: "Inter", Sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  line-height: 1.5em !important;
}
.rfp-single { max-width: 900px; margin: auto; }

/* ====== Orientation: Horizontal Deck (optional) ====== */
.rfp-horizontal { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scroll-snap-type: x mandatory; padding: 8px 0; }
.rfp-horizontal::-webkit-scrollbar { display: none; }
.rfp-horizontal .rfp-card { flex: 0 0 320px; scroll-snap-align: start; }

/* ====== Featured Skin ====== */
.rfp-skin-featured .rfp-thumb { border-radius: 8px !important; }

/* ====== Banner Skin ====== */
.rfp-single.rfp-skin-banner { max-width: none; }
.rfp-single.rfp-skin-banner .rfp-card { position: relative; }
.rfp-single.rfp-skin-banner .rfp-thumb { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 0; }
.rfp-single.rfp-skin-banner .rfp-body { position: absolute; left: 5%; bottom: 7%; right: 5%; }
.rfp-single.rfp-skin-banner .rfp-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin: 0 0 8px; }
.rfp-single.rfp-skin-banner .rfp-excerpt { max-width: 70ch; margin: 0 0 10px; line-height: 1.6; opacity: .95; }
.rfp-single.rfp-skin-banner .rfp-meta { opacity: .75; }
.rfp-single.rfp-skin-banner .rfp-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 50%,rgba(0,0,0,.45) 100%); pointer-events:none; }
.rfp-single.rfp-skin-banner .rfp-card img { border-radius: 8px !important; }
.rfp-single.rfp-skin-banner .rfp-excerpt { color: white !important; }
.rfp-single.rfp-skin-banner .rfp-meta { color: white !important}


/* ====== Masonry ====== */
.rfp-masonry { column-gap: 32px; }
.rfp-masonry.rfp-cols-1 { column-count: 1; }
.rfp-masonry.rfp-cols-2 { column-count: 2; }
.rfp-masonry.rfp-cols-3 { column-count: 3; }
.rfp-masonry.rfp-cols-4 { column-count: 4; }
.rfp-masonry .rfp-card { break-inside: avoid; margin: 0 0 32px 0; display: block; }
.rfp-masonry .rfp-thumb { width: 100%; object-fit: cover; display: block; }

/* ====== Variable Heights (key part) ======
   We vary the image aspect ratio per card size, which changes card height. */
.rfp-masonry .rfp-size-short  .rfp-thumb { aspect-ratio: 16 / 9; }
.rfp-masonry .rfp-size-medium .rfp-thumb { aspect-ratio: 4 / 3; }
.rfp-masonry .rfp-size-tall   .rfp-thumb { aspect-ratio: 3 / 4; }

/* Optional: shorter excerpts for short cards */
.rfp-masonry .rfp-size-short .rfp-excerpt {
  font-family: "Inter", Sans-serif;
  font-weight: 400;
  color: #acacab !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .rfp-flex.rfp-cols-4 .rfp-card { flex: 0 1 calc((100% - 32px) / 2); }
  .rfp-masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .rfp-flex .rfp-card { flex: 0 1 100%; }
  .rfp-masonry { column-count: 1; }
  .rfp-horizontal .rfp-card { flex-basis: 85%; }
}
