#filters {
  margin: 1% 1% 0%;
  padding: 0;
  list-style: none;
  text-align: center
}
#filters li {
  display: inline-block;
}
#filters li span {
  display: block;
  padding: 5px 20px;
  text-decoration: none;
  color: #666;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
#filters li span.active, #blog-filter #filters li span.active:hover  {
  background-color: var(--cobalt);
  color: #fff;
  border-radius: 50px;
}
#portfoliolist {
  padding: 0 5px;
}
#portfoliolist .portfolio {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 5px;
  display: none;
  float: left;
  overflow: hidden;
}
.portfolio-wrapper {
  overflow: hidden;
  position: relative !important;
  cursor: pointer;
}
.portfolio-wrapper > p {
  display: none;
}
.portfolio img {
  width: 100%;
  position: relative;
  top: 0;
  -webkit-transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
}
.portfolio .label {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
  transform: scale(.75, .75);
  opacity: 0;
  padding: 20px;
}
.portfolio:hover .label {
  transform: scale(1, 1);
  opacity: 1
}
.portfolio .label-bg {
  background: rgba(147, 0, 0, .85);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.portfolio .label-text {
  color: #fff;
  height: 100%;
  position: relative;
  z-index: 500;
  padding-top: 20%;
  border: 1px dotted rgba(255, 255, 255, .5);
}
.portfolio .label-text p {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
}
.portfolio .label-text h2 {
  font-weight: 300;
  font-size: 30px;
  margin-top: 0;
}
.portfolio .label-text .btn {
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50px;
  margin-top: 10px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.portfolio .label-text .btn:hover {
  background-color: var(--cobalt);
}
.portfolio:hover .label {
  bottom: 0;
}
.portfolio:hover img {
  transform: scale(1.1, 1.1) /*top: -30px;*/
}
.portfolio h2 {
  color: #fff;
}
/*  #Mobile (Portrait) - Note: Design for a width of 320px */
/* NDIC PROJECTS */
.container:has(.ndic-projects) {
  width: 100% !important;
}
/* Project Filters */
.ndic-projects .vc_grid-filter > .vc_grid-filter-item > span {
  border: 1px solid #959595;
  color: #959595;
  background: none;
  padding: 9px 18px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.2s ease all;
  font-size: 12px;
  line-height: 12px;
}
.ndic-projects .vc_grid-filter.vc_grid-filter-color-grey > .vc_grid-filter-item.vc_active, .ndic-projects .vc_grid-filter.vc_grid-filter-color-grey > .vc_grid-filter-item:hover {
  background-color: transparent;
}
.ndic-projects .vc_grid-filter > .vc_grid-filter-item:hover > span {
  border: 1px solid #000;
  color: #000;
}
.ndic-projects .vc_grid-item .vc_gitem-zone-a:before {
  background: #00000000;
  transition: background .2s;
}
.ndic-projects .vc_grid-item .vc_is-hover .vc_gitem-zone-a:before {
  background: #0000007d;
}
.ndic-projects .vc_grid-item .vc_gitem-zone-b {
  position: absolute;
  top: 290px;
  transition: top .4s;
}
.ndic-projects .vc_grid-item .vc_is-hover .vc_gitem-zone-b {
  top: 0px;
}
.ndic-projects .vc_gitem-zone-b .vc_gitem-row-position-top, .ndic-projects .vc_gitem_row .vc_gitem-col {
  height: 100%;
}
.ndic-projects .vc_gitem-zone-b .vc_gitem-row-position-top > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ndic-projects .project-title {
  margin-bottom: 0;
}
.ndic-projects .project-title h3 {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1em;
  margin: 0;
}
.ndic-projects .project-location {
  color: #fff;
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1em;
  margin: 10px 0;
}
.ndic-projects .project-excerpt {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.ndic-projects .project-link {
  color: #fff;
  margin-top: 15px;
}
.ndic-projects .project-link .btn {
  border: 1px solid #ffffffcf;
  color: #ffffffcf;
  background: none;
  padding: 9px 18px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1em;
  border-radius: 0px;
  transition: all .2s;
}
.ndic-projects .project-link .btn:hover {
  border: 1px solid #ffffff;
  color: #ffffff;
}
/* START NEW PORTFOLIO STYLING */
.filter-buttons-row {
  margin-bottom: 1rem;
}
#grid-filter-buttons {
  margin: auto 3rem;
  padding: 0;
  list-style: none;
  text-align: center;
  width: 100%;
}
#grid-filter-buttons li {
  display: inline-block;
  transition: 0.5s;
  margin: 0 .5rem;
}
/* #grid-filter-buttons li:hover {
  border: 2px solid #1b4a6c;
  background-color: lightgray;
  color: white;
} */
#grid-filter-buttons li span {
  display: block;
  padding: 5px 20px;
  text-decoration: none;
  color: #666;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
#grid-filter-buttons li.active {
  border-radius: 50px;
  background-color:var(--cobalt);
  color: #fff;
}
#grid-filter-buttons li.active span {
  color: #fff;
}

.card-grid-row {
  margin-top: 1rem;
}

.portfolio-card-grid-row {
  display: flex;
  flex-direction: column;
}
.portfolio-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  padding: 20px;
  justify-content: center;
  width: 100%;
}
.portfolio-grid-title {
  margin-bottom: 1rem;
  margin-left: 15px;
  width: 100%;
  text-align: center;
}
/*.portfolio-card-container:nth-child(3n-1) {
  margin-top: -2.25rem;
}
.portfolio-card-container:nth-child(3n) {
  margin-top: 3rem;
}
.portfolio-card-container.middle-card {
  margin-top: -2.25rem;
}
.portfolio-card-container.third-card {
  margin-top: 3rem;
}*/
.portfolio-card-container.middle-card, .portfolio-card-container.third-card {
  margin-top: 0;
}
.portfolio-card-container {
  box-shadow: 3px rgba(255, 255, 255, .5);
  display: none;
}
.portfolio-card-container.visible {
  display: block;
}

#load-more {
  background-color: #930000;
  color: white;
  transition: 0.5s ease;
  border-radius: 0.25rem!important;
  border: none;
}
#load-more:hover {
  color: white;
  background-color: #1b4a6c;
  cursor: pointer;
}

.portfolio-card-grid .portfolio-card {
  width: 100%; /* Adjust width as needed */
  height: 500px; /* Adjust height as needed */
  overflow: auto;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  position: relative;
  cursor: default;
}
.portfolio-card-grid .portfolio-card:hover {
  transform: scale(1.025);
}
.portfolio-card .image-container {
  width: 100%;
  height: auto;
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  overflow-y: scroll;
  transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}
.portfolio-card .card-content {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
  justify-content: center;
  background-color: #1B4A6C;
  border-radius: 50%;
  padding: 1rem;
  width: 100px;
  height: 100px;
  pointer-events: none;
}
.portfolio-card-grid .portfolio-card:hover .card-content {
  opacity: 1;
}
.card-content .portfolio-card-title {
  /* color: #fff; */
  margin: 1rem 0;
  font-size: 1.5em;
  font-weight: bold;
}
.portfolio-card-title {
  margin: 1rem 0 !important;
}
.card-content .portfolio-card-link {
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: 1s;
  font-size: 12px;
}
.card-content .portfolio-card-link:hover {
  color: gray;
}
.portfolio-card .card-content .icon {
  margin-top: 10px;
  height: 80px;
}
.portfolio-card .card-content .icon svg {
  fill: #fff !important;
  width: 24px;
  height: 24px;
}
/* Hide scrollbar for Firefox */
.portfolio-card::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge, and Safari */
.portfolio-card {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Chrome, Safari, and Opera */
.portfolio-card {
  overflow: -moz-scrollbars-none; /* Firefox */
}
/* Optional: Style the scroll thumb and track */
.portfolio-card::-webkit-scrollbar-thumb {
  background-color: transparent; /* Thumb color */
}
.portfolio-card::-webkit-scrollbar-track {
  background-color: transparent; /* Track color */
}
@media (min-width:480px) and (max-width: 991px) {
  #portfoliolist .portfolio {
    width: 50%;
  }
}
@media (min-width:768px) {
  .portfolio-card-grid .portfolio-card {
    width: 332px;
  }
}
@media (min-width:992px) {
  #portfoliolist .portfolio {
    width: 25%;
  }
  .portfolio-card-grid .portfolio-card {
    width: 455px;
  }
}
@media (min-width:1200px) {
  #portfoliolist .first-thumb {
    height: 620px;
    width: 50%;
  }
  .portfolio-card-grid .portfolio-card {
    width: 350px;
  }
  #portfoliolist .first-thumb .portfolio-wrapper, #portfoliolist .first-thumb img {
    height: 100%;
  }
}
@media (min-width:1366px) {
  #post-9022 .container.content {
    width: 1240px !important;
  }
  .portfolio-card-grid .portfolio-card {
    width: 382px;
  }
}
@media (min-width:1600px) {
  #post-9022 .container.content {
    width: 1460px !important;
  }
  .portfolio-card-grid .portfolio-card {
    width: 456px;
  }
}
@media (min-width:1920px) {
  #post-9022 .container.content {
    width: 1760px !important;
  }
  .portfolio-card-grid .portfolio-card {
    width: 557px;
  }
}