/* ==========================================================
   L'ART — PROJECTEN
========================================================== */

.lart-projects { background: var(--lart-background); overflow: hidden; }
.lart-projects-header h2 { font-size: 38px !important; }

.lart-project-query { width: 100%; }

.lart-projects-track {
  display: flex !important;
  gap: 1rem !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 0.5rem !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lart-projects-track::-webkit-scrollbar { display: none; }

.lart-projects-track > li {
  flex: 0 0 calc((100vw - 7rem) / 3);
  max-width: 430px;
  min-width: 290px;
  margin: 0 !important;
  scroll-snap-align: start;
}

.lart-project-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 !important;
  background: var(--lart-sand);
}

.lart-project-image,
.lart-project-image a,
.lart-project-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.lart-project-image { position: absolute; inset: 0; }
.lart-project-image img { object-fit: cover; transition: transform 0.45s ease; }

.lart-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: linear-gradient(180deg, rgba(45,66,55,0) 25%, rgba(45,66,55,.88) 100%);
  color: var(--lart-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lart-project-card:hover .lart-project-overlay { opacity: 1; }
.lart-project-card:hover .lart-project-image img { transform: scale(1.025); }

.lart-project-title,
.lart-project-title a {
  margin: 0 0 0.45rem !important;
  color: var(--lart-white) !important;
  font-family: var(--lart-font) !important;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem) !important;
  font-weight: 600;
  line-height: 1.15;
}

.lart-project-description,
.lart-project-description p {
  margin: 0 0 0.85rem !important;
  color: rgba(253,253,253,.9) !important;
  font-size: 14px;
  line-height: 1.5;
}

.lart-project-link {
  color: var(--lart-white) !important;
  font-size: 13px;
  font-weight: 600;
}

@media (hover: none), (max-width: 781px) {
  .lart-project-overlay { opacity: 1; }
  .lart-projects-track > li { flex-basis: 82vw; min-width: 0; }
}

.lart-projects-track--shortcode > .lart-project-shortcode-item {
  flex: 0 0 calc((100vw - 7rem) / 3);
  max-width: 430px;
  min-width: 290px;
  scroll-snap-align: start;
}
@media (max-width: 781px) {
  .lart-projects-track--shortcode > .lart-project-shortcode-item { flex-basis: 82vw; min-width: 0; }
}
