.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption, .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, 0));
	bottom: 0;
	box-sizing: border-box;
	color: #fff;
	font-size: .8em;
	margin: 0;
	max-height: 100%;
	overflow: auto;
	padding: 3em .77em .7em;
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 2;
}

.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img, .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img {
	display: inline;
}

.blocks-gallery-grid:not(.has-nested-images) figcaption, .wp-block-gallery:not(.has-nested-images) figcaption {
	flex-grow: 1;
}

@media (min-width:600px) {}

.blocks-gallery-grid:not(.has-nested-images).alignleft, .blocks-gallery-grid:not(.has-nested-images).alignright, .wp-block-gallery:not(.has-nested-images).alignleft, .wp-block-gallery:not(.has-nested-images).alignright {
	max-width: 420px;
	width: 100%;
}

.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure, .wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure {
	justify-content: center;
}

.wp-block-gallery.has-nested-images figure.wp-block-image>a, .wp-block-gallery.has-nested-images figure.wp-block-image>div {
	flex-direction: column;
	flex-grow: 1;
	margin: 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption, .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
	bottom: 0;
	left: 0;
	max-height: 100%;
	position: absolute;
	right: 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
	backdrop-filter: blur(3px);
	content: "";
	height: 100%;
	-webkit-mask-image: linear-gradient(0deg, #000 20%, rgba(0, 0, 0, 0));
	mask-image: linear-gradient(0deg, #000 20%, rgba(0, 0, 0, 0));
	max-height: 3em;
	pointer-events: none;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	box-sizing: border-box;
	color: #fff;
	font-size: 13px;
	margin: 0;
	overflow: auto;
	padding: 1em;
	text-align: center;
	text-shadow: 0 0 1.5px #000;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar {
	height: 12px;
	width: 12px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track {
	background-color: initial;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb {
	background-clip: padding-box;
	background-color: initial;
	border: 3px solid rgba(0, 0, 0, 0);
	border-radius: 8px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, .8);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
	scrollbar-gutter: stable both-edges;
	scrollbar-width: thin;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover {
	scrollbar-color: rgba(255, 255, 255, .8) rgba(0, 0, 0, 0);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	will-change: transform;
}

@media (hover:none) {
	.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
		scrollbar-color: rgba(255, 255, 255, .8) rgba(0, 0, 0, 0);
	}
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img {
	display: inline;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a {
	color: inherit;
}

.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img {
	box-sizing: border-box;
}

.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div, .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a, .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div {
	flex: 1 1 auto;
}

.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption, .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption {
	background: none;
	color: inherit;
	flex: initial;
	margin: 0;
	padding: 10px 10px 9px;
	position: relative;
	text-shadow: none;
}

.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before, .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before {
	content: none;
}

.wp-block-gallery.has-nested-images figcaption {
	flex-basis: 100%;
	flex-grow: 1;
	text-align: center;
}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a, .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone) {
	display: flex;
}

@media (min-width:600px) {}

.wp-block-gallery.has-nested-images.alignleft, .wp-block-gallery.has-nested-images.alignright {
	max-width: 420px;
	width: 100%;
}

.wp-block-gallery.has-nested-images.aligncenter {
	justify-content: center;
}