.editor-styles-wrapper [class^="bug-block-"] img {
	display: block;
	max-width: 100%;
	height: auto;
}

.editor-styles-wrapper [class^="bug-block-related_"] .box__image:not(.thumbnail__date) {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	padding: 0;
	overflow: hidden;
	background: #f2f1f5;
}

.editor-styles-wrapper [class^="bug-block-related_"] .box__image:not(.thumbnail__date) > img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.editor-styles-wrapper .bug-block-related_event .event-box {
	display: grid;
	grid-template-columns: minmax(0, 28.6%) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.editor-styles-wrapper .bug-block-related_event .event-box__left,
.editor-styles-wrapper .bug-block-related_event .event-box__right {
	width: auto;
	min-width: 0;
	padding-left: 0;
}

.editor-styles-wrapper .bug-block-gallery .gallery__works {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.editor-styles-wrapper .bug-block-gallery .works {
	min-width: 0;
	margin: 0;
}

.editor-styles-wrapper .bug-block-gallery a.overlay-images-link {
	pointer-events: none;
}

.editor-styles-wrapper .bug-block-gallery .works__image {
	padding: 20px;
	background: #fff;
}

.editor-styles-wrapper .bug-block-gallery .works__image .image {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f2f1f5;
}

.editor-styles-wrapper .bug-block-gallery .works__image .image > img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.editor-styles-wrapper .bug-block-profile .profile__block {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.editor-styles-wrapper .bug-block-profile .profile__image {
	flex: 0 0 28.6%;
	min-width: 0;
}

.editor-styles-wrapper .bug-block-profile .profile__image .image {
	padding: 20px;
	background: #fff;
}

.editor-styles-wrapper .bug-block-profile .profile__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.editor-styles-wrapper .bug-block-profile .profile__info {
	flex: 1;
	min-width: 0;
}

@media (max-width: 782px) {
	.editor-styles-wrapper .bug-block-related_event .event-box {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.editor-styles-wrapper .bug-block-related_event .event-box__left {
		width: 75%;
		max-width: 320px;
		margin: 0 auto;
	}

	.editor-styles-wrapper .bug-block-gallery .gallery__works {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.editor-styles-wrapper .bug-block-gallery .works__image {
		padding: 10px;
	}

	.editor-styles-wrapper .bug-block-profile .profile__block {
		display: block;
	}

	.editor-styles-wrapper .bug-block-profile .profile__image {
		width: 75%;
		margin: 0 auto;
	}

	.editor-styles-wrapper .bug-block-profile .profile__image .image {
		padding: 10px;
	}

	.editor-styles-wrapper .bug-block-profile .profile__info {
		margin-top: 18px;
	}
}

