.ads-content-wrapper {
    max-width: 1335px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 20px 16px;
}

.ads-content-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.ads-content-inner img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ad-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 576px) {

    .ads-content-wrapper img {
        max-width: 576px;
        /* ukuran iklan standar */
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    .ads-content-wrapper .ads-content-inner {
        max-width: 576px;
    }
}

.ads-content-panel {
    display: grid;
    gap: 16px;
    max-width: 100%;
}

.ads-content-panel.gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(336px, 1fr));
}

/* JIKA HANYA 1 ITEM → CENTER */
.ads-content-panel.gallery:has(.ads-content-item:only-child) {
    justify-content: center;
}

/* force max 3 kolom */
@media (min-width: 1100px) {
    .ads-content-panel.gallery {
        grid-template-columns: repeat(3, 336px);
    }
}

.ads-content-panel img {
    width: 336px;
    height: 280px;
    display: block;
}

.ads-content-panel img {
    width: 336px;
    height: 280px;
    display: block;
}

/* safety: jangan tampil di mobile kecil */
@media (max-width: 375px) {
    .ads-content-gallery {
        grid-template-columns: 1fr;
    }
}

.ads-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1125px;
    height: 125px;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .15);
}

.ads-footer-fixed img {
    width: 100%;
    height: 100%;
    object-fit: initial;
}

/* close button */
.ads-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* mobile */
@media (max-width: 767px) {
    .ads-footer-fixed {
        width: 320px;
        height: 100px;
    }
}

.layout-with-side-ads {
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1335px) auto;
    justify-content: center;
    align-items: stretch;
}

.side-ad {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-ad img {
    width: 208px;
    height: 860px;
    object-fit: inherit;
}

.main-content {
    width: 100%;
}

@media (max-width: 1200px) {
    .layout-with-side-ads {
        grid-template-columns: 1fr;
    }

    .side-ad {
        display: none;
    }
}