.torlei-gallery {
	--gap: 12px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 var(--gap);
	opacity: 0;
	transition: opacity .4s ease;
}
.torlei-gallery.is-ready { opacity: 1; }
.torlei-gallery-page__header {
    padding-top: 4rem;
}
.torlei-gallery-page__header h1 {
    padding-left: 1rem;
}
/* 3 columns on desktop */
.torlei-gallery__sizer,
.torlei-gallery__item {
	width: calc( ( 100% - ( 2 * var(--gap) ) ) / 3 );
}
.torlei-gallery__gutter { width: var(--gap); }

.torlei-gallery__item {
	margin: 0 0 var(--gap);
}

.torlei-gallery__link {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.torlei-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	opacity: .92;
	transition: transform .4s ease, opacity .3s ease;
}
.torlei-gallery__link:hover .torlei-gallery__img,
.torlei-gallery__link:focus-visible .torlei-gallery__img {
	transform: scale( 1.03 );
	opacity: 1;
}

.hidden-caption-content { display: none; }

/* 2 columns on tablet */
@media ( max-width: 1024px ) {
	.torlei-gallery__sizer,
	.torlei-gallery__item {
		width: calc( ( 100% - var(--gap) ) / 2 );
	}
}

/* 1 column on mobile */
@media ( max-width: 560px ) {
	.torlei-gallery__sizer,
	.torlei-gallery__item {
		width: 100%;
	}
}

/* PhotoSwipe caption bar */
.pswp__torlei-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px 20px;
	text-align: center;
	color: #fff;
	font-size: 14px;
	background: linear-gradient( transparent, rgba( 0, 0, 0, .6 ) );
	pointer-events: none;
}
.pswp__torlei-caption:empty { display: none; }

