
;(function($) {
	$('.csc-textpic-imagewrap,.ce-textpic,.ce-image,.img-wrap,.image-wrap,.gallery-row').each(function() {
		$(this).magnificPopup({
			delegate: 'a:isImageFile',
			tClose: 'Schließen (Esc)',
			type: 'image',
			tLoading: 'Lade Bild #%curr%...',
			mainClass: 'mfp-img-mobile',
			gallery: {
				enabled: 1,
				preload: [1,2],
				navigateByImgClick: 1,
				arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',
				tPrev: 'Vorheriges (Linke Pfeiltaste)',
				tNext: 'Nächstes (Rechte Pfeiltaste)',
				tCounter: '%curr% von %total%'
			},
			image: {
				cursor: 'mfp-zoom-out-cur',
				titleSrc: 'title',
				verticalGap: 88,
				verticalFit: 1,
				tError: '&lt;a href=&quot;%url%&quot;&gt;Das Bild&lt;/a&gt; konnte nicht geladen werden.'
			},
			removalDelay: 0
		});
	});
})(window.jQuery || window.Zepto);
;(function($) {
	$('.mfp-link').magnificPopup({
		type: 'iframe',
		tClose: 'Schließen (Esc)',
		tLoading: 'Lade Bild #%curr%...',
		disableOn: 0,
		mainClass: '',
		preloader: 1,
		closeOnContentClick: 0,
		closeOnBgClick: 1,
		closeBtnInside: 0,
		showCloseBtn: 1,
		enableEscapeKey: 1,
		modal: 0,
		alignTop: 0,
		fixedContentPos: 'auto',
		fixedBgPos: 'auto',
		overflowY: 'auto',
		removalDelay: 0,
		closeMarkup: '<button title="%title%" class="mfp-close"><i class="mfp-close-icn mfp-close">&times;</i></button>'
	});
})(window.jQuery || window.Zepto);
;(function($) {
	$('.mfp-ajax-link').magnificPopup({
		type: 'ajax',
		tClose: 'Schließen (Esc)',
		tLoading: 'Laden...',
		ajax: {
			cursor: '0',
			tError: '&lt;a href=&quot;%url%&quot;&gt;Der Inhalt&lt;/a&gt; konnte nicht geladen werden.'
		},
		disableOn: 0,
		mainClass: '',
		preloader: 1,
		focus: '',
		closeOnContentClick: 0,
		closeOnBgClick: 1,
		closeBtnInside: 0,
		showCloseBtn: 1,
		enableEscapeKey: 1,
		modal: 0,
		alignTop: 0,
		fixedContentPos: 'auto',
		fixedBgPos: 'auto',
		overflowY: 'auto',
		removalDelay: 0,
		closeMarkup: '<button title="%title%" class="mfp-close"><i class="mfp-close-icn mfp-close">&times;</i></button>',
		callbacks: {
			ajaxContentAdded: function() {
				try {
					$("img.lazyload").responsiveimages({}, function() {
						$(this).load(function() {
							this.style.opacity = 1;
						});
					});
				} catch(e) {}
			}
		}
	});
})(window.jQuery || window.Zepto);