.sticky-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.sticky-wrapper-mobile {
    display: none;
    width: 100%;
    background-color: white;
    position: sticky;
    bottom: 0px;
    padding: 20px 0px;
    align-items: center;
    box-sizing: border-box;
}

.sticky-wrapper-mobile .ads-list__item {
    width: 360px;
    height: 171px;
    min-width: 360px !important;
    max-width: 360px !important;
    min-height: 171px !important;
    max-height: 171px !important;
    border: 2px solid black; /* Visualize ad container */
}

.sticky-wrapper-desktop {
    display: none;
    width: 333px;
    position: sticky;
    top: 20px;
}

.sticky-wrapper-desktop .ads-list__item {
    width: 313px;
    height: 385px;
    min-width: 313px !important;
    max-width: 313px !important;
    min-height: 385px !important;
    max-height: 385px !important;
    border: 2px solid black; /* Visualize ad container */
}

.ads-list__item > :not(script) {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 360px !important; /* Match ads-list__item (mobile) */
    min-height: 171px !important; /* Match ads-list__item (mobile) */
    box-sizing: border-box;
    display: block !important;
}

.sticky-wrapper-desktop .ads-list__item > :not(script) {
    min-width: 313px !important; /* Match ads-list__item (desktop) */
    min-height: 385px !important; /* Match ads-list__item (desktop) */
}

.ads-list__item > :not(script) > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box;
}

.ads-list__item img {
    object-fit: contain;
}

@media (max-width: 767px) {
    .sticky-wrapper-mobile {
        display: flex;
    }

    .sticky-wrapper-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .sticky-wrapper-desktop {
        display: flex;
    }

    .sticky-wrapper-mobile {
        display: none !important;
    }
}
