{% for post in posts %}

	{% set iter = loop.index %}
	{% set number = [13,25,37,49,61] %}
	{% set rm = random() %}
	
	{% if loop.index == 1 %}<div id="iter-1" class="col-12"><div class="row">{% endif %}
	{% for i in number %}{% if i == iter %}

		<div class="text-center col-12 mt-5 mb-5" onclick="this.hidden=true">
			<a href="#iter-{{i}}-{{rm}}" class="btn btn-outline-primary" data-toggle="collapse" role="button" aria-expanded="false">Ver más</a>
		</div>

	</div></div>

	<div id="iter-{{i}}-{{rm}}" class="col-12 collapse"><div class="row">
	{% endif %}{% endfor %}
	
	<div class="col-md-4">
		<div class="project-item mb-4">{{loop.lenght}}
			<div class="overlay bg-gradient-9"></div>
			<img src="{{post.thumbnail|resize(500,500)}}" class="img-fluid" alt="{{post.title}}">
			<a href="{{post.link}}" class="d-block caption">
			<div class="text-center d-flex h-100 align-items-center p-3">
				<div>
					<h3>{{ post.title|truncate(12) }}</h3>
				</div>
			</div>
			</a>
		</div>
	</div>
	
	{% if loop.last %}</div></div>{% endif %}
	
{% endfor %}
