  .ig-wrap {
        padding: 30px 0;
      }

      .ig-title {
        text-align: center;
        font-weight: 700;
        letter-spacing: 2px;
        font-size: 28px;
        margin-bottom: 18px;
      }

      /* Slider shell */
      .ig-slider {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
      }

      .ig-track {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 2px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
      }

      .ig-track::-webkit-scrollbar {
        display: none;
      }

      /* Chrome */

      /* Cards: 3 per row on mobile, 4 per row on desktop, like your screenshot */
      .ig-card {
        flex: 0 0 calc((100% - 20px) / 1.3);
        scroll-snap-align: start;
        position: relative;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        overflow: hidden;
        background: #eee;
        display: block;
      }

      @media (min-width: 992px) {
        .ig-card {
          flex-basis: calc((100% - 30px) / 4);
        }
      }

      .ig-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1);
        transition: transform .25s ease;
      }

      .ig-card:hover img {
        transform: scale(1.03);
      }

      /* Hover overlay like your example */
      .ig-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        transition: opacity .2s ease;
        display: flex;
        align-items: flex-end;
        padding: 12px;
      }

      .ig-card:hover .ig-overlay {
        opacity: 1;
      }

      .ig-caption {
        color: #fff;
        font-size: 14px;
        line-height: 1.25;
        max-height: 70%;
        overflow: hidden;
        display: -webkit-box;
        text-align: center;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        word-break: break-word;
        white-space: normal;
        text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
      }

      /* IG type badge top-right */
      .ig-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, .45);
        border-radius: 6px;
        z-index: 3;
      }

      .ig-badge svg {
        width: 16px;
        height: 16px;
        fill: #fff;
      }

      /* Nav buttons */
      .ig-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.35);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
      }

      .ig-nav:hover {
        background: rgba(0, 0, 0, 0.5);
      }

      .ig-prev {
        left: 8px;
      }

      .ig-next {
        right: 8px;
      }

      .ig-nav svg {
        width: 18px;
        height: 18px;
        fill: #fff;
      }

      /* Dots */
      .ig-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
      }

      .ig-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .25);
        cursor: pointer;
      }

      .ig-dot.active {
        background: rgba(0, 0, 0, .6);
      }

      .ig-msg {
        text-align: center;
        margin-top: 10px;
        color: #666;
      }