/* Shared across all six worlds, loaded between style.css and world.css.
   The Gallery page is a core Gallery block; on these installs the block's
   own column layout is not emitted, so the theme owns the grid. Each world
   restyles the frame (border, shadow) in its own world.css. */
.wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}
.wp-block-gallery.has-nested-images > figure.wp-block-image {
	margin: 0;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	width: auto;
}
.wp-block-gallery.has-nested-images > figure.wp-block-image:first-child { grid-column: span 2; aspect-ratio: 8 / 3; }
@media (max-width: 640px) { .wp-block-gallery.has-nested-images > figure.wp-block-image:first-child { grid-column: auto; aspect-ratio: 4 / 3; } }
.wp-block-gallery.has-nested-images > figure.wp-block-image > a { position: absolute; inset: 0; display: block; }
.wp-block-gallery.has-nested-images > figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wp-block-gallery.has-nested-images figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	padding: 0.6rem 0.8rem; font-size: 0.78rem; line-height: 1.4; color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7));
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.wp-block-gallery.has-nested-images figcaption a { color: #fff; }
/* The credit paragraph after the grid */
.entry-content .has-small-font-size, .oh-prose .has-small-font-size { font-size: 0.85rem; opacity: 0.85; margin-top: 0.5rem; }
