.srads-carousel [hidden] { display: none !important; }
.srads-carousel { width: 100%; margin-inline: auto; }
.srads-vertical-carousel { max-width: 300px; }
.srads-carousel .srads-creative,
.srads-carousel .srads-creative img { display: block; width: 100%; }
.srads-carousel .srads-creative img { height: auto; object-fit: contain; }
.srads-banner-carousel .srads-slides { display: grid; align-items: center; aspect-ratio: 1350 / 500; }
.srads-banner-carousel .srads-creative img { aspect-ratio: 1350 / 500; }
.srads-vertical-carousel .srads-creative img { aspect-ratio: 1 / 2; }
.srads-popup-carousel .srads-creative img { aspect-ratio: 1; }
.srads-carousel .srads-responsive .srads-mobile { display: none; }
.srads-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding-block: 6px; }
.srads-carousel .srads-controls button,
.srads-popup button { min-width: 32px; min-height: 32px; padding: 3px 8px; border: 1px solid #ccc; border-radius: 4px; font: inherit; background: #fff; color: #222; cursor: pointer; }
.srads-popup { width: min(90vw, 520px, 78vh); max-height: 95vh; margin: auto; padding: 10px; border: 0; border-radius: 8px; background: #fff; color: #222; }
.srads-popup::backdrop { background: rgb(0 0 0 / 68%); }
.srads-popup form { display: flex; justify-content: end; margin: 0 0 6px; }

@media (max-width: 640px) {
	.srads-carousel .srads-responsive .srads-desktop { display: none; }
	.srads-carousel .srads-responsive .srads-mobile { display: block; }
	.srads-banner-carousel .srads-slides,
	.srads-banner-carousel .srads-creative img { aspect-ratio: 1; }
}
.srads-discrete { position: relative; }
.srads-discrete .srads-controls { position: absolute; z-index: 1; inset: auto 6px 6px auto; padding: 0; }
.srads-discrete .srads-controls button { color: #fff; background: rgb(0 0 0 / 70%); border-color: transparent; }
.srads-discrete .srads-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
	.srads-discrete:not(:hover):not(:focus-within) .srads-controls { opacity: 0; }
}

.srads-video :is(video, iframe) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #111; }
.srads-video video { object-fit: contain; }
.srads-video .srads-video-link { display: block; padding: 8px 10px; background: #171717; color: #fff; text-align: center; font-weight: 700; }
.srads-video .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
