/**
 * Photo Gallery block.
 */

.prism-photo-gallery {
	--prism-gallery-gutter: 15px;
	overflow-x: clip;
	width: 100%;
}

.prism-photo-gallery__heading {
	margin: 0 0 1.5rem;
}

.prism-photo-gallery__heading--align-center {
	text-align: center;
}

.prism-photo-gallery__grid {
	margin-left: calc(-1 * var(--prism-gallery-gutter));
	margin-right: calc(-1 * var(--prism-gallery-gutter));
	width: calc(100% + (2 * var(--prism-gallery-gutter)));
}

.prism-photo-gallery__item {
	margin: 0;
}

.prism-photo-gallery__link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.prism-photo-gallery__link:hover,
.prism-photo-gallery__link:focus {
	text-decoration: none;
}

.prism-photo-gallery__image {
	display: block;
	height: auto;
	max-width: 100%;
	transition: transform 0.3s ease;
	width: 100%;
}

.prism-photo-gallery__link:hover .prism-photo-gallery__image,
.prism-photo-gallery__link:focus .prism-photo-gallery__image {
	transform: scale(1.03);
}

.prism-photo-gallery:not(.prism-photo-gallery--maintain-aspect-ratio):not(.prism-photo-gallery--square-cards).prism-photo-gallery--columns-1 .prism-photo-gallery__image,
.prism-photo-gallery:not(.prism-photo-gallery--maintain-aspect-ratio):not(.prism-photo-gallery--square-cards).prism-photo-gallery--columns-2 .prism-photo-gallery__image {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.prism-photo-gallery:not(.prism-photo-gallery--maintain-aspect-ratio):not(.prism-photo-gallery--square-cards).prism-photo-gallery--columns-3 .prism-photo-gallery__image,
.prism-photo-gallery:not(.prism-photo-gallery--maintain-aspect-ratio):not(.prism-photo-gallery--square-cards).prism-photo-gallery--columns-4 .prism-photo-gallery__image {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.prism-photo-gallery--carousel .uk-slider-items.uk-grid {
	margin-left: calc(-1 * var(--prism-gallery-gutter));
	width: calc(100% + var(--prism-gallery-gutter));
}

.prism-photo-gallery--carousel .uk-slider-items.uk-grid > * {
	padding-left: var(--prism-gallery-gutter);
}

.prism-photo-gallery--maintain-aspect-ratio .prism-photo-gallery__grid > * {
	align-self: flex-start;
}

.prism-photo-gallery--maintain-aspect-ratio .prism-photo-gallery__link {
	height: auto;
	line-height: 0;
}

.prism-photo-gallery--maintain-aspect-ratio .prism-photo-gallery__image,
.prism-photo-gallery__image--natural {
	height: auto;
	max-width: 100%;
	object-fit: unset;
	width: 100%;
}

.prism-photo-gallery--square-cards .prism-photo-gallery__item {
	box-sizing: border-box;
	display: flex;
	max-width: 100%;
	min-width: 0;
}

.prism-photo-gallery--square-cards .prism-photo-gallery__card {
	aspect-ratio: 1 / 1;
	background-color: var(--prism-gallery-card-bg, #f2f2f2);
	box-sizing: border-box;
	display: flex;
	overflow: hidden;
	padding: 1rem;
	width: 100%;
}

.prism-photo-gallery--square-cards .prism-photo-gallery__link {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	line-height: 0;
	width: 100%;
}

.prism-photo-gallery--square-cards .prism-photo-gallery__image,
.prism-photo-gallery__image--contained {
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.prism-photo-gallery--square-cards .prism-photo-gallery__link:hover .prism-photo-gallery__image,
.prism-photo-gallery--square-cards .prism-photo-gallery__link:focus .prism-photo-gallery__image {
	transform: scale(1.03);
}

@media (max-width: 639px) {
	.prism-photo-gallery--square-cards .prism-photo-gallery__card {
		padding: 0.75rem;
	}

	.prism-photo-gallery--carousel-fixed-height .uk-slider-container,
	.prism-photo-gallery--carousel-fixed-height .uk-slider-items,
	.prism-photo-gallery--carousel-fixed-height .uk-slider-items > li,
	.prism-photo-gallery--carousel-fixed-height .prism-photo-gallery__slide {
		height: auto;
		min-height: 0;
	}

	.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow {
		display: none !important;
	}
}

.prism-photo-gallery--carousel-fixed-height {
	--prism-gallery-carousel-height: var(--prism-gallery-carousel-height-mobile, 320px);
}

@media (min-width: 640px) {
	.prism-photo-gallery--carousel-fixed-height {
		--prism-gallery-carousel-height: var(--prism-gallery-carousel-height-tablet, var(--prism-gallery-carousel-height-mobile, 320px));
	}
}

@media (min-width: 960px) {
	.prism-photo-gallery--carousel-fixed-height {
		--prism-gallery-carousel-height: var(--prism-gallery-carousel-height-desktop, var(--prism-gallery-carousel-height-tablet, var(--prism-gallery-carousel-height-mobile, 320px)));
	}
}

.prism-photo-gallery--carousel-fixed-height .uk-slider-container {
	height: var(--prism-gallery-carousel-height);
}

.prism-photo-gallery--carousel-fixed-height .uk-slider-items {
	align-items: stretch;
	height: 100%;
}

.prism-photo-gallery--carousel-fixed-height .uk-slider-items.uk-grid {
	align-items: stretch;
}

.prism-photo-gallery--carousel-fixed-height .uk-slider-items > li {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
}

.prism-photo-gallery--carousel-fixed-height .prism-photo-gallery__slide {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	width: 100%;
}

.prism-photo-gallery--carousel-fixed-height .prism-photo-gallery__link {
	box-sizing: border-box;
	height: 100%;
	min-height: 0;
	width: 100%;
}

.prism-photo-gallery--carousel-fixed-height:not(.prism-photo-gallery--square-cards) .prism-photo-gallery__link {
	display: block;
	overflow: hidden;
}

.prism-photo-gallery--carousel-fixed-height:not(.prism-photo-gallery--maintain-aspect-ratio):not(.prism-photo-gallery--square-cards) .prism-photo-gallery__image {
	display: block;
	height: 100%;
	max-height: none;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--square-cards .prism-photo-gallery__card {
	aspect-ratio: unset;
	flex: 1 1 auto;
	height: 100%;
	max-width: 100%;
	min-height: 0;
	width: 100%;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--square-cards:not(.prism-photo-gallery--maintain-aspect-ratio) .prism-photo-gallery__link {
	align-items: stretch;
	display: flex;
	justify-content: stretch;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--square-cards:not(.prism-photo-gallery--maintain-aspect-ratio) .prism-photo-gallery__image,
.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--square-cards:not(.prism-photo-gallery--maintain-aspect-ratio) .prism-photo-gallery__image--contained {
	display: block;
	height: 100%;
	max-height: none;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--square-cards.prism-photo-gallery--maintain-aspect-ratio .prism-photo-gallery__image,
.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--square-cards.prism-photo-gallery--maintain-aspect-ratio .prism-photo-gallery__image--contained {
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--maintain-aspect-ratio:not(.prism-photo-gallery--square-cards) .prism-photo-gallery__slide {
	align-items: center;
	justify-content: center;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--maintain-aspect-ratio:not(.prism-photo-gallery--square-cards) .prism-photo-gallery__link {
	display: flex;
	height: 100%;
}

.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--maintain-aspect-ratio:not(.prism-photo-gallery--square-cards) .prism-photo-gallery__image,
.prism-photo-gallery--carousel-fixed-height.prism-photo-gallery--maintain-aspect-ratio:not(.prism-photo-gallery--square-cards) .prism-photo-gallery__image--natural {
	aspect-ratio: unset;
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel {
	margin: 0;
	padding: 0;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel.uk-slider-container-offset {
	margin: 0;
	padding: 0;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative {
	isolation: isolate;
}

.prism-photo-gallery--carousel .prism-photo-gallery__slide {
	box-sizing: border-box;
	width: 100%;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow {
	color: #1a1a1a;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	text-decoration: none;
	top: 50%;
	transition: color 0.2s ease, opacity 0.25s ease;
	z-index: 20;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative:hover > .prism-photo-gallery__arrow,
.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative:focus-within > .prism-photo-gallery__arrow,
.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

@media (hover: none) {
	.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow {
		opacity: 0.85;
		pointer-events: auto;
	}
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow--previous {
	inset-inline-end: auto;
	inset-inline-start: 0;
	transform: translate(50%, -50%);
	width: max-content;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow--next {
	inset-inline-end: 0;
	inset-inline-start: auto;
	transform: translate(-50%, -50%);
	width: max-content;
}

.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow:hover,
.prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow:focus {
	color: var(--prism-color-accent, #f5552a);
	text-decoration: none;
}

.prism-photo-gallery__nav {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.prism-photo-gallery__nav > * > * {
	background-color: rgba(26, 26, 26, 0.35);
	border-color: transparent;
}

.prism-photo-gallery__nav > .uk-active > * {
	background-color: #1a1a1a;
}

.uk-light .prism-photo-gallery--carousel .prism-photo-gallery__carousel > .uk-position-relative > .prism-photo-gallery__arrow {
	color: #fff;
}

.uk-light .prism-photo-gallery--carousel .prism-photo-gallery__nav > * > * {
	background-color: rgba(255, 255, 255, 0.45);
}

.uk-light .prism-photo-gallery--carousel .prism-photo-gallery__nav > .uk-active > * {
	background-color: #fff;
}
