body {
  color: #fff;
}

nav {
  position: fixed !important;
  width: 100%;
  z-index: 10;
  background: #00000038;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hero-text {
  font-size: 3rem;
  font-weight: 700;
}
.context-text {
  font-size: 2rem;
}
.boxes {
  padding: 0 5% !important;
}
.boxes-1 {
  padding: 2rem;
  min-height: 300px;

  &::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url(images/boxes-2-bg.JPG);
    background-position: 70% 30%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: 0;
  }

  > * {
    position: relative;
    z-index: 1;
  }
}

.boxes-2 {
  padding: 2rem;
  min-height: 300px;

  &::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url(images/boxes-1-bg.JPG);
    background-position: 70% 30%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(3px) grayscale(20%);
    z-index: 0;
  }

  > * {
    position: relative;
    z-index: 1;
  }
}

.boxes-3 {
  padding: 2rem;
  min-height: 300px;

  &::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url(images/boxes-3-bg.JPG);
    background-position: 70% 30%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: 0;
  }

  > * {
    position: relative;
    z-index: 1;
  }
}

.boxes-4 {
  padding: 2rem;
  min-height: 300px;

  &::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url(images/boxes-4-bg.JPG);
    background-position: 70% 30%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: 0;
  }

  > * {
    position: relative;
    z-index: 1;
  }
}

.boxes-5 {
  padding: 2rem !important;
  height: fit-content !important;

  &::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url(images/boxes-5-bg.JPG);
    background-position: 70% 30%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: 0;
  }

  > * {
    position: relative;
    z-index: 1;
  }
}

figure {
  display: grid;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  max-width: 100%;
  height: 449px;
}

figure > * {
  grid-area: 1/1;
  transition: 0.4s;
  width: 100%;
  height: auto;
  object-fit: cover;
}

figure figcaption {
  display: grid;
  align-items: end;
  font-family: sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: bold;
  color: #fff; /* Solid white text */
  padding: 10%;
  background: rgba(0, 0, 0, 0.6); /* Optional: dark semi-transparent background */
  clip-path: inset(0 100% 0 0); /* Keeps the reveal effect on hover */
  margin: 1px;
  transition: clip-path 0.4s;
}

figure:hover figcaption {
  clip-path: inset(0 0 0 0); /* Reveal the caption on hover */
}

figure img {
  object-fit: cover;
  height: 100%;
}

figure:hover img {
  transform: scale(1.2);
}


.figbody {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  padding: 1rem;
  place-content: center;
  box-sizing: border-box;
}

@media only screen and (min-width: 768px) and (max-width: 850px) {

}

@media only screen and (min-width: 500px) and (max-width: 768px) {

}

@media only screen and (max-width: 500px) {
  .hero-text {
  font-size: 2rem;
  font-weight: 700;
}
.context-text {
  font-size: 1.7rem;
  font-weight : 500;
}
}

