.single-post .single-postlike>.entry-content,
.single-post .single-postlike>.single-share-box{
	width:min(100%,760px)!important;
	max-width:760px!important;
	margin-left:auto!important;
	margin-right:auto!important;
	box-sizing:border-box!important;
}

/* The custom PBRI single-post template uses these wrappers instead of
   .entry-content/.single-share-box. Keep the article, gallery and share
   divider on one 760px alignment grid, with a 20px gutter on small screens. */
.pi-single__content,
.pi-single__share{
	width:min(760px,calc(100% - 40px))!important;
	max-width:760px!important;
	margin-left:auto!important;
	margin-right:auto!important;
	box-sizing:border-box!important;
}

.wp-block-gallery.pi-news-gallery{
	--pi-news-gallery-columns:3;
	position:relative!important;
	left:auto!important;
	right:auto!important;
	float:none!important;
	clear:both!important;
	display:grid!important;
	width:100%!important;
	max-width:760px!important;
	grid-template-columns:repeat(var(--pi-news-gallery-columns),minmax(0,1fr))!important;
	gap:14px!important;
	margin:34px auto!important;
	padding:0!important;
	transform:none!important;
	box-sizing:border-box!important;
}
.wp-block-gallery.pi-news-gallery--1{--pi-news-gallery-columns:1;max-width:520px!important}
.wp-block-gallery.pi-news-gallery--2,.wp-block-gallery.pi-news-gallery--4{--pi-news-gallery-columns:2}
.wp-block-gallery.pi-news-gallery--3,.wp-block-gallery.pi-news-gallery--5,.wp-block-gallery.pi-news-gallery--6{--pi-news-gallery-columns:3}
.wp-block-gallery.pi-news-gallery>.wp-block-image{
	display:block!important;
	width:100%!important;
	min-width:0!important;
	margin:0!important;
	overflow:hidden!important;
	border-radius:8px!important;
	background:#edf1f4!important;
}
.wp-block-gallery.pi-news-gallery>.wp-block-image a{display:block!important;width:100%!important;height:100%!important}
.wp-block-gallery.pi-news-gallery>.wp-block-image img{
	display:block!important;
	width:100%!important;
	height:100%!important;
	margin:0!important;
	aspect-ratio:4/3;
	object-fit:cover;
}
.wp-block-gallery.pi-news-gallery--5{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.wp-block-gallery.pi-news-gallery--5>.wp-block-image{grid-column:span 2}
.wp-block-gallery.pi-news-gallery--5>.wp-block-image:nth-child(4){grid-column:2/span 2}
.wp-block-gallery.pi-news-gallery--5>.wp-block-image:nth-child(5){grid-column:4/span 2}

/* The7/PhotoSwipe normally fades the overlay and zoom layer in over 333ms.
   The submitted gallery already displays the full WebP source, so that
   animation only exposes a dark placeholder on the first open. */
.pswp--open.pswp--animate_opacity{
	opacity:1!important;
	transition:none!important;
}
.pswp--open .pswp__bg,
.pswp--open .pswp__container,
.pswp--open .pswp__zoom-wrap{
	transition:none!important;
	animation:none!important;
}

@media(max-width:700px){
	.wp-block-gallery.pi-news-gallery{
		--pi-news-gallery-columns:2;
		width:100%!important;
		gap:10px!important;
		margin:26px auto!important;
		grid-template-columns:repeat(var(--pi-news-gallery-columns),minmax(0,1fr))!important;
	}
	.wp-block-gallery.pi-news-gallery--1{--pi-news-gallery-columns:1;max-width:100%!important}
	.wp-block-gallery.pi-news-gallery--5>.wp-block-image{grid-column:auto!important}
	.wp-block-gallery.pi-news-gallery--5>.wp-block-image:last-child{grid-column:1/-1!important;width:calc(50% - 5px)!important;justify-self:center}
}
@media(max-width:420px){
	.wp-block-gallery.pi-news-gallery{--pi-news-gallery-columns:1;grid-template-columns:1fr!important}
	.wp-block-gallery.pi-news-gallery--5>.wp-block-image:last-child{grid-column:auto!important;width:100%!important}
}
