/* Shared styling for the three portfolio sections in the BM Creations theme. */
:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) > .heading {
  align-items: baseline;
  margin-block-end: clamp(1.4rem, 3vw, 2.7rem);
  padding-block-end: .85rem;
  border-bottom: 1px solid var(--line, #ffffff24);
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) > .heading h2 {
  font-size: clamp(2.15rem, 4.2vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.018em;
  text-transform: none;
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) > :is(.projects, .inner-grid) {
  gap: clamp(1.15rem, 2.4vw, 2.2rem);
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) > :is(.projects, .inner-grid) > .project {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: .42rem;
  border: 1px solid #ffffff18;
  border-radius: 1.1rem;
  background: linear-gradient(150deg, #ffffff09, #ffffff02 75%);
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project-image {
  border-radius: .75rem;
  isolation: isolate;
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #08070655, transparent 34%);
  pointer-events: none;
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project .round {
  z-index: 1;
  right: .8rem;
  bottom: .8rem;
  width: 2.2rem;
  background: #151311d9;
  color: var(--paper, #f5efe5);
  border: 1px solid #ffffff52;
  font-size: .85rem;
  line-height: 1;
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project .caption {
  padding: .9rem .75rem .85rem;
  border-bottom: 0;
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project .caption h3 {
  font: 600 clamp(1rem, 1.55vw, 1.55rem)/1.25 var(--body, sans-serif);
  overflow-wrap: anywhere;
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project:focus-within {
  border-color: var(--accent, #ff7043);
}

:is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project a:focus-visible {
  outline: 2px solid var(--accent, #ff7043);
  outline-offset: 3px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project {
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  }

  :is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project:hover {
    transform: translateY(-3px);
    border-color: #ffffff38;
    box-shadow: 0 12px 28px #0004;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#projecten, .home-project-grid, section[aria-label="Projecten"]) .project-image img {
    transition: none;
    transform: none;
  }
}
