

/* ── Grid container ────────────────────────────────────────── */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    max-width: 1200px;
    gap: 10px;
}

/* ── Individual cell ───────────────────────────────────────── */
.logo-cell {
    border-radius: 10px !important;
    border: 1px solid #e0e0e0;
    height: 125px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* ── Two layers per cell ───────────────────────────────────── */
.logo-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.45s ease;
}

.logo-layer img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ── Slide state classes (toggled by JS) ───────────────────── */
.logo-layer.show             { transform: translateX(0);     opacity: 1; }
.logo-layer.hide             { transform: translateX(110%);  opacity: 0; pointer-events: none; }
.logo-layer.slide-out-left   { transform: translateX(-110%); opacity: 0; }
.logo-layer.slide-from-right { transform: translateX(110%);  opacity: 0; transition: none; }
.logo-layer.slide-in         { transform: translateX(0);     opacity: 1; }

/* ── Fallback text when image fails to load ────────────────── */
.logo-fallback {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    text-align: center;
}

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

@media (max-width: 700px) {
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-cell  { height: 110px; }

    .logo-layer img {
    max-width: 100%;
    max-height: 95px !important;
    width: auto;
    height: auto;
    object-fit: contain;
}
}

@media (max-width: 450px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-cell  { height: 110px; }
    .logo-layer img {
    max-width: 100%;
    max-height: 95px !important;
    width: auto;
    height: auto;
    object-fit: contain;
}
}