.liw-home-five { display: none; }
@media (min-width: 1000px) {
  .liw-home-five { display: block; padding-top: 14px; }
  .liw-home-five > .ct-container {
    width: min(calc(100% - 48px), var(--lwd-site-width, 1140px)) !important;
    max-width: var(--lwd-site-width, 1140px) !important; margin-inline: auto !important;
    container-type:inline-size;
  }
  .liw-home-five-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(min-content, 1fr));
    border-radius: var(--lwd-card-radius, 10px); overflow: hidden;
    /* Preserve the normal proportions, but allow text and wrapped badges to grow the rows. */
    gap:2px;aspect-ratio:auto;min-height:max(300px,calc(100cqw / 3.35));max-height:none;
  }
  .liw-home-five-tile { margin: 0; min-width:0;min-height:min-content;overflow:hidden;border-radius:0; }
  .liw-home-five-tile:first-child { grid-row: span 2; }
  .liw-home-five-tile > a { display:grid;position:relative;min-height:100%;color:#fff!important; }
  .liw-home-five picture, .liw-home-five img { display: block; width: 100%; height: 100%; }
  .liw-home-five picture {position:absolute;inset:0;}
  .liw-home-five img { object-fit: cover; }
  .liw-home-five-text {
    position:relative;display:flex;flex-direction:column;min-width:0;
    justify-content: flex-end; align-items: flex-start; padding: 12px 13px;
    background: linear-gradient(transparent 20%, rgba(0,0,0,.78));
  }
  .liw-home-five h2 {
    color: #fff !important; font-family:var(--theme-font-family,Arial,sans-serif);
    font-size: clamp(17px, 1.25vw, 19px); font-weight: 700;
    line-height:1.25;letter-spacing:0;margin:6px 0 0;overflow-wrap:anywhere;
  }
  .liw-home-five-tile:first-child h2 { font-size: clamp(24px, 1.8vw, 28px); }
  .liw-home-five-category {
    display: inline-block; background:#ed1646;color:#fff;
    font-size: 12px; line-height: 1.3; font-weight: 700; padding: 2px 4px;
  }
  .liw-home-five-tile > a:hover { color: #fff !important; filter: none; opacity: 1; }
  body.home #main:has(> .liw-home-five) > .ct-container { padding-top: 14px !important; }
}

@media(min-width:1000px){
 .liw-home-five-categories {display:flex;flex-wrap:wrap;gap:4px;}
 .liw-home-five-category {filter:none!important;opacity:1!important;backdrop-filter:none!important;}
}
