.ecommbanners .htmlcontent {
    display: grid;
}

div#ecommbanners_ecommbanners {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
    background: #E9E8E8;
    margin-top: 20px;
}

#ecommbanners_ecommbanners .htmlcontent {
    padding: 20px;
}

#ecommbanners_ecommbanners .onlytext .text h2 {
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

#ecommbanners_ecommbanners .onlytext .text p {
    font-size: 14px;
}

#ecommbanners_ecommbanners .onlytext .text a {
    color: #D70035;
    text-decoration: underline;
}

.ecommbanners li {
    width: 100%;
    height: 100%;
    padding: 0px;
}
.ecommbanners figure {
    margin: 0px;
    height: 100%;
    align-content: center;
}
.ecommbanners img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.htmlcontent-item-3 {
    grid-row: span 2;
}
div#ecommbanners_displayBanner ul.htmlcontent {
    margin: 0px;
    padding: 0px;
}
div#ecommbanners_displayBanner ul.htmlcontent p {
    padding: 0px;
    margin: 0px;
}
#ecommbanners_displayHome.ecommbanners figure{
    position: relative;
}
#ecommbanners_displayHome .item-html {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #ffffff52;
}
#ecommbanners_displayHome .item-html p{
    color: black;
    margin: 0px;
}
.ecommbannerstitle {
    text-align: center;
    font-size: 30px;
    line-height: 30px;
    margin: 40px 0px 20px;
}
li.htmlcontent-item-1, li.htmlcontent-item-2, li.htmlcontent-item-3 {
    position: relative;
}
li.htmlcontent-item-1 .ecommbannerstitle, li.htmlcontent-item-2 .ecommbannerstitle, li.htmlcontent-item-3 .ecommbannerstitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    margin: 0;
    z-index: 2;
    width: 100%;
}
@keyframes slide-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}




/* Hover animations for home banners (click hint) */
#ecommbanners_displayHome .htmlcontent li {
    cursor: pointer;
    transition: box-shadow .35s ease;
}
#ecommbanners_displayHome .htmlcontent li figure {
    overflow: hidden; /* contain scaled image */
}
#ecommbanners_displayHome .htmlcontent li img {
    transition: transform .35s ease, filter .35s ease;
    will-change: transform;
}
#ecommbanners_displayHome .htmlcontent li:hover img,
#ecommbanners_displayHome .htmlcontent li:focus-within img {
    transform: scale(1.05);
}
#ecommbanners_displayHome .htmlcontent li:hover,
#ecommbanners_displayHome .htmlcontent li:focus-within {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#ecommbanners_displayHome .htmlcontent li .ecommbannerstitle {
    transition: transform .35s ease, opacity .35s ease;
}
#ecommbanners_displayHome .htmlcontent li:hover .ecommbannerstitle,
#ecommbanners_displayHome .htmlcontent li:focus-within .ecommbannerstitle {
    transform: translate(-50%, -50%) scale(1.03);
    opacity: 0.95;
}


/* Scoped sizing for images in displayBanner hook (header strip icons) */
#ecommbanners_displayBanner.ecommbanners figure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}
#ecommbanners_displayBanner.ecommbanners picture,
#ecommbanners_displayBanner.ecommbanners img {
    width: auto !important;
    height: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    border-radius: 0; /* avoid rounded corners for tiny icons */
}
/* Optional: keep any text under the icon tidy */
#ecommbanners_displayBanner .item-html {
    text-align: center;
}
#ecommbanners_displayHome .title_home  figure{
	display:none;	
}
li.title_home {
    box-shadow: none !important;
    transition: none !important;
}
#ecommbanners_displayHome .title_home  .ecommbannerstitle {
	opacity: 1 !important;
	transform:none !important;
}
#ecommbanners_displayHome .title_home .ecommbannerstitle {
    position: initial;
    transform: none; 
    transition:none !important;
    color: black;
    text-align: center;
    font-weight: bold;
        margin-top: 15px;
    margin-bottom: 25px;
}

@media (max-width: 991px) {
    div#ecommbanners_displayBanner.slidetextmobile .item-html.onlytext {
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
    }
    div#ecommbanners_displayBanner.slidetextmobile .item-html.onlytext > *{
        display: inline-block;
        padding-left: 100%;
        animation: slide-text 6s linear infinite;
        margin-bottom: 0px;
    }
}
@media(max-width: 767px){
    .ecommbanners .htmlcontent {
        grid-template-columns: 1fr!important;
    }
    .ecommbanners li {
        grid-column: span 1!important;
        grid-row: span 1!important;
    }
    ul.htmlcontent.clearfix.container {
    	padding: 0px;
    }
}