  .gallery-header {
      text-align: center;
      color: white;
      margin-bottom: 50px;
      animation: fadeInDown 0.6s ease;
  }

  .gallery-item {
      margin-bottom: 30px;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.5s ease forwards;
  }

  .gallery-item:nth-child(1) {
      animation-delay: 0.1s;
  }

  .gallery-item:nth-child(2) {
      animation-delay: 0.2s;
  }

  .gallery-item:nth-child(3) {
      animation-delay: 0.3s;
  }

  .gallery-item:nth-child(4) {
      animation-delay: 0.4s;
  }

  .gallery-item:nth-child(5) {
      animation-delay: 0.5s;
  }

  .gallery-item:nth-child(6) {
      animation-delay: 0.6s;
  }

  .card {
      border: none;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      height: 100%;
  }

  .card:hover {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .card-img-wrapper {
      position: relative;
      overflow: hidden;
      height: 250px;
  }

  .card-img-top {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .card:hover .card-img-top {
      transform: scale(1.1);
  }

  .card-body {
      padding: 20px;
      background: white;
  }

  .card-title {
      font-weight: 600;
      color: #333;
      margin-bottom: 2px;
      font-size: 1.1rem;
  }

  .card-text {
      color: #666;
      font-size: 0.9rem;
  }

  .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

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

  .overlay-text {
      color: white;
      font-size: 1.2rem;
      font-weight: 500;
  }

  .modal-content {
      border-radius: 15px;
      overflow: hidden;
  }

  .modal-img {
      width: 100%;
      height: auto;
  }

  .modal-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.9);
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .modal-nav-btn:hover {
      background: white;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .modal-nav-btn:active {
      transform: translateY(-50%) scale(0.95);
  }

  .modal-prev {
      left: 20px;
  }

  .modal-next {
      right: 20px;
  }

  .modal-body {
      position: relative;
  }

  .image-transition {
      animation: imageSlide 0.4s ease;
  }

  @keyframes imageSlide {
      0% {
          opacity: 0;
          transform: scale(0.95);
      }

      100% {
          opacity: 1;
          transform: scale(1);
      }
  }

  @keyframes fadeInUp {
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes fadeInDown {
      from {
          opacity: 0;
          transform: translateY(-30px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  .filter-buttons {
      text-align: center;
      margin-bottom: 40px;
      animation: fadeInDown 0.6s ease 0.2s both;
  }

  .filter-btn {
      margin: 5px;
      padding: 10px 25px;
      border: 2px solid #226adb;
      background: #226adb;
      color: #fff;
      border-radius: 15px;
      font-weight: 500;
      transition: all 0.3s ease;
      cursor: pointer;
  }

  .filter-btn:hover,
  .filter-btn.active {
      background: white;
      color: #667eea;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
  }

  .gallery-item {
      padding: 10px;
  }

  .card-title {
      font-weight: 600;
      color: #226adb;
      margin-bottom: 2px;
      font-size: 1.1rem;
  }

  .btn-close {
      position: absolute;
      background-color: #f48f36;
      opacity: 1;
      right: 10px;
      top: 10px;
      padding: 10px;
      color: white !important;
  }

  #modalTitle {
      position: absolute;
      bottom: 20px;
      left: 0;
      bottom: 0px;
      text-align: center;
      width: 100%;
      background-color: #145ccc;
      color: white;
      padding: 10px;
  }

  .modal-dialog {
      max-height: 90vh;
      /* 90% of viewport height */
  }

  .modal-content {
      max-height: 90vh;
      overflow-y: auto;
      /* enable scroll if content is large */
  }

  .modal-img {
      width: 100%;
      height: auto;
      max-width: 600px;
  }

  .modal-content {
      position: relative;
      display: block;
      flex-direction: column;
      width: auto;
      pointer-events: auto;
      background-color: transparent;
      background-clip: padding-box;
      border: none;
      border-radius: .3rem;
      outline: 0;
  }

  .modal-body {
      position: relative;
      z-index: 9999;
  }

  @media (min-width: 992px) {

      .modal-lg,
      .modal-xl {
          max-width: fit-content;
      }
  }