/* ============================================================
   ThemeTailor Logo Slider — Frontend Styles
   ============================================================ */

/* ---- Outer wrapper ---- */
.tt-logo-slider {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 44px;
    margin: 0 auto;
}

.tt-logo-slider:not(:has(.tt-nav)) {
    padding: 0;
}

/* ---- Track wrapper clips overflow during slide transitions ---- */
.tt-logo-slider .tt-slider-track-wrap {
    overflow: hidden;
    width: 100%;
}

/* ---- Track ---- */
.tt-logo-slider .tt-slider-track {
    display: flex;
    will-change: transform;
    transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
}

/* ---- Slide ---- */
.tt-logo-slider .tt-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    height: var(--tt-slide-height, 79px) !important;
    max-height: var(--tt-slide-height, 79px) !important;
    overflow: hidden !important;
}

/* ---- Logo cell ---- */
.tt-logo-slider .tt-logo-cell {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    box-sizing: border-box !important;
    height: 100% !important;
    max-height: var(--tt-slide-height, 79px) !important;
    overflow: hidden !important;
}

.tt-logo-slider .tt-logo-cell + .tt-logo-cell {
    border-left: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   LOGO IMAGE — natural proportions, constrained by max-height.
   width: auto overrides the theme's img { width: 100% }.
   height: auto lets the image scale proportionally.
   max-height is the hard cap that keeps all logos uniform.
   overflow: hidden on the parent catches anything that slips through.
   ============================================================ */

.tt-logo-slider .tt-logo-cell img,
.tt-logo-slider .tt-logo-cell a img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: var(--tt-img-max-height, 55px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: unset !important;
    object-fit: unset !important;
    object-position: unset !important;
    flex-shrink: 1 !important;
    margin: auto !important;
    transition: opacity .25s ease, transform .25s ease;
}

/* Hover only when logo has a link */
.tt-logo-slider .tt-logo-cell a:hover img,
.tt-logo-slider .tt-logo-cell a:focus img {
    opacity: .7;
    transform: scale(1.04);
}

/* Link wrapper fills the full cell */
.tt-logo-slider .tt-logo-cell a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    outline-offset: 3px;
    opacity: 1 !important;
    transform: none !important;
}

/* ---- Nav arrows ---- */
.tt-logo-slider .tt-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.25);
    background: rgba(46,46,46,.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.tt-logo-slider .tt-nav:hover,
.tt-logo-slider .tt-nav:focus-visible {
    background: var(--secondary, #edb735);
    color: var(--grey, #2e2e2e);
    border-color: var(--secondary, #edb735);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    opacity: 1 !important;
    outline: none;
}

.tt-logo-slider .tt-nav svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

.tt-logo-slider .tt-prev { left: 2px; }
.tt-logo-slider .tt-next { right: 2px; }

.tt-logo-slider .tt-nav[hidden],
.tt-logo-slider .tt-nav:disabled {
    opacity: .35;
    pointer-events: none;
}

/* ---- Dot indicators ---- */
.tt-logo-slider .tt-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding: 0;
    list-style: none !important;
    margin-left: 0 !important;
}

.tt-logo-slider .tt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.3);
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0 !important;
    transition: background .2s, border-color .2s, transform .2s;
}

.tt-logo-slider .tt-dot.tt-active,
.tt-logo-slider .tt-dot:hover {
    background: var(--secondary, #edb735);
    border-color: var(--secondary, #edb735);
    transform: scale(1.2);
}

.tt-logo-slider .tt-dot:focus-visible {
    outline: 2px solid var(--secondary, #edb735);
    outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mobile Portrait ≤ 480px */
@media only screen and (max-width: 480px) {
    .tt-logo-slider { padding: 0 38px; }

    .tt-logo-slider .tt-logo-cell {
        padding: 10px 12px !important;
    }

    .tt-logo-slider .tt-logo-cell img,
    .tt-logo-slider .tt-logo-cell a img {
        max-height: var(--tt-img-max-height, 56px) !important;
        aspect-ratio: unset !important;
        object-fit: unset !important;
        object-position: unset !important;
        width: auto !important;
        height: auto !important;
    }

    .tt-logo-slider .tt-logo-cell + .tt-logo-cell { border-left: none; }
    .tt-logo-slider .tt-nav { width: 30px; height: 30px; }
    .tt-logo-slider .tt-nav svg { width: 13px; height: 13px; }
    .tt-logo-slider .tt-prev { left: 0; }
    .tt-logo-slider .tt-next { right: 0; }
}

/* Mobile Landscape 481px–780px */
@media only screen and (min-width: 481px) and (max-width: 780px) {
    .tt-logo-slider .tt-logo-cell {
        padding: 12px 16px !important;
    }

    .tt-logo-slider .tt-logo-cell img,
    .tt-logo-slider .tt-logo-cell a img {
        max-height: var(--tt-img-max-height, 76px) !important;
        aspect-ratio: unset !important;
        object-fit: unset !important;
        object-position: unset !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Tablet Portrait 768px–1030px */
@media only screen and (min-width: 768px) and (max-width: 1030px) {
    .tt-logo-slider .tt-logo-cell img,
    .tt-logo-slider .tt-logo-cell a img {
        max-height: var(--tt-img-max-height, 55px) !important;
        aspect-ratio: unset !important;
        object-fit: unset !important;
        object-position: unset !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Tablet Landscape 1031px–1280px */
@media only screen and (min-width: 1031px) and (max-width: 1280px) {
    .tt-logo-slider .tt-logo-cell img,
    .tt-logo-slider .tt-logo-cell a img {
        max-height: var(--tt-img-max-height, 55px) !important;
        aspect-ratio: unset !important;
        object-fit: unset !important;
        object-position: unset !important;
        width: auto !important;
        height: auto !important;
    }
}

/* 1025px–1279px WingsForum overlap block */
@media only screen and (min-width: 1025px) and (max-width: 1279px) {
    .tt-logo-slider .tt-logo-cell img,
    .tt-logo-slider .tt-logo-cell a img {
        max-height: var(--tt-img-max-height, 55px) !important;
        aspect-ratio: unset !important;
        object-fit: unset !important;
        object-position: unset !important;
        width: auto !important;
        height: auto !important;
    }
}