/* pic-gallery */
.pic-gallery > article:nth-child(1) {
	width: 73%;
	min-width: 0;
}

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

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

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

.pic-gallery .gallery-cols figure {
	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 */
.pic-gallery.pin-style {
	display: flex;
	align-items: flex-start;
}

.pic-gallery.pin-style > article:nth-child(1) {
	width: 64%;
	min-width: 0;
}

.pic-gallery.pin-style > article:nth-child(2) {
	width: 36%;
	min-width: 0;
	padding: 8rem 4rem;
	position: sticky;
	top: 0;
}

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

.pic-gallery.pin-style .gallery-cols > li {
	display: inline-block;
	width: 100%;
	margin-bottom: 1rem;
	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;
	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: 0.75rem;
	bottom: 0.75rem;
	z-index: 2;
	margin: 0;
	padding: 0.3rem 0.5rem;
	font-size: 0.75rem;
	line-height: 1;
	color: #fff;
}

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

.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: 0.5rem 0;
}

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

/* pic-gallery | modula-grid */
.pic-gallery.modula-grid {
	display: flex;
	align-items: flex-start;
}

.pic-gallery.modula-grid > article:nth-child(1) {
	width: 64%;
	min-width: 0;
}

.pic-gallery.modula-grid > article:nth-child(2) {
	position: sticky;
	top: 12dvh;
	width: 36%;
	min-width: 0;
	padding: 2rem;
}

.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: 10px;
	margin: 0;
	padding: 1rem;
	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 */
.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 0.25s ease;
	z-index: 350;
}

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

.zoom img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

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

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

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

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

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