/* Desktop First Approach for Banner Grid */
.apb-banner-grid {
    display: grid;
    /* Divide into 3 equal columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}

.apb-banner-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.apb-banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.apb-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.apb-media {
    width: 100%;
    height: auto; /* Let the image natural proportions dictate height */
    display: block;
    border-radius: 12px;
}

.apb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background: #eaeaea;
    min-height: 200px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .apb-banner-grid {
        /* Switch to a flex column layout on mobile */
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }

    .apb-banner-item {
        width: 100%;
    }
}
