/** Shopify CDN: Minification failed

Line 50:0 Unexpected "}"

**/
.blog-articles {
  display: grid;
  grid-gap: 1rem;
  column-gap: var(--grid-mobile-horizontal-spacing);
  row-gap: var(--grid-mobile-vertical-spacing);
}

.blog-articles .card-wrapper {
  width: 100%;
}

@media screen and (min-width: 750px) {
  .blog-articles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: var(--grid-desktop-horizontal-spacing);
    row-gap: var(--grid-desktop-vertical-spacing);
  }
}

  .blog-articles--collage > *:nth-child(3n + 1),
  .blog-articles--collage > *:nth-child(3n + 2):last-child {
    grid-column: span 2;
    text-align: center;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .card,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .card {
    text-align: center;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--small .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--small .ratio::before {
    padding-bottom: 22rem;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--medium .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--medium .ratio::before {
    padding-bottom: 44rem;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--large .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--large .ratio::before {
    padding-bottom: 66rem;
  }
}

@media screen and (min-width: 990px) {
  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--small .ratio .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--small .ratio .ratio::before {
    padding-bottom: 27.5rem;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--medium .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--medium .ratio::before {
    padding-bottom: 55rem;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--large .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--large .ratio::before {
    padding-bottom: 82.5rem;
  }
}
/* Base grid container for blog articles */
.blog-articles {
  display: grid;
  grid-gap: 1rem;
  column-gap: var(--grid-mobile-horizontal-spacing, 1rem);
  row-gap: var(--grid-mobile-vertical-spacing, 1rem);
  /* Default for mobile: controlled by --cards-per-row CSS variable */
  grid-template-columns: repeat(var(--cards-per-row, 2), 1fr);
}

/* Make each card wrapper full width within its grid cell */
.blog-articles .card-wrapper {
  width: 100%;
}

/* Desktop and tablets: override grid columns to auto-fit with min width */
@media screen and (min-width: 750px) {
  .blog-articles {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: var(--grid-desktop-horizontal-spacing, 1.5rem);
    row-gap: var(--grid-desktop-vertical-spacing, 1.5rem);
  }
}

/* Collage layout special styling */
.blog-articles--collage > *:nth-child(3n + 1),
.blog-articles--collage > *:nth-child(3n + 2):last-child {
  grid-column: span 2;
  text-align: center;
}

.blog-articles--collage > *:nth-child(3n + 1) .card,
.blog-articles--collage > *:nth-child(3n + 2):last-child .card {
  text-align: center;
}

/* Image padding adjustments for collage layout */
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--small .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--small .ratio::before {
  padding-bottom: 22rem;
}

.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--medium .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--medium .ratio::before {
  padding-bottom: 44rem;
}

.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--large .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--large .ratio::before {
  padding-bottom: 66rem;
}

/* Larger screen adjustments for collage image paddings */
@media screen and (min-width: 990px) {
  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--small .ratio .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--small .ratio .ratio::before {
    padding-bottom: 27.5rem;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--medium .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--medium .ratio::before {
    padding-bottom: 55rem;
  }

  .blog-articles--collage > *:nth-child(3n + 1) .article-card__image--large .ratio::before,
  .blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--large .ratio::before {
    padding-bottom: 82.5rem;
  }
}

/* MOBILE-ONLY GRID FILTER SELECTOR */
/* This container holds the select filter; initially hidden on desktop */
#mobile-grid-filter {
  display: none;
  margin: 1rem 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

/* Show filter only on mobile */
@media screen and (max-width: 749px) {
  #mobile-grid-filter {
    display: block;
  }
}

/* Smooth transition for grid rearrangement */
.blog-articles {
  transition: all 0.3s ease;
}
