/** Shopify CDN: Minification failed

Line 20:12 Expected identifier but found whitespace
Line 20:14 Unexpected "{"
Line 20:23 Expected ":"
Line 21:14 Expected identifier but found whitespace
Line 21:16 Unexpected "{"
Line 21:25 Expected ":"
Line 24:0 Unexpected "#"
Line 24:2 Unexpected "{"
Line 24:11 Expected ":"
Line 31:0 Unexpected "#"
... and 42 more hidden warnings

**/


/* CSS from section stylesheet tags */
:root {
  --card-bg: {{ section.settings.card_bg }};
  --card-text: {{ section.settings.card_text_color }};
}

#{{ section.id }} .rows-container {
  display: grid;
  grid-template-rows: repeat({{ section.settings.rows }}, auto);
  gap: 20px;
  padding: 20px 0;
}

#{{ section.id }} .card-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: {{ section.settings.gap }}px;
  direction: {{ section.settings.scroll_direction == 'rtl' ? 'rtl' : 'ltr' }};
  padding: 0 {{ section.settings.padding_horizontal }}px;
}

.card-row {
  scroll-behavior: smooth;
}

#{{ section.id }} .card {
  flex: 0 1 calc((100% / {{ section.settings.columns }}) - {{ section.settings.gap }}px);
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: {{ section.settings.border_radius }}px;
  font-size: {{ section.settings.text_size }}px;
  scroll-snap-align: start;
  cursor: pointer;
  padding: 15px;
  margin-right: 20px;
  transition: transform 0.3s ease;
  height: 400px; /* ✅ fixed height */
  display: flex;
  flex-direction: column;
  justify-content: start;
  max-width: 300px;
  overflow: hidden; /* ✅ prevent whole card from scrolling */
}



#{{ section.id }} .card img {
  width: 100%;
  height: auto;
  border-radius: {{ section.settings.border_radius }}px;
  margin-bottom: 10px;
  max-height: 60%;
  object-fit: cover;
}

#{{ section.id }} .card h3 {
  margin: 0 0 6px;
  font-weight: bold;
  text-align: center;
}

#{{ section.id }} .card.expanded {
  position: relative;
  flex: 1 1 100%;
  height: auto;
  transform: scale(1.03);
  z-index: 10;
  .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax({{ section.settings.card_width }}px, 1fr));
  gap: {{ section.settings.card_gap }}px;
}

}