.tlg-hover-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 20px;
    align-items: flex-end;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
    min-height: 614px;
  }

  .tlg-hover-grid::-webkit-scrollbar {
    height: 8px;
  }

  .tlg-hover-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .tlg-hover-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
  }

  .tlg-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 170px;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-end;
  }

  .tlg-tile:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 12px;
  }

  .tlg-tile-img {
    width: 100%;
    height: 170px !important;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    filter: saturate(0.85) brightness(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .tlg-tile-overlay {
    margin-top: 16px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
  }

  .tlg-tile.active .tlg-tile-overlay {
    width: 394px;
  }

  .tlg-tile-meta {
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .tlg-tile-meta.show {
    opacity: 1;
  }

  .tlg-tile-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    font-style: italic;
    color: inherit;
    position: relative;
  }

  .tlg-tile-title:after {
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M0.85934 15.1429L13.0022 3M13.0022 3H0.859375M13.0022 3V14.7857" stroke="%23FFFAF0" stroke-width="2"/></svg>');
    display: block;
    width: 16px; 
    height: 16px; 
    position: absolute;
    top: 0;
    right: 0;
  }

  .tlg-tile-desc {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    color: inherit;
  }

  .tlg-tile-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
  }

  /* Desktop hover/focus states */
  @media (hover: hover) and (pointer: fine) {
    .tlg-tile.active {
      width: 394px;
    }

    .tlg-tile.active .tlg-tile-img {
      height: 394px !important;
      filter: saturate(1) brightness(1);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    .tlg-tile.active .tlg-tile-overlay {
      opacity: 1;
      max-height: 200px;
    }

    .tlg-tile.active .tlg-tile-arrow {
      transform: translateX(4px) translateY(-4px);
    }

    .tlg-hover-grid:has(.tlg-tile.active) .tlg-tile:not(.active) {
      opacity: 0.6;
    }
  }

  /* Mobile/touch states */
  @media (hover: none) or (pointer: coarse) {
    .tlg-hover-grid.swiper {
      overflow: visible;
    }

    .tlg-hover-grid .swiper-wrapper {
      align-items: flex-end;
    }

    .tlg-tile {
      scroll-snap-align: center;
    }

    .tlg-tile.active {
      width: 394px;
    }

    .tlg-tile.active .tlg-tile-img {
      height: 394px !important;
      filter: saturate(1) brightness(1);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    .tlg-tile.active .tlg-tile-overlay {
      opacity: 1;
      max-height: 200px;
    }

    .tlg-tile.active .tlg-tile-arrow {
      transform: translateX(4px) translateY(-4px);
    }

    .tlg-hover-grid:has(.tlg-tile.active) .tlg-tile:not(.active) {
      opacity: 0.6;
    }
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {

    .tlg-hover-grid {
        margin-top: -60px;
      padding: 0px 0 10px;
      gap: 12px;
      min-height: 580px;
    }

    .tlg-tile {
      width: 150px;
    }

    .tlg-tile-img {
      height: 150px !important;
    }

    .tlg-tile.active {
      width: 340px;
    }

    .tlg-tile.active .tlg-tile-img {
      height: 340px !important;
    }

    .tlg-tile-title {
      font-size: 20px;
    }

    .tlg-tile-desc {
      font-size: 13px;
    }
    .tlg-tile.active .tlg-tile-overlay {
        width: 340px;
      }
  }

/* Mobile/touch states */
@media (hover: none) or (pointer: coarse) {
    body {
      overflow-x: hidden;
    }
    
    .tlg-hover-grid.swiper {
      overflow: hidden;
      width: 100%;
      max-width: 100vw;
    }
  
    .tlg-hover-grid .swiper-wrapper {
      align-items: flex-end;
    }
  
    .tlg-tile {
      scroll-snap-align: center;
      width: 340px; /* Always expanded on mobile */
    }
  
    .tlg-tile-img {
      height: 340px !important; /* Always expanded on mobile */
      filter: saturate(1) brightness(1);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }
  
    .tlg-tile.active {
      width: 340px;
    }
  
    .tlg-tile.active .tlg-tile-img {
      height: 340px !important;
    }
  
    .tlg-tile-overlay {
      width: 340px;
    }
  
    .tlg-tile.active .tlg-tile-overlay {
      opacity: 1;
      max-height: 200px;
      width: 340px;
    }
  
    .tlg-tile.active .tlg-tile-arrow {
      transform: translateX(4px) translateY(-4px);
    }
  
    .tlg-hover-grid:has(.tlg-tile.active) .tlg-tile:not(.active) {
      opacity: 0.6;
    }

    div#hoverGrid {
        padding-bottom: 40px;
    }

    .tlg-hover-grid .tlg-q-pagination {
        position: absolute;
       bottom: 0px;
    }
  }