.idg-gallery {
	--idg-accent: #71c7b1;
	--idg-image-scale: 100%;
	--idg-images-start: 180px;
	--idg-title-offset: 0px;
	display: grid;
	grid-template-columns: minmax(0, var(--idg-images-start)) minmax(0, 1fr);
	align-items: start;
	gap: 0;
	padding-block: clamp(28px, 5vw, 46px);
	border-top: 1px solid var(--idg-accent);
	border-bottom: 1px solid var(--idg-accent);
}

.idg-gallery__heading {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	transform: translateX(var(--idg-title-offset));
}

.idg-gallery__stage {
	position: relative;
	min-width: 0;
}

.idg-gallery__viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
	user-select: none;
}

.idg-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--idg-columns, 2), minmax(0, 1fr));
	align-items: start;
	justify-items: center;
	width: 100%;
	transition: transform 260ms ease;
}

.idg-gallery--columns-1 .idg-gallery__grid {
	--idg-columns: 1;
}

.idg-gallery--columns-2 .idg-gallery__grid {
	--idg-columns: 2;
}

.idg-gallery--columns-3 .idg-gallery__grid {
	--idg-columns: 3;
}

.idg-gallery button.idg-gallery__item,
.idg-gallery button.idg-gallery__item:hover,
.idg-gallery button.idg-gallery__item:focus,
.idg-gallery button.idg-gallery__item:focus-visible {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: var(--idg-image-scale);
	cursor: zoom-in;
	outline: 0;
	box-shadow: none;
	filter: none;
	transform: none;
	-webkit-tap-highlight-color: transparent;
}

.idg-gallery--slider .idg-gallery__grid {
	display: flex;
	align-items: stretch;
	justify-items: initial;
}

.idg-gallery.idg-gallery--slider button.idg-gallery__item,
.idg-gallery.idg-gallery--slider button.idg-gallery__item:hover,
.idg-gallery.idg-gallery--slider button.idg-gallery__item:focus,
.idg-gallery.idg-gallery--slider button.idg-gallery__item:focus-visible {
	flex: 0 0 calc((100% - var(--idg-slider-gap, 22px)) / 1.75);
	width: auto;
	cursor: grab;
}

.idg-gallery.idg-gallery--dragging button.idg-gallery__item,
.idg-gallery.idg-gallery--dragging button.idg-gallery__item:hover {
	cursor: grabbing;
}

.idg-gallery--slider .idg-gallery__image {
	width: var(--idg-image-scale);
	margin-inline: auto;
}

.idg-gallery .idg-gallery__image,
.idg-gallery button.idg-gallery__item:hover .idg-gallery__image,
.idg-gallery button.idg-gallery__item:focus .idg-gallery__image {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	object-fit: cover !important;
	filter: none !important;
	transform: none !important;
	pointer-events: none;
	-webkit-user-drag: none;
}

.idg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: rgba(32, 32, 31, 0.78);
}

.idg-lightbox.is-open {
	display: flex;
}

.idg-lightbox:focus {
	outline: none;
}

body.idg-lightbox-open {
	overflow: hidden;
}

.idg-lightbox__dialog {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	max-height: none;
	padding: var(--idg-lightbox-padding, 50px);
	padding-bottom: 18px;
	background: #fffdf0;
	border-radius: 0;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.idg-lightbox__image-wrap {
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 86px);
}

.idg-lightbox__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.idg-lightbox--wide .idg-lightbox__image-wrap {
	display: block;
}

.idg-lightbox--wide .idg-lightbox__image {
	width: 100%;
	height: 100%;
	object-position: left bottom;
}

.idg-lightbox--square .idg-lightbox__image,
.idg-lightbox--portrait .idg-lightbox__image {
	object-position: center;
}

.idg-lightbox__footer {
	position: absolute;
	left: var(--idg-footer-left, 66px);
	bottom: var(--idg-footer-bottom, 12px);
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 36px;
	padding-top: 0;
	color: #111;
	font-size: 11px;
	line-height: 1.4;
}

.idg-lightbox__count {
	flex: 0 0 auto;
	font-weight: 700;
}

.idg-lightbox__desc {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.idg-lightbox__button {
	position: absolute;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	width: var(--idg-control-size, 28px) !important;
	height: var(--idg-control-size, 28px) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: var(--idg-control-bg, #ef5b34) !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	text-decoration: none !important;
	appearance: none;
	-webkit-appearance: none;
}

.idg-lightbox__button--has-icon {
	background: var(--idg-control-bg, #ef5b34) !important;
	color: transparent !important;
}

.idg-lightbox__button--has-icon img {
	display: block;
	width: var(--idg-control-icon-size, 18px);
	height: var(--idg-control-icon-size, 18px);
	object-fit: contain;
	pointer-events: none;
}

.idg-lightbox__button:hover,
.idg-lightbox__button:focus-visible {
	background: var(--idg-control-bg, #ef5b34) !important;
}

.idg-lightbox__button--has-icon:hover,
.idg-lightbox__button--has-icon:focus,
.idg-lightbox__button--has-icon:focus-visible {
	border: 0 !important;
	background: var(--idg-control-bg, #ef5b34) !important;
	box-shadow: none !important;
	outline: none;
}

.idg-lightbox button.idg-lightbox__close {
	position: absolute !important;
	z-index: 2147483647 !important;
	top: var(--idg-close-top, 0) !important;
	right: var(--idg-close-right, 0) !important;
	display: inline-grid !important;
	visibility: visible !important;
	opacity: 1 !important;
	clip: auto !important;
	clip-path: none !important;
	transform: none !important;
	filter: none !important;
	animation: none !important;
}

.idg-lightbox button.idg-lightbox__close img {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}

.idg-lightbox__prev {
	left: var(--idg-prev-left, 0);
	bottom: var(--idg-prev-bottom, 48px);
}

.idg-lightbox__next {
	right: var(--idg-next-right, 26px);
	bottom: var(--idg-next-bottom, 48px);
}

.idg-lightbox__nav-line {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: var(--idg-prev-bottom, 48px);
	left: 0;
	height: 1px;
	background: var(--idg-nav-line-color, #111111);
	pointer-events: none;
}

.idg-lightbox__nav-line[hidden] {
	display: none;
}

.idg-lightbox__button[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.idg-gallery {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.idg-gallery__stage {
		margin-left: var(--idg-images-start);
	}

	.idg-gallery__heading {
		max-width: none;
	}

	.idg-gallery__grid {
		grid-template-columns: 1fr;
	}

	.idg-gallery.idg-gallery--slider button.idg-gallery__item {
		flex-basis: 82%;
	}

	.idg-lightbox {
		padding: 0;
	}

	.idg-lightbox__dialog {
		width: 100vw;
		height: 100vh;
		max-height: none;
		padding: var(--idg-lightbox-padding, 24px);
		padding-bottom: 12px;
	}

	.idg-lightbox__image-wrap {
		height: 100%;
		max-height: calc(100vh - 92px);
	}

	.idg-lightbox__footer {
		left: var(--idg-footer-left, 16px);
		bottom: var(--idg-footer-bottom, 8px);
	}

	.idg-lightbox__next {
		right: var(--idg-next-right, 0);
	}
}
