<div id="primary" class="wide">
	<txp:if_individual_article>
	<article role="content">
	<txp:article>
		
		<h1><txp:title /></h1>
		<txp:body />
<div id="galleria">
		<txp:smd_gallery category='<txp:custom_field name="gallery-category" />' limit="999" sort="date desc">
			<a href="{url}"><txp:article_image /></a>
		</txp:smd_gallery>
</div>

<txp:output_form form="prevnext" />
	</txp:article>

	</article>
<txp:else />
	<section role="content">
<h1>Gallery</h1>
	<txp:article>
		<article class="release">
<txp:permlink>
			<txp:smd_gallery id="?article_image" sort="fixed" limit="1">
			<txp:article_image />
			</txp:smd_gallery>
			<h1><txp:title /></h1>
			<txp:body />
</txp:permlink>
		</article>
	</txp:article>

<txp:output_form form="prevnext" />
	</section>
</txp:if_individual_article>
</div>