/* SVUNG Annoncer – forside */
.svung-ad[hidden], .sva-rail[hidden], .sva-sticky[hidden] { display: none !important; }
.sva { display: flex; justify-content: center; width: 100%; }
.sva template { display: none; }
.sva__link { display: block; line-height: 0; max-width: 100%; }
.sva__link:hover { opacity: 1; }
.sva img { max-width: 100%; height: auto; display: block; }
.sva-label { display: block; font-size: 11px; letter-spacing: .5px; color: #9a9a9a; text-align: center; margin-bottom: 4px; }

/* Sidebannere: i den sorte flade ved siden af spalten (720 px) */
.sva-rail { display: none; }
@media (min-width: 1100px) {
	.sva-rail { display: block; position: fixed; top: 110px; z-index: 40; width: 160px; }
	.admin-bar .sva-rail { top: 142px; }
	.sva-rail--left { right: calc(50% + 380px); }
	.sva-rail--right { left: calc(50% + 380px); }
	/* Bredde og højde følger billedets format; scriptet sætter max-height ud fra skærmens højde. */
	.sva-rail img { width: auto; height: auto; max-width: 160px; max-height: calc(100vh - 160px); margin: 0 auto; }
	.sva-rail--short { display: none !important; }
}

/* Mobilbanner: fast i bunden */
.sva-sticky { display: none; }
@media (max-width: 767px) {
	.sva-sticky.is-on { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid #ddd; padding: 2px 40px 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
	.sva-sticky .sva-label { margin-bottom: 2px; }
	.sva-sticky img { width: 320px; }
	.sva-sticky__close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: #000; cursor: pointer; }
	body.sva-has-sticky { padding-bottom: 130px; }
}
@media print { .sva-rail, .sva-sticky { display: none !important; } }

/* Rektangel (300×250) vises større på computer. Billedet er uploadet i 600×500, så det forbliver skarpt. */
.sva--svung-ad-front-1 .sva__link, .sva--svung-ad-front-2 .sva__link, .sva--svung-ad-article .sva__link { width: min(100%, 360px); }
.sva--svung-ad-front-1 img, .sva--svung-ad-front-2 img, .sva--svung-ad-article img { width: 100%; }
@media (min-width: 640px) {
	.sva--svung-ad-front-1 .sva__link, .sva--svung-ad-front-2 .sva__link, .sva--svung-ad-article .sva__link { width: min(100%, 480px); }
}

/* Usynlige markører til optælling af pladsvisninger */
.sva-pos { display: block; height: 1px; margin-top: -1px; pointer-events: none; }
.sva-pos--side-left, .sva-pos--side-right, .sva-pos--mobile-sticky { display: none; position: fixed; width: 1px; height: 1px; margin: 0; }
@media (min-width: 1100px) {
	.sva-pos--side-left, .sva-pos--side-right { display: block; top: 120px; }
	.sva-pos--side-left { right: calc(50% + 380px); }
	.sva-pos--side-right { left: calc(50% + 380px); }
}
@media (max-width: 767px) {
	.sva-pos--mobile-sticky { display: block; bottom: 0; left: 0; }
}
