.tcgelements-gallery-cards {
  position: relative;

  // Desktop Animated Version
  .cards-wrapper-desktop {
    position: relative;
    min-height: 100vh;
    overflow: visible;
  }

  .animated-images-container {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    justify-content: flex-start;
    width: 33.333333%;
    z-index: 9;
  }

  .animated-image-card {
    width: 80px;
    height: 350px;
    border-radius: 60px;
    margin: 0 5px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;

    a {
      display: block;
      width: 100%;
      height: 100%;
      text-decoration: none;
      color: inherit;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .card-info {
      position: absolute;
      left: 10px;
      bottom: 10px;
      border-radius: 10px;
      width: calc(100% - 20px);
      padding: 20px 30px;
      background: rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(10px);
      z-index: 5;
      opacity: 0;
      color: #fff;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .card-title {
      font-weight: 600;
      margin: 0 0 5px 0;
      font-size: 20px;
      line-height: 1.2;
    }

    .card-category {
      text-transform: uppercase;
      font-size: 14px;
      opacity: 0.7;
      display: block;
      line-height: 1.4;
    }
  }

  // Mobile Grid Version
  .cards-wrapper-mobile {
    position: relative;

    .row {
      margin-left: -15px;
      margin-right: -15px;
    }

    [class*="col-"] {
      padding-left: 15px;
      padding-right: 15px;
    }
  }

  .image-card-item {
    position: relative;

    a {
      display: block;
      text-decoration: none;
      color: inherit;
      transition: transform 0.3s ease;

      &:hover {
        transform: translateY(-5px);
      }
    }
  }

  .image-card-inner {
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }
  }

  .image-card-item:hover {
    .image-card-inner img {
      transform: scale(1.05);
    }
  }

  .image-card-item .card-info {
    position: absolute;
    left: 10px;
    bottom: 10px;
    border-radius: 10px;
    width: calc(100% - 20px);
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
    color: #fff;
  }

  .image-card-item .card-title {
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .image-card-item .card-category {
    text-transform: uppercase;
    font-size: 14px;
    opacity: 0.7;
    display: block;
    line-height: 1.4;
  }

  // Responsive utilities
  @media (max-width: 991px) {
    .d-lg-none {
      display: block !important;
    }
    .d-lg-block {
      display: none !important;
    }
  }

  @media (min-width: 992px) {
    .d-lg-none {
      display: none !important;
    }
    .d-lg-block {
      display: block !important;
    }
  }

  @media (max-width: 767px) {
    .cards-wrapper-mobile {
      [class*="col-"] {
        margin-bottom: 20px;
      }
    }

    .image-card-inner {
      height: 350px;
    }
  }

  @media (min-width: 768px) and (max-width: 991px) {
    .image-card-inner {
      height: 400px;
    }
  }
}