/* ==========================================================================
   TVG Logo Bar Widget
   ========================================================================== */

.tvg-lb-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.tvg-lb-item {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-style: solid;
    border-top: none;
    border-bottom: none;
    cursor: default;
    transition: 0.3s ease background;
}

/* Collapse double borders between adjacent items */
.tvg-lb-item + .tvg-lb-item {
    margin-left: -1px;
}

/* Remove outer borders on first/last items */
.tvg-lb-item:first-child {
    border-left: none;
}
.tvg-lb-item:last-child {
    border-right: none;
}

.tvg-lb-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* height set via Elementor control */
}

/* Base image styles — high specificity to override Elementor resets */
.tvg-lb-wrapper .tvg-lb-item .tvg-lb-logo-wrap img.tvg-lb-logo-img {
    display: block;
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    transition-property: opacity;
    transition-timing-function: ease;
}

/* Color image overlay */
.tvg-lb-wrapper .tvg-lb-item .tvg-lb-logo-wrap img.tvg-lb-logo-img--color {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    opacity: 0;
}

.tvg-lb-item:hover{
    background: rgba(255,255,255,1);
}
/* Hover swap */
.tvg-lb-item:hover .tvg-lb-logo-img--grayscale {
    opacity: 0;
}

.tvg-lb-item:hover .tvg-lb-logo-img--color {
    opacity: 1 !important;
}

/* Responsive: 2-column grid on mobile */
@media (max-width: 1024px) {
	.tvg-lb-wrapper {
		flex-wrap: wrap;
	}
}
@media (max-width: 767px) {
    .tvg-lb-wrapper {
        display: grid;
		grid-template-columns: 1fr 1fr;
		
    }
	.tvg-lb-item:nth-child(1){
		grid-column: span 2;
	}
    .tvg-lb-item {
        flex: 0 0 50%;
        border-bottom: 1px solid;
    }
}
