/* Public collections use the width of the surrounding theme section. */
.zups-gallery { display: grid; margin-block: 1rem; width: 100%; gap: 3px; }
.zups-gallery--grid { grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); }
.zups-gallery--grid .zups-gallery__image { aspect-ratio: 202 / 180; }
.zups-gallery--justified { display: flex; flex-wrap: wrap; --zups-row-height: 200px; }
.zups-gallery--justified .zups-gallery__image {
	flex: var(--zups-photo-ratio) 1 calc(var(--zups-photo-ratio) * var(--zups-row-height));
	aspect-ratio: var(--zups-photo-ratio);
	min-width: 0;
}
.zups-gallery--justified::after { content: ""; flex-grow: 1000; }
.zups-gallery .zups-gallery__image { display: block; position: relative; overflow: hidden; background: #102d3e; }
.zups-gallery .zups-gallery__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.zups-gallery__image:focus-visible { outline: 3px solid #168fe8; outline-offset: -4px; z-index: 1; }
.zups-gallery-directory nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.zups-gallery-directory nav a { border: 1px solid #0f6da6; padding: .4em .7em; border-radius: 4px; }
.zups-gallery-directory nav a[aria-current="true"] { color: #fff; background: #0965a1; }
.zups-gallery-directory section[hidden] { display: none; }
@media (max-width: 600px) {
	.zups-gallery--justified { --zups-row-height: 125px; }
	.zups-gallery--grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
body.zups-lightbox-open {
	overflow: hidden;
}

.zups-lake-lightbox {
	width: min(1120px, calc(100% - 32px));
	max-width: none;
	height: min(880px, calc(100% - 32px));
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #03131e;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	color: #fff;

}

.zups-lake-lightbox::backdrop {
	background: rgba(0, 8, 14, 0.88);
	backdrop-filter: blur(5px);
}

.zups-lake-lightbox__frame {
	position: relative;
	display: grid;
	height: 100%;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	padding: 1.25rem;
}

.zups-lake-lightbox figure {
	display: grid;
	min-width: 0;
	height: 100%;
	grid-column: 2;
	grid-row: 1;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	margin: 0;
}

.zups-lake-lightbox img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
}

.zups-lake-lightbox figcaption {
	padding: 0.8rem 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.8rem;
	line-height: 1.45;
	text-align: center;
}

.zups-lake-lightbox button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.zups-lake-lightbox button[hidden] {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.zups-lake-lightbox button:hover {
		border-color: #7ed6ff;
		background: rgba(22, 143, 232, 0.28);
	}
}

.zups-lake-lightbox button:focus-visible {
	border-color: #7ed6ff;
	background: rgba(22, 143, 232, 0.28);
	outline: 3px solid rgba(126, 214, 255, 0.35);
	outline-offset: 3px;
}

.zups-lake-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	width: 44px;
	height: 44px;
	font-size: 1.65rem;
	line-height: 1;
}

.zups-lake-lightbox__previous,
.zups-lake-lightbox__next {
	width: 46px;
	height: 58px;
	font-size: 2rem;
	line-height: 1;
}

.zups-lake-lightbox__previous {
	grid-column: 1;
	grid-row: 1;
}

.zups-lake-lightbox__next {
	grid-column: 3;
	grid-row: 1;
}

.zups-lake-lightbox--single .zups-lake-lightbox__frame {
	grid-template-columns: minmax(0, 1fr);
}

.zups-lake-lightbox--single figure {
	grid-column: 1;
}
@media (max-width: 767px) {
	.zups-lake-lightbox {
		width: calc(100% - 16px);
		height: calc(100% - 16px);
	}

	.zups-lake-lightbox__frame {
		grid-template-columns: 42px minmax(0, 1fr) 42px;
		padding: 0.75rem;
	}

	.zups-lake-lightbox__previous,
	.zups-lake-lightbox__next {
		width: 36px;
		height: 52px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.zups-lake-lightbox button { transition: none; }
}

.zups-lake-lightbox figcaption { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .35rem .875rem; }
.zups-lake-lightbox figcaption span:empty { display: none; }
.zups-lake-lightbox figcaption .zups-viewer-original { color: #9adeff; text-decoration: underline; }
.zups-lake-lightbox img { touch-action: pan-y pinch-zoom; }
