.sd-banner-place {
    clear: both;
    width: 100%;
    min-height: 0;
    text-align: center;
}

.sd-banner-place iframe {
    display: block;
    margin: 32px auto;
    overflow: hidden;
    border: 0;
}

.sd-banner-place--horizontal iframe {
    width: 600px !important;
    max-width: 100% !important;
    height: 200px !important;
    aspect-ratio: auto !important;
}

.sd-banner-place--vertical iframe {
    width: 240px !important;
    max-width: 300px;
    height: 400px !important;
    aspect-ratio: auto !important;
    margin: 20px auto;
}

.sd-banner-columns__side .sd-banner-place--vertical iframe {
    margin: 20px auto;
}

.sd-banner-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

@media (max-width: 1023px) {
    .sd-banner-place--horizontal iframe {
        width: 320px !important;
        height: 100px !important;
    }

    /* Вертикальная перелинковка — только десктопный формат. Скрываем всю
       Gutenberg-строку, чтобы после неё не оставалось пустого места. */
    .sd-banner-columns,
    .sd-banner-place--vertical {
        display: none !important;
    }
}
