:root {
  --scale-rem: 1;
  --scale-px: 1;
  --spacing: 40px;
  --t-line: rgba(255, 255, 255, 0.2);
  --t-link-hover: #ff9f35;
}
.gallery-wrapper {
  width: 100%;
  /* height: 600px; */
  /* padding-top: 70px; */
  position: relative;
  overflow: hidden;
}

.images__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 71px;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.images__image {
  min-width: 180px;
  width: 180px;
  flex-shrink: 0;
}

.images__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Staggered positioning for different image positions */
.images__image:nth-child(7n-6) {
  transform: translateY(0px);
}

.images__image:nth-child(7n-6) img {
  aspect-ratio: 0.85;
}

.images__image:nth-child(7n-5) {
  transform: translateY(5px);
}

.images__image:nth-child(7n-5) img {
  aspect-ratio: 1.03;
}

.images__image:nth-child(7n-4) {
  transform: translateY(20px);
}

.images__image:nth-child(7n-4) img {
  aspect-ratio: 0.91;
}

.images__image:nth-child(7n-3) {
  transform: translateY(-20px);
}

.images__image:nth-child(7n-3) img {
  aspect-ratio: 1.2;
}

.images__image:nth-child(7n-2) {
  transform: translateY(-100px);
}

.images__image:nth-child(7n-2) img {
  aspect-ratio: 0.97;
}

.images__image:nth-child(7n-1) {
  transform: translateY(-25px);
}

.images__image:nth-child(7n-1) img {
  aspect-ratio: 0.78;
}

.images__image:nth-child(7n) {
  transform: translateY(10px);
}

.images__image:nth-child(7n) img {
  aspect-ratio: 1.1;
}

/* Responsive design */
@media (min-width: 640px) {
  .images__container {
    gap: 32px;
  }

  .images__image {
    min-width: 260px;
    width: 260px;
  }
}

@media (min-width: 1024px) {
  .images__container {
    gap: 64px;
    padding-top: 86px;
  }

  .images__image {
    min-width: 340px;
    width: 340px;
  }

  .images__image img {
    border-radius: 28px;
  }
}

@media (min-width: 1280px) {
  .images__container {
    gap: 80px;
  }
}

/* Header Section */
.tc-latest-cases-style1 {
  background-color: #fff;
  padding: 150px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fsz-45 {
  font-size: 45px !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

.section-title {
  text-align: center;
  font-weight: 700;
  color: #222;
  margin-bottom: 50px;
}

/* Filter Section */
.filter {
  margin-bottom: 60px;
  text-align: center;
}

.filter .links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.filter .links a {
  font-size: 18px;
  line-height: 7px;
  color: #666;
  background-color: transparent;
  padding: 12px 0;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.filter .links a:hover,
.filter .links a.active {
  color: #071839;
}

.filter .links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #071839;
}

/* Portfolio Grid - FIXED WIDTH */
/* .cases-content {
  margin-bottom: 80px;
} */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  /* margin-bottom: 80px; */
}

.case-card {
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  /* cursor: pointer; */
  max-width: 100%;
}

.case-card:hover {
  transform: translateY(-10px);
}

.case-card.hidden {
  display: none;
}

.case-card .img {
  height: 350px;
  /* height: 440px; */
  position: relative;
  overflow: hidden;
}

.case-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .img img {
  transform: scale(1.05);
}

/* Search Icon Overlay */
.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 57, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/*.case-card:hover .search-overlay {*/
/*  opacity: 1;*/
/*  visibility: visible;*/
/*}*/

/*.search-icon {*/
/*  width: 45px;*/
/*  height: 45px;*/
/*  background: #071839;*/
/*  border-radius: 50%;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  color: white;*/
/*  font-size: 17px;*/
/*  transform: scale(0.8);*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.case-card:hover .search-icon {*/
/*  transform: scale(1);*/
/*}*/

.case-card .info {
  padding: 15px 0 0 0;
}

.case-card .info .title {
  font-size:18px;
  font-weight: 700;
  /*margin-bottom: 15px;*/
  color: #222;
}

.case-card .info .title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-card:hover .title {
  color: #071839;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  position: relative;
  padding: 0;
}

.modal-image {
  width: 100%;
  /* height: 400px; */
  object-fit: cover;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-body {
  padding: 40px;
}

.modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  display: none;
  margin-bottom: 30px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tag {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  color: #666;
  background: #f8f9fa;
}
@media (max-width: 600px) {
    .case-card .info .title{
        margin-bottom: 0 !important;
    }
  .filter .links {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 25px !important;
    justify-content: start !important;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
.filter .links::-webkit-scrollbar {
  height: 0px; /* hide scrollbar */
}
 .filter .links{
     display:flex!important;
  }
  .filter {
    text-align: left;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .fsz-45 {
    font-size: 32px !important;
  }

  /*.filter .links {*/
  /*  display: flex;*/
  /*  flex-wrap: nowrap;*/
  /*  overflow-x: auto;*/
  /*  gap: 35px;*/
  /*  -webkit-overflow-scrolling: touch;*/
  /*  justify-content: flex-start;*/
  /*}*/

  .filter .links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .case-card .info {
    padding: 15px 0 0 0;
  }

  .case-card .info .title {
    font-size: 16px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-image {
    height: 250px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 24px;
  }
}

/* Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.modal-open {
  overflow: hidden;
}
