.egdr-sw-case-study-problem-gallery {
	--egdr-problem-gallery-control: rgba(0, 0, 0, 0.28);
	--egdr-problem-gallery-overlay: rgba(0, 0, 0, 0.9);

	width: 100%;
	max-width: 100%;
}

.egdr-sw-case-study-problem-gallery *,
.egdr-sw-case-study-problem-gallery *::before,
.egdr-sw-case-study-problem-gallery *::after {
	box-sizing: border-box;
}

.egdr-sw-case-study-problem-gallery [hidden] {
	display: none !important;
}

.egdr-sw-case-study-problem-gallery__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e5e7eb;
}

.egdr-sw-case-study-problem-gallery__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.35s ease;
	will-change: transform;
}

.egdr-sw-case-study-problem-gallery__slide {
	width: 100%;
	min-width: 100%;
	height: 100%;
	margin: 0;
}

button.egdr-sw-case-study-problem-gallery__image-button {
	display: block;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	cursor: zoom-in;
}

.egdr-sw-case-study-problem-gallery__image-button:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -4px;
}

.egdr-sw-case-study-problem-gallery__image-button:hover,
.egdr-sw-case-study-problem-gallery__image-button:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

.egdr-sw-case-study-problem-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

button.egdr-sw-case-study-problem-gallery__arrow,
button.egdr-sw-case-study-problem-gallery__expand,
button.egdr-sw-case-study-problem-gallery__dot,
button.egdr-sw-case-study-problem-gallery__lightbox-close,
button.egdr-sw-case-study-problem-gallery__lightbox-arrow,
button.egdr-sw-case-study-problem-gallery__lightbox-backdrop {
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

button.egdr-sw-case-study-problem-gallery__arrow {
	position: absolute;
	top: 50%;
	display: inline-flex;
	width: 48px;
	min-width: 48px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	background: transparent;
	color: #ffffff;
	font-size: 16px;
	transform: translateY(-50%);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
	transition: background-color 0.2s ease, color 0.2s ease;
}

button.egdr-sw-case-study-problem-gallery__arrow:hover,
button.egdr-sw-case-study-problem-gallery__arrow:active {
	background: var(--egdr-problem-gallery-control);
	color: #ffffff;
}

button.egdr-sw-case-study-problem-gallery__arrow:focus-visible,
button.egdr-sw-case-study-problem-gallery__expand:focus-visible,
button.egdr-sw-case-study-problem-gallery__dot:focus-visible,
button.egdr-sw-case-study-problem-gallery__lightbox-close:focus-visible,
button.egdr-sw-case-study-problem-gallery__lightbox-arrow:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.egdr-sw-case-study-problem-gallery__arrow--prev {
	left: 8px;
}

.egdr-sw-case-study-problem-gallery__arrow--next {
	right: 8px;
}

.egdr-sw-case-study-problem-gallery__arrow svg {
	width: 38px;
	height: 38px;
}

.egdr-sw-case-study-problem-gallery__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 9px;
	transform: translateX(-50%);
}

button.egdr-sw-case-study-problem-gallery__dot {
	width: 11px;
	min-width: 11px;
	height: 11px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	color: transparent;
	font-size: 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

button.egdr-sw-case-study-problem-gallery__dot:hover,
button.egdr-sw-case-study-problem-gallery__dot:active,
button.egdr-sw-case-study-problem-gallery__dot.is-active {
	background: #ffffff;
	transform: scale(1.05);
}

button.egdr-sw-case-study-problem-gallery__expand {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	width: 46px;
	min-width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: var(--egdr-problem-gallery-control);
	color: #ffffff;
	font-size: 16px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

button.egdr-sw-case-study-problem-gallery__expand:hover,
button.egdr-sw-case-study-problem-gallery__expand:active {
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
}

.egdr-sw-case-study-problem-gallery__expand svg {
	width: 27px;
	height: 27px;
}

.egdr-sw-case-study-problem-gallery__lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}

button.egdr-sw-case-study-problem-gallery__lightbox-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	min-width: 0;
	height: 100%;
	border-radius: 0;
	background: var(--egdr-problem-gallery-overlay);
	color: transparent;
}

button.egdr-sw-case-study-problem-gallery__lightbox-backdrop:hover,
button.egdr-sw-case-study-problem-gallery__lightbox-backdrop:active {
	border: 0;
	background: var(--egdr-problem-gallery-overlay);
	box-shadow: none;
	color: transparent;
}

.egdr-sw-case-study-problem-gallery__lightbox-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(100%, 1200px);
	height: min(100%, 820px);
	min-width: 0;
	align-items: center;
	justify-content: center;
	outline: 0;
}

.egdr-sw-case-study-problem-gallery__lightbox-media {
	display: flex;
	max-width: 100%;
	max-height: 100%;
	align-items: center;
	justify-content: center;
}

.egdr-sw-case-study-problem-gallery__lightbox-img {
	display: block;
	max-width: 100%;
	max-height: min(100%, 760px);
	width: auto;
	height: auto;
	object-fit: contain;
}

button.egdr-sw-case-study-problem-gallery__lightbox-close {
	position: absolute;
	top: -4px;
	right: -4px;
	z-index: 2;
	display: inline-flex;
	width: 42px;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.66);
	color: #ffffff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	transition: background-color 0.2s ease;
}

.egdr-sw-case-study-problem-gallery__lightbox-close svg {
	width: 25px;
	height: 25px;
}

button.egdr-sw-case-study-problem-gallery__lightbox-close:hover,
button.egdr-sw-case-study-problem-gallery__lightbox-close:active {
	background: rgba(0, 0, 0, 0.9);
	color: #ffffff;
}

button.egdr-sw-case-study-problem-gallery__lightbox-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	width: 48px;
	min-width: 48px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.42);
	color: #ffffff;
	font-size: 16px;
	transform: translateY(-50%);
	transition: background-color 0.2s ease;
}

button.egdr-sw-case-study-problem-gallery__lightbox-arrow:hover,
button.egdr-sw-case-study-problem-gallery__lightbox-arrow:active {
	background: rgba(0, 0, 0, 0.72);
	color: #ffffff;
}

.egdr-sw-case-study-problem-gallery__lightbox-arrow--prev {
	left: 8px;
}

.egdr-sw-case-study-problem-gallery__lightbox-arrow--next {
	right: 8px;
}

.egdr-sw-case-study-problem-gallery__lightbox-arrow svg {
	width: 32px;
	height: 32px;
}

/* Keep component controls independent from Elementor and theme button states. */
.egdr-sw-case-study-problem-gallery :is(
	button.egdr-sw-case-study-problem-gallery__image-button,
	button.egdr-sw-case-study-problem-gallery__arrow,
	button.egdr-sw-case-study-problem-gallery__dot,
	button.egdr-sw-case-study-problem-gallery__expand,
	button.egdr-sw-case-study-problem-gallery__lightbox-close,
	button.egdr-sw-case-study-problem-gallery__lightbox-arrow,
	button.egdr-sw-case-study-problem-gallery__lightbox-backdrop
) {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	background-image: none;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	opacity: 1;
}

.egdr-sw-case-study-problem-gallery :is(
	button.egdr-sw-case-study-problem-gallery__image-button,
	button.egdr-sw-case-study-problem-gallery__arrow,
	button.egdr-sw-case-study-problem-gallery__dot,
	button.egdr-sw-case-study-problem-gallery__expand,
	button.egdr-sw-case-study-problem-gallery__lightbox-close,
	button.egdr-sw-case-study-problem-gallery__lightbox-arrow,
	button.egdr-sw-case-study-problem-gallery__lightbox-backdrop
):is(:hover, :focus, :active) {
	border: 0;
	box-shadow: none;
	background-image: none;
	text-decoration: none;
	opacity: 1;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__image-button,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__image-button:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__image-button:focus,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__image-button:active {
	background-color: transparent;
	color: inherit;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__arrow,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__arrow:focus {
	background-color: transparent;
	color: #ffffff;
	transform: translateY(-50%);
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__arrow:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__arrow:active {
	background-color: var(--egdr-problem-gallery-control);
	color: #ffffff;
	transform: translateY(-50%);
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__dot,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__dot:focus {
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.2);
	color: transparent;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__dot:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__dot:active,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__dot.is-active {
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background-color: #ffffff;
	color: transparent;
	transform: scale(1.05);
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__expand,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__expand:focus {
	background-color: var(--egdr-problem-gallery-control);
	color: #ffffff;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__expand:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__expand:active {
	background-color: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-close,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-close:focus {
	background-color: rgba(0, 0, 0, 0.66);
	color: #ffffff;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-close:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-close:active {
	background-color: rgba(0, 0, 0, 0.9);
	color: #ffffff;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-arrow,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-arrow:focus {
	background-color: rgba(0, 0, 0, 0.42);
	color: #ffffff;
	transform: translateY(-50%);
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-arrow:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-arrow:active {
	background-color: rgba(0, 0, 0, 0.72);
	color: #ffffff;
	transform: translateY(-50%);
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-backdrop,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-backdrop:hover,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-backdrop:focus,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-backdrop:active {
	background-color: var(--egdr-problem-gallery-overlay);
	color: transparent;
	transform: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__image-button:focus-visible,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__arrow:focus-visible,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__expand:focus-visible,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__dot:focus-visible,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-close:focus-visible,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-arrow:focus-visible,
.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__lightbox-backdrop:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
	box-shadow: none;
}

.egdr-sw-case-study-problem-gallery button.egdr-sw-case-study-problem-gallery__image-button:focus-visible {
	outline-offset: -4px;
}

@media (max-width: 480px) {
	.egdr-sw-case-study-problem-gallery__arrow {
		width: 40px;
		min-width: 40px;
		height: 54px;
	}

	.egdr-sw-case-study-problem-gallery__arrow svg {
		width: 32px;
		height: 32px;
	}

	.egdr-sw-case-study-problem-gallery__dots {
		bottom: 11px;
		gap: 7px;
	}

	button.egdr-sw-case-study-problem-gallery__expand {
		right: 8px;
		bottom: 8px;
		width: 40px;
		min-width: 40px;
		height: 40px;
	}

	.egdr-sw-case-study-problem-gallery__lightbox {
		padding: 16px;
	}

	.egdr-sw-case-study-problem-gallery__lightbox-dialog {
		height: min(100%, 680px);
	}

	button.egdr-sw-case-study-problem-gallery__lightbox-close {
		top: 0;
		right: 0;
	}

	button.egdr-sw-case-study-problem-gallery__lightbox-arrow {
		width: 40px;
		min-width: 40px;
		height: 54px;
	}
}
