/* LUMEN Works Manager 0.6.5 — public project description area. */
.lumen-work-card--manager .lwm-description-wrap{
  position:relative;
  margin:0;
  padding:0 0 24px;
}
.lumen-work-card--manager .lwm-work-description{
  box-sizing:border-box;
  margin:0;
  line-height:1.5;
  height:7.5em; /* exactly five text lines */
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:5;
  line-clamp:5;
}
.lumen-work-card--manager .lwm-description-wrap.is-expanded .lwm-work-description{
  height:auto;
  min-height:7.5em;
  display:block;
  overflow:visible;
  -webkit-line-clamp:unset;
  line-clamp:unset;
}
.lumen-work-card--manager .lwm-description-toggle{
  display:none;
  position:absolute;
  right:0;
  bottom:0;
  width:26px;
  height:22px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:20px;
  line-height:20px;
  cursor:pointer;
  opacity:.62;
}
.lumen-work-card--manager .lwm-description-toggle:hover,
.lumen-work-card--manager .lwm-description-toggle:focus-visible{
  opacity:1;
}
.lumen-work-card--manager .lwm-description-toggle:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
  border-radius:4px;
}
.lumen-work-card--manager .lwm-description-wrap.has-overflow .lwm-description-toggle{
  display:block;
}
.lumen-work-card--manager .lwm-description-wrap.is-expanded .lwm-description-toggle span{
  display:inline-block;
  transform:rotate(180deg);
}


/* 0.6.1 — card info order: year, address, title, glazing area. */
.lumen-work-card--manager .lwm-glazing-area{
  margin:-3px 0 13px;
  color:#7a7f78;
  font-size:12px;
  line-height:1.4;
}
.lumen-work-card--manager .lwm-glazing-area strong{
  color:#4d534d;
  font-weight:700;
}

/* 0.6.3 — works photos: show uploaded images cleanly and at full display quality.
   Scope is only the public «Наши работы» page; photo files and gallery data are untouched. */
.works-preview-page .lumen-work-card__gallery:before{
  content:none !important;
  display:none !important;
  background:none !important;
  opacity:0 !important;
}
.works-preview-page .lumen-work-card__gallery img{
  filter:none !important;
  opacity:1 !important;
}


/* 0.6.4 — obvious description control instead of a subtle arrow. */
.lumen-work-card--manager .lwm-description-wrap{
  padding-bottom:30px;
}
.lumen-work-card--manager .lwm-description-toggle{
  display:none;
  position:absolute;
  left:0;
  right:auto;
  bottom:2px;
  width:auto;
  height:auto;
  min-height:22px;
  padding:2px 0;
  border:0;
  background:transparent;
  color:#536259;
  font:600 11px/1.3 Arial,sans-serif;
  letter-spacing:.02em;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
  opacity:.9;
}
.lumen-work-card--manager .lwm-description-toggle:hover,
.lumen-work-card--manager .lwm-description-toggle:focus-visible{
  color:#8d7137;
  opacity:1;
}
.lumen-work-card--manager .lwm-description-wrap.has-overflow .lwm-description-toggle{
  display:inline-flex;
  align-items:center;
}
.lumen-work-card--manager .lwm-description-wrap.is-expanded .lwm-description-toggle span{
  transform:none;
}


/* 0.6.5 — requested Works-card cleanup only.
   - Remove the redundant “Рассчитать похожую” action from project cards in PHP/JS output.
   - Give “Читать далее” a little breathing room from the card edge.
   - On phones, match the desktop 4:3 preview proportion so project photos are less cropped.
*/
.lumen-work-card--manager .lwm-description-wrap{
  padding-bottom:36px;
  margin-bottom:2px;
}
.lumen-work-card--manager .lwm-description-toggle{
  left:1px;
  bottom:6px;
}
@media(max-width:640px){
  .works-preview-page .lumen-work-card--manager .lumen-work-card__photo,
  .works-preview-page .lumen-work-card--manager .lumen-work-card__gallery{
    aspect-ratio:4/3!important;
    min-height:0!important;
  }
}
