.welg-placement {
	margin: 0.75em 0;
	font-size: 0.875em;
}

.welg-link {
	text-decoration: underline;
	cursor: pointer;
	text-underline-offset: 2px;
}

html.welg-dialog-open {
	overflow: hidden;
}

/* Dialóg pokrýva celú obrazovku — klik mimo oznámenia (na dialóg) ho zatvorí. */
.welg-dialog {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 72px 16px 16px;
	overflow: auto;
	border: 0;
	background: transparent;
	overscroll-behavior: contain;
}

.welg-dialog[open] {
	display: flex;
}

.welg-dialog::backdrop {
	background: rgba(0, 0, 0, 0.75);
}

.welg-dialog__content {
	width: min(100%, 820px);
	margin: auto;
	background: #fff;
}

.welg-dialog__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

/* Resety proti štýlom tlačidiel z témy (padding, min-height, tiene …). */
.welg-dialog__close {
	box-sizing: border-box;
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #000;
	box-shadow: none;
	color: #fff;
	line-height: 0;
	cursor: pointer;
	appearance: none;
}

.welg-dialog__close svg {
	display: block;
	flex: none;
}

.welg-dialog__close:hover,
.welg-dialog__close:focus-visible {
	background: #333;
	color: #fff;
}

.welg-dialog__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
