/* pic-gallery mobile */
.pic-gallery {
	display: flex;
	flex-direction: column-reverse;
	width: 100%;
}

.pic-gallery > article:nth-child(1),
.pic-gallery > article:nth-child(2) {
	width: 100%;
	min-width: 0;
}

.pic-gallery > article:nth-child(2) {
	padding: 2rem 1rem;
}

.pic-gallery .gallery-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .35rem;
	width: 100%;
	margin: 0;
	padding: .5rem;
	list-style: none;
}

.pic-gallery .gallery-cols > li {
	width: 100%;
	min-width: 0;
	margin: 0;
}

.pic-gallery .gallery-cols figure {
	width: 100%;
	margin: 0;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.pic-gallery .gallery-cols img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pic-gallery .gallery-cols dl {
	display: none;
}

.pic-gallery.pin-style .gallery-cols {
	margin: 0;
	padding: .5rem;
	list-style: none;
	column-count: 3;
	column-gap: .5rem;
	display: block;
}

.pic-gallery.pin-style .gallery-cols > li {
	display: inline-block;
	width: 100%;
	margin-bottom: .5rem;
	vertical-align: top;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.pic-gallery.pin-style .gallery-cols figure {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: #111;
	aspect-ratio: 1 / 1;
}

.pic-gallery.pin-style .gallery-cols img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pic-gallery.pin-style .gallery-cols > li.ratio-square figure {
	aspect-ratio: 1 / 1;
}

.pic-gallery.pin-style .gallery-cols > li.ratio-portrait figure {
	aspect-ratio: 2 / 2.5;
}

.pic-gallery.pin-style .gallery-cols > li.ratio-landscape figure {
	aspect-ratio: 2.5 / 2;
}

.pic-gallery.pin-style .gallery-cols figcaption {
	position: absolute;
	left: .5rem;
	bottom: .5rem;
	z-index: 2;
	margin: 0;
	padding: .25rem .4rem;
	font-size: .65rem;
	line-height: 1;
	color: #fff;
	background: rgba(0, 0, 0, .45);
}

.pic-gallery.pin-style .gallery-cols .artxt {
	padding: .75rem;
}

.pic-gallery.pin-style .gallery-cols .artxt dt,
.pic-gallery.pin-style .gallery-cols .artxt dd,
.pic-gallery.pin-style .gallery-cols .artxt h3,
.pic-gallery.pin-style .gallery-cols .artxt h4,
.pic-gallery.pin-style .gallery-cols .artxt p {
	margin: 0;
	padding: 0;
}

.pic-gallery.pin-style .gallery-cols .artxt hr {
	margin: .5rem 0;
}

.pic-gallery.pin-style dl {
	display: block !important;
}

.pic-gallery.modula-grid .gallery-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: var(--cell);
	grid-auto-flow: dense;
	gap: .35rem;
	margin: 0;
	padding: .5rem;
	list-style: none;
}

.pic-gallery.modula-grid .gallery-cols > li {
	position: relative;
	display: block;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	break-inside: auto;
	-webkit-column-break-inside: auto;
	grid-column: span 1;
	grid-row: span 1;
}

.pic-gallery.modula-grid .gallery-cols > li.size-1x1 {
	grid-column: span 1;
	grid-row: span 1;
}

.pic-gallery.modula-grid .gallery-cols > li.size-2x1 {
	grid-column: span 2;
	grid-row: span 1;
}

.pic-gallery.modula-grid .gallery-cols > li.size-1x2 {
	grid-column: span 1;
	grid-row: span 2;
}

.pic-gallery.modula-grid .gallery-cols > li.size-2x2 {
	grid-column: span 2;
	grid-row: span 2;
}

.pic-gallery.modula-grid .gallery-cols figure {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
}

.pic-gallery.modula-grid .gallery-cols img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pic-gallery.modula-grid .gallery-cols .artxt {
	display: none;
}

/* zoom mobile */
/* zoom mobile */
.zoom {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgb(var(--n-dark) / 1);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
	z-index: 350;
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
}

.zoom.open {
	opacity: 1;
	pointer-events: auto;
}

.zoom img {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	max-width: 94vw;
	max-height: 86dvh;
	object-fit: contain;
	box-shadow: 0 0 30px rgba(0, 0, 0, .45);
	transform: translate(-50%, -50%);
	will-change: transform;
	transition: transform .28s ease;
}

.zoom.is-dragging img {
	transition: none;
}

.zoom-ghost {
	pointer-events: none;
}

.zoom-close,
.zoom-prev,
.zoom-next {
	position: absolute;
	padding: .5rem;
	font-size: 2.5rem;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	border: none;
	background: none;
	z-index: 2;
}

.zoom-close {
	top: 1rem;
	right: 1rem;
}

.zoom-prev {
	top: 50%;
	left: .5rem;
	transform: translateY(-50%);
}

.zoom-next {
	top: 50%;
	right: .5rem;
	transform: translateY(-50%);
}

.zoom-count {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	font-size: .9rem;
	letter-spacing: .08em;
	color: #f00;
	transform: translateX(-50%);
	z-index: 2;
}