/* ── TBC Infobox Block — direct port from BSB bsb-infobox ── */
.tbc-infobox {
    position: relative;
    width: 100vw;
    background-color: var(--tbc-color-bg);
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.tbc-infobox-grid {
    display: grid;
    width: 100%;
    gap: 0;
}

.tbc-infobox-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tbc-infobox-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tbc-infobox-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tbc-infobox-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--tbc-color-bg);
    aspect-ratio: 1;
    text-decoration: none;
    display: block;
}

.tbc-infobox-bg {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    z-index: 1;
}

.tbc-infobox-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* .tbc-infobox-item:hover .tbc-infobox-bg img {
    transform: scale(1.06);
} */

.tbc-infobox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    transition: background 0.6s ease;
}

.tbc-infobox-item:hover .tbc-infobox-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.tbc-infobox-content {
    position: relative;
    z-index: 3;
    pointer-events: none;
    max-width: 260px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.tbc-infobox-title {
    font-family: var(--tbc-font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbc-infobox-item:hover .tbc-infobox-title {
    color: var(--tbc-pink);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tbc-infobox-grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tbc-infobox-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .tbc-infobox-item {
        aspect-ratio: 1 / 1;
    }

    .tbc-infobox-overlay {
        padding: 1.5rem;
    }
    .tbc-infobox-grid {
        grid-template-columns: 1fr;
    }
    .tbc-infobox-content {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}
