/* Project Block — loaded via block.json only on pages that use the block. */

.project-block {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh; /* fallback for browsers without dvh */
  height: 100dvh;
  overflow: hidden;
  background-color: #000000;

	@media(width <= 992px) {
		max-height: 630px;
	}

}

/* darken the bottom so the text stays legible on light images */
.project-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

/* fixed background gives the parallax: the image stays put while the block scrolls over it */
.project-block__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* touch devices (notably iOS) don't support fixed backgrounds, so scroll normally there */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .project-block__image {
    background-attachment: scroll;
  }
}

.project-block__content {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 60px;
}

.project-block__title,
.project-block__description,
.project-block__link {
  font-family: var(--wp--preset--font-family--aeonik);
  font-style: normal;
  font-weight: 300;
  color: #FFFFFF;
}

.project-block__title {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 120%;
  letter-spacing: -0.02em;
}

.project-block__description {
  margin: 0;
  max-width: 700px;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: -0.02em;
}

.project-block__link {
  display: inline-block;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: -0.02em;
  margin-top: 80px;
  position: relative;
  text-decoration: none;

  &::before {
    content: '';
    background-color: currentColor;
    bottom: 0px;
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
    width: 100%;
  }

  &:hover::before,
  &:focus-visible::before {
    transform: scaleX(1);
    transform-origin: left;
  }

}

/* .project-block__link:hover {
  opacity: 0.6;
} */

.project-block-placeholder {
  padding: 40px;
  border: 1px dashed #858C92;
  color: #000000;
  font-family: var(--wp--preset--font-family--aeonik);
}