.lsm-page-hero--projects{
  background:
    linear-gradient(to right, rgba(0,0,0,.72), rgba(0,0,0,.38)),
    url('/lsm/assets/imgs/about_img.jpg') center center / cover no-repeat;
}

/* Grid card */
.lsm-project-card{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 16px 36px rgba(2,12,27,.08);
  transition: transform .28s ease, box-shadow .28s ease;
}

.lsm-project-card {
  
}

.lsm-project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lsm-project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(2,12,27,.16);
}

/* Media area only */
.lsm-project-card__media{
  position: relative;
  height: 240px;
  overflow: hidden;
}

.lsm-project-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.lsm-project-card:hover .lsm-project-card__media img{
  transform: scale(1.06);
}

/* Overlay */
.lsm-project-card__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(to top, rgba(0,0,0,.82) 10%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.10) 100%);
}

/* Title always visible at bottom */
.lsm-project-card__titleWrap{
  position: relative;
  z-index: 2;
  transition: transform .3s ease, opacity .3s ease;
}

.lsm-project-card__titleWrap h3{
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

/* Hover content hidden by default */
.lsm-project-card__hover{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(18px);
  transition:
    opacity .3s ease,
    transform .3s ease,
    max-height .35s ease,
    margin-top .3s ease;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.lsm-project-card__hover p{
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
}

/* Show on hover */
.lsm-project-card:hover .lsm-project-card__hover{
  opacity: 1;
  transform: translateY(0);
  max-height: 180px;
  margin-top: 12px;
}

/* Optional slight lift of title on hover */
.lsm-project-card:hover .lsm-project-card__titleWrap{
  transform: translateY(-2px);
}

/* If old body/meta/text styles still exist in HTML, hide them for this new card style */
.lsm-project-card__body{
  display: none;
}

.lsm-project-card__meta{
  display: none;
}

.lsm-project-card__text{
  display: none;
}

/* Read more button styling if using lsm-btn--light */
.lsm-btn--light{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff; 
  color: #d10000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.lsm-btn--light:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,255,255,.18);
  background: #f8fafc;
  color: #d10000;
}

/* Empty state */
.lsm-empty-state{
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 40px 24px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 40px rgba(2,12,27,.08);
}

.lsm-empty-state h3{
  margin: 0 0 10px;
  color: #0b1b3a;
  font-weight: 900;
}

.lsm-empty-state p{
  margin: 0;
  color: rgba(11,27,58,.74);
}

/* Responsive */
@media (max-width: 991px){
  .lsm-project-card__media{
    height: 220px;
  }

  .lsm-project-card__titleWrap h3{
    font-size: 16px;
  }
}

@media (max-width: 640px){
  .lsm-project-card__media{
    height: 210px;
  }

  .lsm-project-card__overlay{
    padding: 16px;
  }

  .lsm-project-card__hover p{
    font-size: 12px;
  }
}