/* CSS */

.container {
    width: 83%;
    margin: 10rem auto;
}

.projects-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3.5rem;
  margin-bottom: 10rem;

}

/* Left column */
.projects-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 0 50%;
}

.projects-title {
      margin: 0;
    font-weight: 900;
    font-size: 80px;
    color: #626262;
    /* width: 50%; */
    background: linear-gradient(90deg, #626262 0%, #44634C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.3;
    overflow: visible;
}

.projects-description {
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 1.2px;
    color: #8D8787;
    background: linear-gradient(93deg, #8D8787 0.13%, #385A40 55.75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 217px;
  height: 50px;
  padding: 0 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.60) 60%,
    rgba(62.28, 104.72, 72.61, 0.60) 100%
  );
  border-radius: 10px;
  text-decoration: none;
}

.projects-button__text {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: #FDFDFC;
}

/* Right image-stack */
.image-stack {
    height: 379px;
    position: relative;
    background: #fff;
    border-radius: 30px;
    flex: 0 46.5%;
}

.images-div {
    position: relative;
    background: white;
    border-radius: 30px;
}

.image-stack__base {
  position: absolute;
  top: -4px;
  left: 3px;
  height: 387px;
  border-radius: 30px;
}

 /* .image-stack__frame {
    width: 120px;
    height: 211px;
    left: 135px;
    top: 88px;
    position: absolute;
    border-radius: 2px;
    object-fit: cover;
} */


.image-stack-mask {
    width: 584px;
    height: 379px; 
    left: 0px;
    top: 0px;
    position: absolute;
}

/* .image-stack-creative-worl {
    width: 120px;
    left: 348px;
    position: absolute;
    border-radius: 2px;
    height: 211px;
    top: 88px;
    object-fit: cover;
} */
.image-stack__small {
  position: absolute;
  top: 88px;
  width: 120px;
  height: 211px;
  border-radius: 2px;
  object-fit: cover;
}

.image-stack__small--left  { left: 135px; }
.image-stack__small--right { left: 348px; }

.image-stack__overlay-multiply {
    width: 334px;
    height: 211px;
    left: 135px;
    top: 88px;
    position: absolute;
    mix-blend-mode: multiply;
}

/* .image-stack__overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 584px;
  height: 379px;
  mix-blend-mode: screen;
} */

.projects__filters-container {
  /* width: 1208px; */
  display: inline-flex;
  flex-direction: column;
  gap: 70px;
  align-items: flex-start;
}

.projects__filters {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.projects__filter-btn {
  min-width: 145px;
  /* height: 40px; */
  padding: 1rem;
  /* display: inline-flex;
  justify-content: center;
  align-items: center; */
  border-radius: 30px;
  background: rgba(164,164,164,0.15);
  font-size: 1.5rem;
  font-weight: 700;
  color: black;
  cursor: pointer;
  border: none;
}

.projects__filter-btn:hover {
  /* background-color: #88a68f; */
  background-color: #a2c7ab;
}

.projects__filter-btn--selected {
  background: #496E52;
  color: white;
}

.projects__divider {
    width: 85%;
    height: 1px;
    background: #D9D9D9;
    border: none;
    bottom: auto;
    margin-top: 6.5rem;
}

.projects__grid {
  /* width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 60px;
  align-content: flex-start;
  justify-content: flex-start; */

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.projects__grid > * {
  /* three items per row: each takes (100% – 2×60px) ÷ 3 */
  /* flex: 0 0 calc((100% - 120px) / 3); */
  margin-right: 60px;
  /* margin-bottom: 60px; */
  box-sizing: border-box;
  border-radius: 3rem;
  border: 1px solid rgba(73, 110, 82, 0.34);
  width: 100%;
}

.projects__grid > *:nth-child(3n) {
  margin-right: 0;
}

.project-card__image {
  width: 100%;
  height: 246px;
  object-fit: cover;

  border-radius: 3rem 3rem 0 0;
}

.project-card__content {
  padding: 16px;
  background: rgba(252.98,252.63,251.92,0.20);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card__tag {
  padding: 5px;
  background: #FDFDFC;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
}

.project-card__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: black;
}

.project-card__description {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1.35px;
  margin: 0;
  color: black;
  display: -webkit-box;            /* establish a flexbox context for the clamp */
  -webkit-box-orient: vertical;    /* flow children vertically */
  -webkit-line-clamp: 7;           /* <- this is the magic number of lines */
  overflow: hidden; 
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  background: #496E52;
  border-radius: 100px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FDFDFC;
  cursor: pointer;
  border: none;
  width: fit-content;
}

/* frosted glass container for your pills */
.project-card__tags {
  /* position: absolute;
  top: 16px;                    
  left: 50%;
  transform: translateX(-50%); */
  display: inline-flex;
  gap: 10px;
  margin: 0;
  padding-bottom: 8px;
  list-style: none;

  /* background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px); */
  border-radius: 30px;
  z-index: 1;
}

/* the pills themselves */
.project-card__tag {
  padding: 5px 12px;
  /* background: rgba(255,255,255,0.8); */
  background: white;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  color: #000;
}

/* rest of your content */
.project-card__content {
  padding: 16px;
  background: rgba(252.98, 252.63, 251.92, 0.20);
  border-radius: 0 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgb(169 0 0 / 20%);
  border-radius: 3rem 3rem 0 0;
  margin-top: -6.5rem;
  background: rgb(255 255 255 / 23%);
  backdrop-filter: blur(2px);
}


