.projects-showcase {
  --project-gap: clamp(18px, 2vw, 30px);
  --project-title-color: #2c2f37;
  --project-text-color: #343640;
  width: 100%;
  margin-top: 40px;
}

.projects-showcase,
.projects-showcase * {
  box-sizing: border-box;
}

.projects-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 770px));
  gap:30px;
  width: 100%;
  place-content: center;
}

.projects-showcase__grid.three_columns
{
  grid-template-columns: repeat(3, minmax(0, 770px));
  gap:21px;
}

.projects-showcase.is-expanded .projects-showcase__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}
.projects-showcase.is-expanded .projects-showcase__grid.three_columns
{
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  --project-color: rgba(31, 111, 120, 0.72);
  position: relative;
  min-width: 0;
}

.project-card.is-active {
  grid-column: 1 / -1;
}

.project-card__cover {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(290px, 32vw, 520px);
  padding: clamp(28px, 4vw, 60px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #1f2428;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.projects-showcase.is-expanded .project-card:not(.is-active) .project-card__cover {
  min-height: clamp(230px, 20vw, 320px);
  padding: clamp(24px, 3vw, 38px);
}

.project-card.is-active .project-card__cover {
  display: none;
}

.project-card__cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.34);
  transition: background-color 250ms ease, opacity 250ms ease;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--project-color);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}

.project-card__cover:hover .project-card__overlay,
.project-card__cover:focus-within .project-card__overlay {
  opacity: 0.86;
}

.project-card__cover:hover img,
.project-card__cover:focus-within img {
  transform: scale(1.035);
}

.project-card__title {
  position: relative;
  z-index: 3;
  display: block;
  max-width: 86%;
  margin: 0;
  color: #fff;
  font-family: "Spartan Bold" !important;
  font-size: clamp(24px, 2.91vw, 56px) !important;
  font-weight: 800;
  line-height: 1.2 !important;
}
.projects-showcase__grid.three_columns .project-card__title
{
  font-size: clamp(20px, 2.08vw, 40px) !important;
}

.projects-showcase.is-expanded .project-card:not(.is-active) .project-card__title {
  font-size: clamp(18px, 1.92vw, 37px) !important;
}

.project-card__icon,
.project-card__close {
  position: absolute;
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 4.5vw, 74px);
  height: clamp(58px, 4.5vw, 74px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: clamp(44px, 4vw, 66px);
  font-weight: 700;
  line-height: 1;
  appearance: none;
}

.project-card__detail {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(25px, 1.82vw, 35px);
  align-items: start;
  width: 100%;
}

.project-card.is-active .project-card__detail {
  display: flex;
  gap: 0 20px;
  align-items: stretch;
}

.project-card__content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card__content h2 {
  margin-bottom:30px ;
  color: #2C2E35;
  font-family: "Spartan Bold" !important;
  font-size: clamp(23px, 2.08vw, 40px) !important;
  font-weight: 800;
  line-height: 1.2;
}

.project-card__content p {
  margin: 0 0 clamp(22px, 2.1vw, 32px);
  color: #2C2E35;
  font-size: clamp(16px, 1.14vw, 22px );
  font-family: "Spartan-Regular";
  font-weight: 400;
  line-height: 1.2;
  width: 100%;
  text-align: justify;
}
.project-card__content p:last-of-type
{
  margin-bottom: 0;
}
.project-card__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.04vw, 20px);
  margin-top: clamp(20px, 2.39vw, 46px);
}

.project-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
}

.project-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__thumb img {
  transition: transform 260ms ease, opacity 260ms ease;
}

.project-card__thumb:hover img,
.project-card__thumb:focus-visible img {
  transform: scale(1.04);
  opacity: 0.9;
}

.project-card__featured {
  position: relative;
  overflow: hidden;
  max-height: 518px;
  max-width: 847px;
  width: 100%;
}
.project-card__featured img
{
  width: 100%;
  height: auto;
  min-height: 518px;
  max-height: 518px;
  object-fit: cover;
}
.project-card__close {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  appearance: none;
}

.project-card__cover:focus-within,
.project-card__thumb:focus-visible,
.project-card__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: -6px;
}

@media (max-width: 1180px) {
  .projects-showcase.is-expanded .projects-showcase__grid, .projects-showcase__grid.three_columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card__detail {
    grid-template-columns: 1fr;
  }

  .project-card__featured {
    min-height: clamp(320px, 56vw, 520px);
  }
}
@media(max-width:1024px)
{
  .project-card.is-active .project-card__detail
  {
    flex-direction: column;
    gap: 40px;
  }
  .project-card__content
  {
    width: 100%;
  }
  .project-card__featured img
  {
    min-height: inherit;
    min-width: inherit;
    height: auto;
  }
  .project-card__content h2
  {
    margin-bottom: 20px !important;
  }
  .projects-showcase
  {
    margin-top: 20px;
  }
  .project-card__featured
  {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .projects-showcase__grid,
  .projects-showcase.is-expanded .projects-showcase__grid, .projects-showcase__grid.three_columns {
    grid-template-columns: 1fr;
  }

  .project-card__cover,
  .projects-showcase.is-expanded .project-card:not(.is-active) .project-card__cover {
    min-height: 300px;
    padding: 28px;
  }

  .project-card__title,
  .projects-showcase.is-expanded .project-card:not(.is-active) .project-card__title {
    max-width: calc(100% - 48px);
    font-size: clamp(18px, 1.92vw, 37px) !important;
  }
  .project-card__content {
    padding-top: 8px;
    width: 100%;
  }

  .project-card__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card__featured {
    min-height: 310px;
  }

  .project-card__icon,
  .project-card__close {
    width: 58px;
    height: 58px;
    font-size: 44px;
  }
  .project-card__featured img
  {
    min-height: inherit;
  }
}
