/**
 *  Screenshot block
 */
.bw-screenshot {
	margin-block: 20px;
	text-align: center;
}

.bw-screenshot__figure {
	max-width: 830px;
	margin: 0 auto;
}

.bw-screenshot .bw-screenshot__figure .bw-screenshot__trigger {
	position: relative;
	display: inline-block;
	width: 100%;
	aspect-ratio: 830 / 442;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	cursor: pointer;
	border-radius: 16px;
	overflow: hidden;
}

.bw-screenshot .bw-screenshot__figure .bw-screenshot__trigger[disabled] {
	cursor: default;
}

.bw-screenshot__picture {
	display: block;
	width: 100%;
	height: 100%;
}

.bw-screenshot__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

.bw-screenshot__expand {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	color: #fafafa;
	background: #262626;
	border-radius: 8px;
	pointer-events: none;
	transition: background 0.2s ease;
}

.bw-screenshot__trigger:hover .bw-screenshot__expand,
.bw-screenshot__trigger:focus-visible .bw-screenshot__expand {
	background: #404040;
}

.bw-screenshot__expand-icon {
	display: block;
	width: 32px;
	height: 32px;
}

.bw-screenshot__caption {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.5;
}

.bw-screenshot__caption-link {
	display: inline-flex;
	text-decoration: underline;
	color: inherit;
}

.bw-screenshot__modal {
	width: 100%;
}

.bw-screenshot__modal.mfp-hide {
	display: none;
}

.bw-screenshot__modal-inner {
	position: relative;
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
}

.bw-screenshot__modal-header {
	margin-bottom: 12px;
}

.bw-screenshot__modal-caption {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

.bw-screenshot__close {
	position: absolute;
	top: 0px;
	right: -68px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	padding: 0;
	color: #404040;
	background: #fafafa;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}

.bw-screenshot__close:hover,
.bw-screenshot__close:focus-visible {
	background: #e5e5e5;
}

.bw-screenshot__close-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.bw-screenshot__modal-picture {
	display: block;
	border: 1px solid #404040;
	border-radius: 16px;
	overflow: hidden;
	max-width: 1220px;
	margin: 0 auto;
}

.bw-screenshot__modal-image {
	display: block;
	width: 100%;
	aspect-ratio: 830 / 442;
	object-fit: cover;
}

.bw-screenshot__tilt {
	display: none;
	color: #9a9fac;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
}

.bw-screenshot__tilt-icon {
	display: block;
	flex-shrink: 0;
	width: 33px;
	height: 51px;
}

.bw-screenshot__tilt--has-mobile {
	display: none;
}

@media (max-width: 1023px) {
	.bw-screenshot__tilt {
		display: flex;
		gap: 12px;
		align-items: center;
		justify-content: center;
	}

	.bw-screenshot__tilt--has-mobile {
		display: none;
	}
}

@media screen and (min-width: 767px) and (max-width: 1023px) {
	.bw-screenshot__tilt {
		display: flex;
	}
	
	.bw-screenshot__tilt--has-mobile {
		display: flex;
	}
}

@media (orientation: landscape) {
	.bw-screenshot__tilt {
		display: none;
	}
}

.bw-screenshot-popup.mfp-bg {
	z-index: 10000;
	opacity: 0;
	background: #262626;
	transition: opacity 0.3s ease;
}

.bw-screenshot-popup.mfp-wrap {
	z-index: 10001;
}

.bw-screenshot-popup.mfp-bg.mfp-ready {
	opacity: 1;
}

.bw-screenshot-popup.mfp-bg.mfp-removing {
	opacity: 0;
}

.bw-screenshot-popup .mfp-container {
	padding: 40px 80px;
	overflow-y: auto;
}

body.admin-bar .bw-screenshot-popup .mfp-container {
	top: 32px;
	height: calc(100% - 32px);
}

.bw-screenshot-popup .mfp-content {
	width: 100%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bw-screenshot-popup.mfp-ready .mfp-content {
	opacity: 1;
}

.bw-screenshot-popup.mfp-removing .mfp-content {
	opacity: 0;
}

.bw-screenshot-modal-opened {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.bw-screenshot__close {
		position: sticky;
		margin-left: auto;
		margin-bottom: 32px;
	}

	.bw-screenshot-popup:where(:not(.bw-screenshot-popup--slider)) .mfp-container {
		display: flex;
		flex-direction: column;
		padding: 40px;
	}

	.bw-screenshot-popup:where(:not(.bw-screenshot-popup--slider)) .mfp-container:before {
		display: none;
	}

	.bw-screenshot__modal-caption {
		font-size: 16px;
	}

	.bw-screenshot-popup:where(:not(.bw-screenshot-popup--slider)) .mfp-content,
	.bw-screenshot__modal:where(:not(.bw-screenshot__modal--slider)),
	.bw-screenshot__modal:where(:not(.bw-screenshot__modal--slider)) .bw-screenshot__modal-inner {
		display: flex;
		flex-direction: column;
		flex: 1 0 auto;
	}

	.bw-screenshot__modal-header {
		max-width: 830px;
		margin-inline: auto;
	}

	.bw-screenshot__modal-picture {
		flex-shrink: 0;
		max-width: 830px;
	}

	.bw-screenshot__expand {
		padding: 4px;
	}

	.bw-screenshot__expand-icon {
		width: 26px;
		height: 26px;
	}

	.bw-screenshot__tilt {
		margin-top: auto;
		padding-top: 24px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .bw-screenshot-popup .mfp-container {
		top: 46px;
		height: calc(100% - 46px);
	}
}

@media (max-width: 767px) {
	.bw-screenshot__modal-header {
		padding-inline: initial;
	}

	.bw-screenshot .bw-screenshot__figure .bw-screenshot__trigger--has-mobile {
		width: 162px;
		margin-inline: auto;
		aspect-ratio: 162/350;
		border-radius: 4px;
	}

	.bw-screenshot .bw-screenshot__figure .bw-screenshot__trigger--has-mobile .bw-screenshot__image {
		border-radius: 4px;
	}

	.bw-screenshot__modal-image--has-mobile {
		width: 100%;
		max-width: 100%;
		aspect-ratio: auto;
	}

	.bw-screenshot-popup .mfp-container {
		padding: 20px;
	}
	
	.bw-screenshot-popup:where(:not(.bw-screenshot-popup--slider)) .mfp-container:has(.bw-screenshot__modal-image--has-mobile) .bw-screenshot__modal-picture {
		max-width: 352px;
		border-radius: 8px;
	}

	.bw-screenshot-popup:where(:not(.bw-screenshot-popup--slider)) .mfp-container:has(.bw-screenshot__modal-image--has-mobile) .bw-screenshot__close {
		margin-bottom: 37px;
	}
}
/**
 *  Screenshot block — slider (two or more screenshots)
 */
.bw-screenshot--slider {
	margin-block: 0;
}

.bw-screenshot--slider .bw-screenshot__slider {
	position: relative;
}

.bw-screenshot--slider .bw-screenshot__slides {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bw-screenshot--slider .bw-screenshot__slide {
	margin: 0;
	padding: 0;
}

.bw-screenshot--slider .bw-screenshot__figure {
	max-width: none;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.bw-screenshot--slider .bw-screenshot__figure .bw-screenshot__trigger {
	aspect-ratio: 500 / 264;
	border-radius: 16px;
}

.bw-screenshot--slider .bw-screenshot__image {
	border-radius: 16px;
}

.bw-screenshot--slider .bw-screenshot__expand {
	width: 36px;
	height: 36px;
	padding: 5px;
	background: rgba(15, 23, 42, 0.5);
	border-radius: 5px;
}

.bw-screenshot--slider .bw-screenshot__expand-icon {
	width: 26px;
	height: 26px;
}

.bw-screenshot__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 30px;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.bw-screenshot__controls[hidden] {
	display: none;
}

.bw-screenshot__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	padding: 0;
	color: #2021e3;
	background: #fff;
	border: 1px solid #2021e3;
	border-radius: 16px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.bw-screenshot__arrow[disabled] {
	color: #9a9fac;
	border-color: #dee7f3;
	opacity: 0.5;
	cursor: default;
}

.bw-screenshot__arrow-icon {
	display: block;
	width: 6px;
	height: 10px;
}

.bw-screenshot__dots {
	display: flex;
	gap: 10px;
	align-items: center;
}

.bw-screenshot__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: #dee7f3;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}

.bw-screenshot__dot.glide__bullet--active {
	background: #2021e3;
}

.bw-screenshot__dot[hidden] {
	display: none;
}

@media (max-width: 1023px) {
	.bw-screenshot--slider .bw-screenshot__figure .bw-screenshot__trigger {
		aspect-ratio: 270 / 142;
		border-radius: 10px;
	}

	.bw-screenshot--slider .bw-screenshot__image {
		border-radius: 10px;
	}
}

@media (max-width: 767px) {
	.bw-screenshot--slider .bw-screenshot__figure .bw-screenshot__trigger--has-mobile {
		width: 100%;
		margin-inline: 0;
		aspect-ratio: 270 / 142;
		border-radius: 10px;
	}

	.bw-screenshot--slider .bw-screenshot__figure .bw-screenshot__trigger--has-mobile .bw-screenshot__image {
		border-radius: 10px;
	}

	.bw-screenshot--slider.bw-screenshot--has-mobile .bw-screenshot__figure .bw-screenshot__trigger,
	.bw-screenshot--slider.bw-screenshot--has-mobile .bw-screenshot__figure .bw-screenshot__trigger--has-mobile {
		aspect-ratio: 162 / 350;
		border-radius: 10px;
	}

	.bw-screenshot--slider.bw-screenshot--has-mobile .bw-screenshot__figure .bw-screenshot__image {
		border-radius: 10px;
	}

	.bw-screenshot--slider.bw-screenshot--has-mobile .bw-screenshot__controls {
		margin-top: 16px;
	}
}

/**
 *  Screenshot block — carousel overlay
 */
.bw-screenshot-popup--slider.mfp-bg {
	background: #0f172a;
}

.bw-screenshot-popup--slider .mfp-container {
	padding: 60px 0;
}

.bw-screenshot__modal--slider {
	overflow: hidden;
}

.bw-screenshot__modal--slider .bw-screenshot__modal-inner {
	padding: 0 80px;
	max-width: 1380px;
}

.bw-screenshot__modal--slider .bw-screenshot__close {
	position: fixed;
	top: 15px;
	right: 15px;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin: 0;
	color: #fff;
	background: none;
	transition: opacity 0.2s ease;
}

.bw-screenshot__modal--slider .bw-screenshot__close:hover,
.bw-screenshot__modal--slider .bw-screenshot__close:focus-visible {
	background: none;
	opacity: 0.7;
}

.bw-screenshot__modal--slider .bw-screenshot__close-icon {
	width: 40px;
	height: 40px;
}

body.admin-bar .bw-screenshot__modal--slider .bw-screenshot__close {
	top: 47px;
}

@media (max-width: 782px) {
	body.admin-bar .bw-screenshot__modal--slider .bw-screenshot__close {
		top: 61px;
	}
}

.bw-screenshot__modal-slider {
	position: relative;
}

.bw-screenshot__modal-slider .glide__track,
.bw-screenshot__modal-slides {
	overflow: visible;
}

.bw-screenshot__modal--slider .bw-screenshot__modal-slides {
	margin: 0;	
	padding: 0;
	list-style: none;
}

.bw-screenshot__modal--slider .bw-screenshot__modal-slide {
	height: auto;
	padding: 0;
	margin: 0;
	transform-origin: right center;
}

.bw-screenshot__modal-slide:not(.is-current) {
	transform: scale(0.4508);
	/* Clicking a peeking neighbour walks to it; blocks.js handles the click. */
	cursor: pointer;
}


.bw-screenshot__modal-slide.is-current ~ .bw-screenshot__modal-slide {
	transform-origin: left center;
}

.bw-screenshot__modal--slider .bw-screenshot__modal-picture {
	max-width: none;
	margin: 0;
	border-color: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.bw-screenshot__modal-slider.is-animated .bw-screenshot__modal-slide {
	transition: transform 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bw-screenshot__modal-captions {
	display: grid;
	margin-top: 20px;
}

/* All captions share one grid cell and stay in layout while invisible, so the
   box always holds the tallest one's height and the image above never jumps
   between short and long captions. */
.bw-screenshot__modal--slider .bw-screenshot__modal-caption {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bw-screenshot__modal--slider .bw-screenshot__modal-caption.is-active {
	visibility: visible;
	opacity: 1;
}

/* The design puts 40px under the screenshot. With a caption there it takes that
   slot and the controls sit closer under it. */
.bw-screenshot__modal-captions + .bw-screenshot__modal-controls {
	margin-top: 20px;
}

.bw-screenshot__modal-controls {
	display: flex;
	gap: 30px;
	align-items: center;
	justify-content: center;
	margin-top: 40px;
}

.bw-screenshot__modal-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: -8px;
	padding: 8px;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.bw-screenshot__modal-arrow:hover:not([disabled]),
.bw-screenshot__modal-arrow:focus-visible:not([disabled]) {
	opacity: 0.7;
}

.bw-screenshot__modal-arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

.bw-screenshot__modal-arrow-icon {
	display: block;
	width: 20px;
	height: 32px;
}

.bw-screenshot__modal-dots {
	display: flex;
	gap: 6px;
	align-items: center;
}

.bw-screenshot__modal-dot {
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	padding: 0;
	background: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}

.bw-screenshot__modal-dot.is-active {
	background: #9999ff;
}

@media (max-width: 1023px) {
	.bw-screenshot__modal--slider .bw-screenshot__modal-inner {
		padding-inline: 60px;
	}

	.bw-screenshot__modal-slide:not(.is-current) {
		transform: scale(0.7846);
	}

	.bw-screenshot__modal--slider .bw-screenshot__modal-picture {
		border-radius: 10px;
		box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
	}

	/* Below desktop only the current screenshot carries a shadow. */
	.bw-screenshot__modal-slide:not(.is-current) .bw-screenshot__modal-picture {
		box-shadow: none;
	}

	.bw-screenshot__modal-controls {
		display: none;
	}
}

@media (max-width: 767px) {
	.bw-screenshot__modal--slider .bw-screenshot__modal-inner {
		padding-inline: 40px;
	}

	.bw-screenshot__modal-slide:not(.is-current) {
		transform: scale(0.8);
	}

	.bw-screenshot__modal--slider .bw-screenshot__modal-picture {
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
	}
	
	.bw-screenshot__modal--has-mobile .bw-screenshot__modal-inner {
		padding-inline: 15.2vw;
	}

	.bw-screenshot__modal--has-mobile .bw-screenshot__modal-image {
		aspect-ratio: 162 / 350;
	}

	.bw-screenshot__modal--has-mobile .bw-screenshot__modal-slide:not(.is-current) {
		transform: scale(0.7767);
	}

	.bw-screenshot__modal--slider .bw-screenshot__close-icon {
		width: 32px;
		height: 32px;
	}
}