#ieced-blackfriday-modal {
	--banner-margin: clamp(16px, 4vw, 48px);
	position: fixed;
	inset: 0;
	margin: auto;
	box-sizing: border-box;
	width: fit-content;
	height: fit-content;
	max-width: calc(100% - 2 * var(--banner-margin));
	max-height: calc(100% - 2 * var(--banner-margin));
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
}

#ieced-blackfriday-modal::backdrop {
	background: rgb(0 0 0 / 70%);
}

#ieced-blackfriday-modal > a,
#ieced-blackfriday-modal img {
	display: block;
}

#ieced-blackfriday-modal img {
	width: auto;
	height: auto;
	max-width: min(1080px, calc(100vw - 2 * var(--banner-margin)));
	max-height: calc(100vh - 2 * var(--banner-margin));
	max-height: calc(100dvh - 2 * var(--banner-margin));
}

#ieced-blackfriday-modal > button {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid white;
	border-radius: 50%;
	background: #151515;
	color: white;
	font: 28px/1 sans-serif;
	cursor: pointer;
}

#ieced-blackfriday-modal > button:focus-visible,
#ieced-blackfriday-modal > a:focus-visible {
	outline: 2px solid white;
	outline-offset: -4px;
}
