<!-- Card Group -->
<div class="card_group">
    <div class="card_group_header">
        <div class="fs-row">
            <div class="fs-cell fs-lg-8 fs-lg-justify-center">
                <div class="card_group_header_inner">
                    <h2 class="card_group_title">Facts & Figures</h2>
                    <div class="card_group_description">
                        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Curabitur blandit tempus porttitor. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auct.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="card_group_body">
        <div class="fs-row">
            <div class="fs-cell">
                <ul class="card_group_items card_count_2" aria-label="Facts & Figures">
                    <li class="card_group_item">
                        <figure class="card_group_item_figure">

                            <img class="card_group_item_image" srcset="https://images.fastspot.com/hamilton/740x494/1 740w, https://images.fastspot.com/hamilton/500x334/1 500w, https://images.fastspot.com/hamilton/300x200/1 300w" src="https://images.fastspot.com/hamilton/300x200/1" alt="" loading="lazy" width="300" height="200">
                        </figure>
                        <div class="card_group_item_body">
                            <h3 class="card_group_item_title">
                                <span class="card_group_item_title_label">Ornare Egestas</span>
                            </h3>
                            <div class="card_group_item_description">
                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget est sed ex pretium fringilla. Vivamus ac turpis quis eros consectetur ornare.</p>
                            </div>
                        </div>
                    </li>
                    <li class="card_group_item">
                        <figure class="card_group_item_figure">

                            <img class="card_group_item_image" srcset="https://images.fastspot.com/hamilton/740x494/2 740w, https://images.fastspot.com/hamilton/500x334/2 500w, https://images.fastspot.com/hamilton/300x200/2 300w" src="https://images.fastspot.com/hamilton/300x200/2" alt="" loading="lazy" width="300" height="200">
                        </figure>
                        <div class="card_group_item_body">
                            <h3 class="card_group_item_stat">
                                <span class="card_group_item_stat_figure">100%</span>
                                <span class="card_group_item_stat_context">of undergraduate students</span>
                            </h3>
                            <div class="card_group_item_description">
                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget est sed ex pretium fringilla. <a href="#">Vivamus ac turpis</a> quis eros consectetur ornare.</p>
                            </div>
                        </div>
                    </li>
                    <li class="card_group_item">
                        <figure class="card_group_item_figure">

                            <img class="card_group_item_image" srcset="https://images.fastspot.com/hamilton/740x494/3 740w, https://images.fastspot.com/hamilton/500x334/3 500w, https://images.fastspot.com/hamilton/300x200/3 300w" src="https://images.fastspot.com/hamilton/300x200/3" alt="" loading="lazy" width="300" height="200">
                        </figure>
                        <div class="card_group_item_body">
                            <h3 class="card_group_item_title">
                                <span class="card_group_item_title_label">Ornare Egestas</span>
                            </h3>
                            <div class="card_group_item_description">
                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget est sed ex pretium fringilla. Vivamus ac turpis quis eros consectetur ornare.</p>
                            </div>
                        </div>
                    </li>
                    <li class="card_group_item">
                        <figure class="card_group_item_figure">

                            <img class="card_group_item_image" srcset="https://images.fastspot.com/hamilton/740x494/4 740w, https://images.fastspot.com/hamilton/500x334/4 500w, https://images.fastspot.com/hamilton/300x200/4 300w" src="https://images.fastspot.com/hamilton/300x200/4" alt="" loading="lazy" width="300" height="200">
                        </figure>
                        <div class="card_group_item_body">
                            <h3 class="card_group_item_stat">
                                <span class="card_group_item_stat_figure">100%</span>
                                <span class="card_group_item_stat_context">of undergraduate students</span>
                            </h3>
                            <div class="card_group_item_description">
                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget est sed ex pretium fringilla. Vivamus ac turpis quis eros consectetur ornare.</p>
                            </div>
                        </div>
                    </li>
                    <li class="card_group_item">
                        <figure class="card_group_item_figure">

                            <img class="card_group_item_image" srcset="https://images.fastspot.com/hamilton/740x494/1 740w, https://images.fastspot.com/hamilton/500x334/1 500w, https://images.fastspot.com/hamilton/300x200/1 300w" src="https://images.fastspot.com/hamilton/300x200/1" alt="" loading="lazy" width="300" height="200">
                        </figure>
                        <div class="card_group_item_body">
                            <h3 class="card_group_item_title">
                                <span class="card_group_item_title_label">Ornare Egestas</span>
                            </h3>
                            <div class="card_group_item_description">
                                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget est sed ex pretium fringilla. Vivamus ac turpis quis eros consectetur ornare.</p>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- END: Card Group -->
{#
	{% include '@component-card-group' with {
		title: 'Title',
		description: 'Description',
		items: [
			{
				image: '1',
				title: 'Item Title',
				description: 'Item Description'
			}
		]
	} %}
#}

{% if items|length % 4 == 0 %}
	{% set card_count = 4 %}
{% elseif items|length % 3 == 0 %}
	{% set card_count = 3 %}
{% else %}
	{% set card_count = 2 %}
{% endif %}

<!-- Card Group -->
<div class="card_group">
	{% if title or description %}
		<div class="card_group_header">
			<div class="fs-row">
				<div class="fs-cell {{ cell }}">
					<div class="card_group_header_inner">
						{% if title %}
							<h2 class="card_group_title">{{ title }}</h2>
						{% endif %}
						{% if description %}
							<div class="card_group_description">
								<p>{{ description }}</p>
							</div>
						{% endif %}
					</div>
				</div>
			</div>
		</div>
	{% endif %}
	<div class="card_group_body">
		<div class="fs-row">
			<div class="fs-cell">
				<ul class="card_group_items card_count_{{ card_count }}" {% if title %} aria-label="{{ title }}" {% endif %}>
					{% for item in items %}
						<li class="card_group_item">
							<figure class="card_group_item_figure">
								{% include '@partial-image' with {
									class: 'card_group_item',
									alt: '',
									image: item.image,
									loading: 'lazy',
									sources: [
										img.classic.sml,
										img.classic.xsml,
										img.classic.xxsml
									]
								} %}
							</figure>
							<div class="card_group_item_body">
								{% if item.title %}
									{% if title %}
										<h3 class="card_group_item_title">
									{% else %}
										<h2 class="card_group_item_title">
									{% endif %}
											<span class="card_group_item_title_label">{{ item.title }}</span>
									{% if title %}
										</h3>
									{% else %}
										</h2>
									{% endif %}
								{% elseif item.stat %}
									{% if title %}
										<h3 class="card_group_item_stat">
									{% else %}
										<h2 class="card_group_item_stat">
									{% endif %}
										<span class="card_group_item_stat_figure">{{ item.stat.figure }}</span>
										<span class="card_group_item_stat_context">{{ item.stat.context }}</span>
									{% if title %}
										</h3>
									{% else %}
										</h2>
									{% endif %}
								{% endif %}
								<div class="card_group_item_description">
									<p>{{ item.description }}</p>
								</div>
							</div>
						</li>
					{% endfor %}
				</ul>
			</div>
		</div>
	</div>
</div>
<!-- END: Card Group -->

No notes defined.