/* --------------------------------------------------------------------------
 Grid Section
----------------------------------------------------------------------------- */
.grid-container {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 1.4rem + 0.02 * 100vw, 3rem);
}
.grid-container.wide-container {
  max-width: 1440px;
}

.grid-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
}
@media screen and (max-width: 767px) {
  .grid-heading {
    flex-direction: column;
    align-items: center;
  }
}
.grid-heading h2 {
  font-size: clamp(1.75rem, 22px + 1.25vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dark-mode .grid-heading h2 {
  color: var(--wp--custom--color--background);
}

.grid-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.875rem, 1.5rem + 0.0125 * 100vw, 2.5rem) clamp(1.25rem, 0.875rem + 0.0125 * 100vw, 1.875rem);
}
.grid-cards > * {
  width: 100%;
}
@media screen and (min-width: 640px) {
  .grid-cards > * {
    width: calc((100% - 1 * clamp(1.25rem, 0.875rem + 0.0125 * 100vw, 1.875rem)) / 2);
  }
}
@media screen and (min-width: 1024px) {
  .grid-cards > * {
    width: calc((100% - 2 * clamp(1.25rem, 0.875rem + 0.0125 * 100vw, 1.875rem)) / 3);
  }
}
@media screen and (min-width: 1280px) {
  .grid-cards.cols-4 > * {
    width: calc((100% - 3 * clamp(1.25rem, 0.875rem + 0.0125 * 100vw, 1.875rem)) / 4);
  }
}

.grid-footer {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
 Project Card
----------------------------------------------------------------------------- */
.project-item {
  text-decoration: none;
}
.project-item figure {
  margin: 0 0 16px 0;
  aspect-ratio: 16/11;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #008ad3;
}
.project-item figure img {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-style: preserve-3d;
  scale: 1.001;
  transition: scale 0.65s ease, opacity 0.25s ease;
}
.project-item figure svg {
  height: 50%;
  opacity: 0.5;
}
.project-item .btn {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(20px);
}
.project-item h3 {
  text-align: center;
  font-size: clamp(1.25rem, 17.6px + 0.5vw, 1.5rem);
}
.project-item:hover img {
  scale: 1.08;
  opacity: 0.4;
}
.project-item:hover .btn {
  transform: translateY(0px);
  opacity: 1;
}

.wp-block-meta-featured-projects .heading {
  text-align: center;
}
.wp-block-meta-featured-projects h2 {
  text-transform: uppercase;
  font-size: clamp(2.1875rem, 17px + 3.75vw, 4.0625rem);
  color: #008ad3;
  display: inline-flex;
  flex-direction: column;
  margin-inline: auto;
  margin-bottom: 48px;
}
.wp-block-meta-featured-projects h2 span {
  display: flex;
  font-size: 35%;
  font-family: var(--wp--preset--font-family--secondary);
  gap: 16px;
  align-items: center;
}
.wp-block-meta-featured-projects h2 span::before {
  content: "";
  width: 100%;
  height: 1px;
  background: #06b3fe;
}
