
.entry-content figure.wp-block-gallery {
	align-items: center;

	figure.wp-block-image {
		margin: 0!important;
		display: flex;
		align-items: center;
		justify-content: center;
		/*flex-grow: 0;
		width: auto!important;*/
		&.alignleft { align-items: flex-start; }
		&.alignright { align-items: flex-end; }
	}

	img {

	}

	/* Layout */

	&.gallery-layout--masonry {
	  display: grid;
	  grid-template-columns: repeat(3, 1fr);
	  grid-template-rows: masonry;
		.wp-block-image {
			margin-bottom: 24px!important;
		}

		a,
		img {
			width: 100%;
		}
	}

	&.gallery-layout--logos {
		display: flex;
		flex-wrap: wrap;
		figure {
			flex-grow: 0;
		}

		img {
			max-height: 120px;
		}
	}
}

/* Magnific Popup */
.mfp-fade.mfp-bg,
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content,
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}

.mfp-image-holder .mfp-close, 
.mfp-iframe-holder .mfp-close {
	right: 8px;
}

.mfp-figure::after {
	content: none;
}

.mfp-gallery img {
    max-height: calc(100vh - 80px) !important;
		padding: 0;
}

.mfp-bottom-bar {
		margin-top: 6px;
    margin-left: -18px;
}