/* ===========================================================
   Espressimo — About Logos V2 (grayscale brand-logo grid)
   =========================================================== */

.esp-av2-logos {
    font-family: 'Dialect PM', sans-serif;
    background: #fff9f2;
    border-bottom: 1px solid #e6dad4;
    padding: 64px 48px;
}

.esp-av2-logos__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.esp-av2-logos__title {
    color: #522c25;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
}
.esp-av2-logos__subtitle {
    color: #75605a;
    font-size: 20px;
    opacity: 1;
    margin: 8px 0 0;
}

/* Thin grid lines via 1px gap over a border-coloured background. */
.esp-av2-logos__grid {
    display: grid;
    grid-template-columns: repeat(var(--esp-av2-logo-cols, 5), 1fr);
    gap: 1px;
    background: #e6dad4;
    border: 1px solid #e6dad4;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.esp-av2-logos__cell {
    background: #fff9f2;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.2s ease;
}
.esp-av2-logos__cell:hover { background: #f6ede3; }

.esp-av2-logos__img {
    max-height: 64px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
/* Cropped logo box (see logo_bbox in the widget): the box has the logo's content ratio,
   the image is scaled/offset inside it so its empty margin falls outside the box. */
.esp-av2-logos__mark {
    position: relative;
    display: block;
    overflow: hidden;
    width: min(100%, var(--esp-logo-w, 120px));
    max-height: 70px;
}
.esp-av2-logos__mark .esp-av2-logos__img {
    position: absolute;
    height: auto;
    max-width: none;
    max-height: none;
}
.esp-av2-logos__cell:hover .esp-av2-logos__img {
    filter: grayscale(0);
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .esp-av2-logos { padding: 48px 24px; }
    .esp-av2-logos__title { font-size: 34px; }
    .esp-av2-logos__grid { grid-template-columns: repeat(3, 1fr); }
}
