/*
Theme Name:  Clover
Theme URI:   https://elcuadernodeclover.com
Description: Theme editorial para El cuaderno de Clover. Doramas, anime, manga y cultura asiática.
Version:     1.0.0
Author:      El cuaderno de Clover
Text Domain: clover
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:     #c0392b;
  --color-primary-dk:  #962d22;
  --color-accent:      #e8a0a0;
  --color-bg:          #ffffff;
  --color-bg-soft:     #faf8f7;
  --color-bg-muted:    #f2eeec;
  --color-text:        #2c2c2c;
  --color-text-muted:  #6b6b6b;
  --color-border:      #e0dbd8;
  --color-link:        #c0392b;
  --color-link-hover:  #962d22;

  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;

  --radius:      6px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);

  --content-width:      780px;
  --layout-width:       1200px;
  --sidebar-width:      300px;
  --gap:                clamp(1rem, 3vw, 2rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }
ul, ol { padding-left: 1.5em; }

/* =========================================================
   TIPOGRAFÍA
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-block: .25em 0;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p + p { margin-top: .8em; }

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */
.site-wrapper    { display: flex; flex-direction: column; min-height: 100vh; }
.site-main       { flex: 1; }
.container       { width: 100%; max-width: var(--layout-width); margin-inline: auto; padding-inline: var(--gap); }
.container--narrow { max-width: calc(var(--content-width) + var(--gap) * 2); }

/* Layout con sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap) 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .site-sidebar { display: none; } /* sidebar oculto en móvil salvo que se active */
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  padding-block: .6rem 0;
}
/* Orden: branding + search en fila 1; nav ocupa fila 2 completa */
.site-branding { flex: 1 1 auto; order: 1; min-width: 0; }
.site-branding a { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-title     { font-size: 1.35rem; font-weight: 800; color: var(--color-primary); line-height: 1.1; white-space: nowrap; }
.site-tagline   { font-size: .75rem; color: var(--color-text-muted); }
.header-search  { flex: 0 0 auto; order: 2; }

/* Nav principal — fila propia bajo el branding (order alto → siempre última en fila) */
.nav-primary {
  flex: 0 0 100%;
  order: 99;
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-primary);
  margin-top: .4rem;
}
.nav-primary ul  { list-style: none; padding: 0; display: flex; gap: 0; flex-wrap: wrap; }
.nav-primary a   { display: block; padding: .5rem .9rem; font-size: .9rem; font-weight: 600; color: var(--color-text); border-radius: var(--radius); transition: background .15s, color .15s; }
.nav-primary a:hover,
.nav-primary .current-menu-item > a { background: var(--color-bg-muted); color: var(--color-primary); text-decoration: none; }

/* Submenú */
.nav-primary li  { position: relative; }
.nav-primary .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 200; }
.nav-primary li:hover > .sub-menu { display: block; }
.nav-primary .sub-menu a { white-space: nowrap; border-radius: 0; font-weight: 400; }

/* Buscador en header */
.header-search { display: flex; align-items: center; }
.header-search form { display: flex; }
.header-search input[type="search"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: .4rem .75rem;
  font-size: .875rem;
  width: 180px;
  outline: none;
  transition: border-color .15s;
}
.header-search input:focus { border-color: var(--color-primary); }
.header-search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: .4rem .75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: .875rem;
}
.header-search button:hover { background: var(--color-primary-dk); }

/* Burger móvil */
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); padding: .4rem .7rem; border-radius: var(--radius); cursor: pointer; font-size: 1.2rem; flex: 0 0 auto; order: 3; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-branding { flex: 1; order: 1; }
  .header-search { order: 2; }
  .nav-primary { display: none; order: 99; border-top: none; }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 0; }
  .nav-primary .sub-menu { position: static; box-shadow: none; border: none; background: var(--color-bg-soft); padding-left: 1rem; display: none; }
  .nav-primary li:hover > .sub-menu,
  .nav-primary li:focus-within > .sub-menu { display: block; }
}

/* =========================================================
   AD SLOT — HEADER LEADERBOARD
   ========================================================= */
.ad-slot-header {
  background: var(--color-bg-muted);
  text-align: center;
  padding: .5rem;
  border-bottom: 1px solid var(--color-border);
  min-height: 60px;
}
.ad-slot-header:empty { display: none; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
  font-size: .8rem;
  color: var(--color-text-muted);
  padding-block: .6rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span + span::before { content: ' › '; padding-inline: .3rem; }

/* =========================================================
   CARD DE ENTRADA (grid / archive)
   ========================================================= */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card__thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--color-bg-muted); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card__thumb .card__badge { position: absolute; top: .5rem; left: .5rem; background: var(--color-primary); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }

.card__body   { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.card__meta   { font-size: .75rem; color: var(--color-text-muted); display: flex; gap: .6rem; flex-wrap: wrap; }
.card__title  { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.card__title a { color: var(--color-text); }
.card__title a:hover { color: var(--color-primary); text-decoration: none; }
.card__excerpt { font-size: .875rem; color: var(--color-text-muted); line-height: 1.5; }
.card__rating  { display: flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--color-primary); margin-top: auto; }
.card__rating::before { content: '★'; }

/* Grid de cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.cards-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-header { margin-bottom: 2rem; }
.single-header .post-categories { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.single-header .post-categories a {
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}
.single-header .post-categories a:hover { background: var(--color-primary-dk); }
.single-header h1 { margin-top: 0; }
.post-meta { font-size: .82rem; color: var(--color-text-muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.post-meta a { color: var(--color-text-muted); }
.post-meta a:hover { color: var(--color-primary); }

.post-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-featured-image img { width: 100%; height: auto; }

/* Contenido del post */
.entry-content { font-size: 1.0625rem; line-height: 1.75; }
.entry-content h2 { margin-top: 2.2rem; margin-bottom: .6rem; padding-bottom: .3rem; border-bottom: 2px solid var(--color-bg-muted); }
.entry-content h3 { margin-top: 1.6rem; margin-bottom: .4rem; }
.entry-content h4 { margin-top: 1.2rem; }
.entry-content p  { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.1em; }
.entry-content li { margin-bottom: .3em; }
.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: .5rem .75rem; text-align: left; }
.entry-content th { background: var(--color-bg-muted); font-weight: 700; }
.entry-content img { border-radius: var(--radius); margin-block: 1.25rem; }

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */
.clover-toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .9rem;
}
.clover-toc__title { font-weight: 700; font-size: 1rem; margin-bottom: .75rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.clover-toc__title::after { content: '▾'; font-size: .8rem; }
.clover-toc.is-collapsed .clover-toc__list { display: none; }
.clover-toc.is-collapsed .clover-toc__title::after { content: '▸'; }
.clover-toc__list { list-style: none; padding: 0; margin: 0; }
.clover-toc__list li { padding: .2rem 0; }
.clover-toc__list a { color: var(--color-text); }
.clover-toc__list a:hover { color: var(--color-primary); }
.clover-toc__list ul { padding-left: 1rem; margin-top: .2rem; }

/* =========================================================
   FICHA RÁPIDA (review box)
   ========================================================= */
.review-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.review-box__header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.review-box__thumbnail { width: 100px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.review-box__thumbnail img { width: 100%; height: auto; }
.review-box__info h3 { margin-top: 0; font-size: 1.1rem; }
.review-box__score {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  padding: .3rem .8rem;
  border-radius: var(--radius);
  margin-top: .5rem;
}
.review-box__score small { font-size: .7rem; font-weight: 400; opacity: .8; }
.review-box__meta { font-size: .82rem; color: var(--color-text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.review-box__criteria { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.review-box__criteria li { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; }
.review-box__bar { height: 6px; background: var(--color-bg-muted); border-radius: 3px; flex: 1; margin-inline: .75rem; overflow: hidden; }
.review-box__bar span { display: block; height: 100%; background: var(--color-primary); border-radius: 3px; }
.review-box__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 500px) { .review-box__pros-cons { grid-template-columns: 1fr; } }
.review-box__pros h4, .review-box__cons h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.review-box__pros h4 { color: #27ae60; }
.review-box__cons h4 { color: #c0392b; }
.review-box__pros ul, .review-box__cons ul { padding-left: 1.2em; font-size: .875rem; }

/* =========================================================
   AD SLOTS — CONTENIDO
   ========================================================= */
.ad-slot {
  background: var(--color-bg-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  padding: .75rem;
  margin-block: 2rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot:empty::after { content: 'Publicidad'; font-size: .7rem; color: var(--color-border); letter-spacing: .1em; text-transform: uppercase; }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle  { min-height: 250px; }
.ad-slot--skyscraper { min-height: 600px; }

/* =========================================================
   POSTS RELACIONADOS
   ========================================================= */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--color-bg-muted); }
.related-posts h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }

/* =========================================================
   PERFIL DE INTÉRPRETE
   ========================================================= */
.profile-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}
@media (max-width: 600px) { .profile-header { grid-template-columns: 1fr; } }
.profile-photo { border-radius: var(--radius-lg); overflow: hidden; }
.profile-photo img { width: 100%; }
.profile-data { list-style: none; padding: 0; }
.profile-data li { display: flex; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.profile-data .label { font-weight: 600; min-width: 120px; color: var(--color-text-muted); }

/* =========================================================
   SIDEBAR
   ========================================================= */
.site-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-primary); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: .3rem 0; border-bottom: 1px solid var(--color-border); font-size: .875rem; }
.widget ul li:last-child { border-bottom: none; }

/* =========================================================
   ARCHIVE / HUB
   ========================================================= */
.archive-header { padding-block: 2rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; }
.archive-title  { font-size: clamp(1.4rem, 3vw, 2rem); }
.archive-description { margin-top: .5rem; color: var(--color-text-muted); max-width: 65ch; }
.archive-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .85rem; color: var(--color-text-muted); }

/* Paginación */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-block: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; border: 1px solid var(--color-border);
  text-decoration: none; color: var(--color-text); transition: background .15s, border-color .15s;
}
.pagination a:hover       { background: var(--color-bg-muted); border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current      { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .dots         { border: none; }

/* =========================================================
   FRONT PAGE
   ========================================================= */
.hero-section { background: var(--color-bg-soft); padding-block: 2.5rem; border-bottom: 1px solid var(--color-border); }
.hero-section h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 700px; }
.hero-section p  { color: var(--color-text-muted); max-width: 55ch; margin-top: .6rem; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.2rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, transform .1s; border: 2px solid transparent; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dk); border-color: var(--color-primary-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading h2 { font-size: 1.3rem; }
.section-heading a  { font-size: .85rem; color: var(--color-primary); font-weight: 600; }
.section-divider { width: 100%; height: 1px; background: var(--color-border); margin-block: 2.5rem; }

/* Sección hub en portada */
.home-section { padding-block: 2.5rem; }
.home-section + .home-section { border-top: 1px solid var(--color-border); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding-block: 3rem 1.5rem;
  margin-top: auto;
  font-size: .875rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { color: #fff; font-size: .9rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-col ul  { list-style: none; padding: 0; }
.footer-col li  { padding: .25rem 0; }
.footer-col a   { color: #aaa; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom  { border-top: 1px solid #333; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; color: #777; font-size: .8rem; }
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   SEARCH
   ========================================================= */
.search-results-header { padding-block: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.search-no-results { text-align: center; padding-block: 4rem; color: var(--color-text-muted); }
.search-no-results p { max-width: 40ch; margin-inline: auto; }

/* =========================================================
   404
   ========================================================= */
.error-404 { text-align: center; padding-block: 5rem; }
.error-404 h1 { font-size: 6rem; color: var(--color-bg-muted); line-height: 1; }
.error-404 h2 { font-size: 1.5rem; }
.error-404 p  { color: var(--color-text-muted); max-width: 40ch; margin-inline: auto; margin-top: .5rem; }
.error-404 .search-form { margin-top: 2rem; max-width: 400px; margin-inline: auto; display: flex; gap: 0; }
.error-404 .search-form input  { flex: 1; border: 1px solid var(--color-border); border-right: none; padding: .6rem 1rem; border-radius: var(--radius) 0 0 var(--radius); font-size: 1rem; }
.error-404 .search-form button { background: var(--color-primary); color: #fff; border: none; padding: .6rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 1rem; }

/* =========================================================
   UTILIDADES
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-muted { color: var(--color-text-muted); }
.text-sm    { font-size: .875rem; }
.mt-0       { margin-top: 0; }
.mb-2       { margin-bottom: 2rem; }

/* Stars rating visual */
.stars { color: #f5a623; letter-spacing: .05em; }

/* Skip link accesibilidad */
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--color-primary); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); z-index: 999; }
.skip-link:focus { top: .5rem; }

/* Responsive general */
@media (max-width: 600px) {
  .cards-grid, .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
  .profile-data .label { min-width: 90px; }
}

/* Cards grid — variantes de columna generadas por [clover_posts columns="N"] */

/* col-1: lista horizontal compacta (para columnas Gutenberg estrechas) */
.cards-grid--col-1 {
  grid-template-columns: 1fr;
  gap: .625rem;
}
.cards-grid--col-1 .card {
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}
.cards-grid--col-1 .card__thumb {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 4/3;
  height: auto;
}
.cards-grid--col-1 .card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.cards-grid--col-1 .card__body {
  padding: .5rem .75rem;
  justify-content: center;
}
.cards-grid--col-1 .card__title { font-size: .875rem; line-height: 1.3; }
.cards-grid--col-1 .card__excerpt { display: none; }

/* col-2, col-3, col-4: cuadrículas normales */
.cards-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--col-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive col grids */
@media (max-width: 900px) {
  .cards-grid--col-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--col-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid--col-1 .card { flex-direction: column; }
  .cards-grid--col-1 .card__thumb { flex: none; width: 100%; aspect-ratio: 16/9; }
  .cards-grid--col-2,
  .cards-grid--col-3,
  .cards-grid--col-4 { grid-template-columns: 1fr; }
}
