.ut-advertisement-widget__media,
.ut-advertisement-widget__media a {
	display: block;
}

.ut-advertisement-widget__image {
	display: block;
	height: auto;
	margin: 0 auto;
}

.article-end-banner {
	margin-block: 24px;
}

.ut-banner-placement { box-sizing: border-box; }
.ut-banner-placement__items { display: grid; gap: 12px; }
.ut-banner-placement--sidebar { min-width: 0; margin-block-start: 24px; }
.ut-banner-placement--sidebar .ut-sidebar-banner__head { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; color: #9197a5; }
.ut-banner-placement--sidebar .ut-sidebar-banner__head::after { content: ''; flex: 1; height: 1px; background: #d5d7e2; }
.ut-banner-placement--sidebar .ut-sidebar-banner__title { font-size: 11px; font-weight: 400; line-height: 1.6; }
.ut-banner-placement--sidebar .ut-sidebar-banner__close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.ut-banner-placement--sidebar .ut-sidebar-banner__close:hover { color: #ef4354; }
.ut-banner-placement--sidebar .ut-sidebar-banner__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ut-banner-placement--above_header {/* padding-inline: 16px; */}
/* Overlay headers on About/Contact must follow the banner in normal flow. */
body:is(.page-template-about-page, .page-template-contact-page):has(> .ut-banner-placement--above_header) > :is(.main-header, .mobile-header) { position: relative; top: auto; }
body:is(.page-template-about-page, .page-template-contact-page):has(> .ut-banner-placement--above_header) > :is(.main-header--dark, .mobile-header--dark) { background: #000 !important; }
.ut-banner-placement--popup_bottom {padding: 22px 8px 8px;border: 0;border-radius: 12px;background: #f0f0fe;box-shadow: 0 8px 40px #0004;color: #333;}
.ut-banner-placement--popup_center {
	position: fixed;
	inset: 0;
	margin: auto;
	width: fit-content;
	height: fit-content;
	max-width: min(680px, calc(100% - 32px));
	max-height: 75dvh;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}
.ut-banner-placement--popup_center .ut-banner-placement__items { max-height: 75dvh; overflow: auto; border-radius: 10px; }
.ut-banner-placement--popup_center::backdrop { background: #0009; }
.ut-banner-placement--popup_bottom { position: fixed; z-index: 10000; bottom: 12px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); max-height: 35dvh; overflow: auto; }
.ut-banner-placement--popup_bottom[hidden] { display: none; }
.ut-banner-placement__close {position: absolute;top: -2px;right: 6px;width: 25px;height: 25px;padding: 0;border: 0;background: transparent;color: #818181;cursor: pointer;font-size: 20px;line-height: 30px;}
.ut-banner-placement__close:focus-visible { outline: 2px solid #333; outline-offset: 1px; }
.ut-banner-placement--popup_center .ut-banner-placement__close { top: -36px; right: auto; left: 0; color: #b7b7b7;     font-size: 40px;outline: none;border-radius: 100%; }
.ut-banner-placement--popup_center .ut-advertisement-widget__image { max-width: 100%; max-height: 75dvh; width: auto; border-radius: 10px; object-fit: contain; }
.ut-banner-placement--popup_bottom .ut-advertisement-widget__image {max-height: 25dvh;object-fit: contain;border-radius: 5px;}
