/**
 * Atlas ADV System - Frontend Styles
 * CLS-friendly wrappers with block-level ad slots for GAM, Prebid, Teads and outstream creatives.
 */

.atlas-adv-wrapper,
.atlas-adv-wrapper *,
.atlas-adv-wrapper *::before,
.atlas-adv-wrapper *::after {
    box-sizing: border-box;
}

.atlas-adv-wrapper {
    width: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.atlas-adv-wrapper--article {
    margin: 2rem 0;
    padding: 15px 0;
    background: var(--cs-layout-background, #f6f6f6);
}

.atlas-adv-wrapper--hp {
    margin: 1rem auto;
    padding: 15px 0;
    background: var(--cs-layout-background, #f6f6f6);
}

.atlas-adv-wrapper--sidebar {
    max-width: 300px;
    margin: 10px auto;
    padding: 0;
}

.atlas-adv-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 970px;
    min-height: 250px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    overflow: visible;
    text-align: center;
    background: transparent !important;
    background-image: none !important;
}

.atlas-adv-wrapper--sidebar .atlas-adv-slot {
    max-width: 300px;
}

.atlas-adv-label {
    width: 100%;
    display: block;
    margin-top: 6px;
    color: var(--cs-color-secondary, #585858);
    font-size: var(--cs-font-category-size, 0.66rem);
    line-height: var(--cs-font-category-line-height, 1.2);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: var(--cs-font-category-text-transform, uppercase);
}

.atlas-adv-wrapper iframe,
.atlas-adv-wrapper video,
.atlas-adv-wrapper img {
    max-width: 100% !important;
    border: 0 !important;
}

@media (min-width: 992px) {
    .atlas-adv-wrapper--hp {
        max-width: 980px;
        margin-top: 1.1rem;
        margin-bottom: 1.1rem;
    }
}

@media (min-width: 1200px) {
    .atlas-adv-wrapper--article {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
}

@media (max-width: 575px) {
    .atlas-adv-wrapper--article,
    .atlas-adv-wrapper--hp {
        padding-left: 0;
        padding-right: 0;
    }

    .atlas-adv-label {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
