/**
 * EuroLeague partner banners — the three promo tiles above the footer.
 *
 * Sizing rationale (measured on this site, not guessed):
 *   The footer content row is 1344px at >=1440 viewport, 1000 at 1024, 744 at 768,
 *   406 at 430. The row below caps at 1224px so three tiles land at 380px each with a
 *   32px gap, comfortably inside 1344 and never touching the footer's own gutters.
 *
 *   Tiles hold a 6:5 box (the IAB medium-rectangle ratio EuroLeague already ships —
 *   their Anadolu Efes assets are 300x250 JPEG). The ratio is reserved with a
 *   padding-top box rather than aspect-ratio so there is no layout shift on load and
 *   no dependency on newer CSS in Avada's stack.
 *
 *   The Anadolu Efes build letterboxes the artwork into a square on phones
 *   (300x250 art shown in a 160x160 box with object-fit:contain). We do not copy that:
 *   the tile keeps its 6:5 box at every width, so the artwork is never pillarboxed.
 */

.dba-pb {
    background-color: #f2f3f5;          /* the light strip Efes uses, matched to this site's grey */
    padding: 48px 20px 52px;
}

.dba-pb__inner {
    max-width: 1224px;
    margin: 0 auto;
}

.dba-pb__heading {
    margin: 0 0 26px;
    text-align: center;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}

.dba-pb__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

/* a partial set should not stretch to fill the row */
.dba-pb--count-1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.dba-pb--count-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }

.dba-pb__tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;               /* shows while the image decodes */
    box-shadow: 0 1px 3px rgba(16, 24, 32, .10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dba-pb__tile:hover,
.dba-pb__tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 24, 32, .18);
}

.dba-pb__tile:focus-visible {
    outline: 3px solid #a0733c;
    outline-offset: 3px;
}

/* 6:5 box, reserved before the image loads */
.dba-pb__frame {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
}

.dba-pb__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;                 /* artwork is authored at 6:5, so cover == exact fit */
    display: block;
}

@media (max-width: 1024px) {
    .dba-pb { padding: 40px 18px 44px; }
    .dba-pb__grid { gap: 22px; }
}

/* Below 768 Avada is already stacking the footer columns; stack the tiles too rather
   than shrinking three 6:5 boxes into unreadable thumbnails. */
@media (max-width: 767px) {
    .dba-pb { padding: 32px 16px 36px; }
    .dba-pb__grid,
    .dba-pb--count-1,
    .dba-pb--count-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        justify-content: stretch;
    }
    .dba-pb__inner { max-width: 420px; }   /* keeps a single tile from becoming a billboard */
    .dba-pb__heading { font-size: 13px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .dba-pb__tile { transition: none; }
    .dba-pb__tile:hover, .dba-pb__tile:focus-visible { transform: none; }
}
