/**
 * JCH Optimize - Performs several front-end optimizations for fast downloads
 *
 * @package   jchoptimize/clsadslot
 * @author    Samuel Marshall <samuel@jch-optimize.net>
 * @copyright Copyright (c) 2026 Samuel Marshall / JCH Optimize
 * @license   GNU/GPLv3, or later. See LICENSE file
 *
 * If LICENSE file missing, see <http://www.gnu.org/licenses/>.
 */

.jch-adslot--inline-block {
    display: inline-block;;
}

.jch-adslot {
    width: 100%;
    text-align: center;
}

.jch-adslot--fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cls-ad-fallback-wrapper {
    text-align: center;
    width: 100%;
}

.jch-adslot--hidden {
    transition: min-height 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
}

@media (min-width: 992px) {
    .jch-adslot {
        min-height: 280px;
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .jch-adslot {
        min-height: 250px;
    }
}

@media (max-width: 575px) {
    .jch-adslot {
        min-height: 250px;
    }
}

.ad-fallback {
    height: 100%;
    display: flex;
    align-items: center;
}