@import "photoswipe/dist/photoswipe.css";

.wp-block-leadgen-gallery {
	background-color: initial !important;
}
.wp-block-leadgen-gallery .gallery__image {
	pointer-events: none;
}

.gallery {
	max-width: 100%;
}
.gallery--grid {
	display: grid;
	grid-template-rows: auto;
}
.gallery--grid .gallery__image {
	display: block;
	padding-bottom: calc(100% / (var(--aspect-ratio)));
	width: 100%;
}
.gallery--grid .gallery__image-img {
	bottom: 0;
	display: block;
	height: 100%;
	left: 0;
	-o-object-fit: cover;
	object-fit: cover;
	position: absolute;
	right: 0;
	top: 0;
}
.gallery__item {
	position: relative;
}
.gallery__item:hover .gallery__image__text--container {
	opacity: 1;
}
.gallery__item--hidden {
	display: none;
}
.gallery__item--sizer {
	position: absolute;
}
.gallery__item--sizer-1 {
	width: 100%;
}
.gallery__item--sizer-2,
.gallery__item--sizer-3,
.gallery__item--sizer-4,
.gallery__item--sizer-5,
.gallery__item--sizer-6 {
	width: 50%;
}
@media only screen and (min-width: 40.001rem) {
	.gallery__item--sizer-3,
	.gallery__item--sizer-4 {
		width: 33.33%;
	}
	.gallery__item--sizer-5,
	.gallery__item--sizer-6 {
		width: 25%;
	}
}
@media only screen and (min-width: 62.001rem) {
	.gallery__item--sizer-4 {
		width: 25%;
	}
	.gallery__item--sizer-5,
	.gallery__item--sizer-6 {
		width: 20%;
	}
}
@media only screen and (min-width: 76.001rem) {
	.gallery__item--sizer-6 {
		width: 16.66%;
	}
}
.gallery__item--gap-xs {
	padding: 0.125rem;
}
.gallery__item--gap-sm {
	padding: 0.25rem;
}
.gallery__item--gap-md {
	padding: 0.5rem;
}
.gallery__item--gap-lg {
	padding: 0.75rem;
}
.gallery__item--gap-xl {
	padding: 1rem;
}
.gallery__image {
	position: relative;
	text-decoration: none;
}
.gallery__image-img {
	display: block;
	height: 100%;
	-o-object-fit: contain;
	object-fit: contain;
	width: 100%;
}
.gallery__image-img:hover {
	opacity: 0.95;
}
.gallery__image__overlay {
	height: 100%;
	opacity: 0.375;
	position: absolute;
	width: 100%;
}
.gallery__image__overlay--color-primary {
	background-color: var(--primary);
}
.gallery__image__overlay--color-secondary {
	background-color: var(--secondary);
}
.gallery__image__overlay--color-accent-1 {
	background-color: var(--accent-1);
}
.gallery__image__overlay--color-accent-2 {
	background-color: var(--accent-2);
}
.gallery__image-placeholder {
	background-color: #ddd;
}
.gallery__image-placeholder-1 {
	height: 200px;
}
.gallery__image-placeholder-2 {
	height: 25pc;
}
.gallery__image__text {
	display: block;
	text-align: center;
}
.gallery__image__text--container {
	bottom: 0;
	height: 100%;
	left: 0;
	opacity: 0;
	padding: inherit;
	pointer-events: none;
	position: absolute;
	right: 0;
	transition: all 0.5s;
}
.gallery__image__text--container .gallery__image__text {
	align-items: center;
	display: flex;
	flex-flow: column nowrap;
	height: 100%;
	justify-content: center;
	overflow: hidden;
	padding: 0.5em;
	position: relative;
	text-align: center;
}
.gallery__image__text--title {
	display: inherit;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.25;
	padding-top: 0.25rem;
	z-index: 1;
}
@media only screen and (min-width: 40.001rem) {
	.gallery__image__text--title {
		font-size: 1.125em;
	}
}
.gallery__image__text--desc {
	display: inherit;
	font-size: 0.75em;
	font-weight: lighter;
	z-index: 1;
	word-wrap: break-word;
}
@media only screen and (min-width: 40.001rem) {
	.gallery__image__text--desc {
		font-size: 0.875em;
	}
}
.gallery__image__text--color-primary {
	color: var(--primary);
}
.gallery__image__text--color-secondary {
	color: var(--secondary);
}
.gallery__image__text--color-accent-1 {
	color: var(--accent-1);
}
.gallery__image__text--color-accent-2 {
	color: var(--accent-2);
}
.gallery--ratio-16-9 {
	--aspect-ratio: 16/9;
}
.gallery--ratio-9-16 {
	--aspect-ratio: 9/16;
}
.gallery--ratio-1-1 {
	--aspect-ratio: 1/1;
}
.gallery--ratio-4-3 {
	--aspect-ratio: 4/3;
}
.gallery--ratio-3-4 {
	--aspect-ratio: 3/4;
}
.gallery--ratio-21-9 {
	--aspect-ratio: 21/9;
}
.gallery--ratio-9-21 {
	--aspect-ratio: 9/21;
}
.gallery--columns {
	grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.gallery--columns-1 {
	grid-template-columns: repeat(1, 1fr);
}
@media only screen and (min-width: 40.001rem) {
	.gallery--columns-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media only screen and (min-width: 62.001rem) {
	.gallery--columns-3,
	.gallery--columns-4 {
		grid-template-columns: repeat(3, 1fr);
	}
	.gallery--columns-5 {
		grid-template-columns: repeat(4, 1fr);
	}
	.gallery--columns-6 {
		grid-template-columns: repeat(5, 1fr);
	}
}
@media only screen and (min-width: 76.001rem) {
	.gallery--columns-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.gallery--columns-5 {
		grid-template-columns: repeat(5, 1fr);
	}
	.gallery--columns-6 {
		grid-template-columns: repeat(6, 1fr);
	}
}
.gallery__sorting {
	display: flex;
	flex-flow: row wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 1rem auto;
	max-width: 24em;
}
.gallery__sorting__button {
	font-size: 0.75rem;
	min-width: 5em;
	padding: 0.25rem 0.675rem;
}
.gallery__sorting__button.btn-primary.active-filter {
	background-color: var(--primary);
	border-color: var(--accent-1);
	color: var(--accent-1);
}
.gallery__sorting__button.btn-secondary.active-filter {
	background-color: var(--primary);
	border-color: var(--accent-2);
	color: var(--accent-2);
}
.gallery__pagination {
	display: flex;
	justify-content: center;
	margin: auto;
	margin-bottom: 0.5rem;
	margin-top: 1rem;
}
.gallery__button {
	border-radius: 4rem;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 700;
	padding: 0.375rem 1.5rem;
	transition: all 0.25s;
}
