/* LiteCMS v3.00. Mobile project-viewer spacing and expandable descriptions. */
/* Existing project, hotspot, before/after, and canvas behavior remains untouched. */
#postOverlay .post-copy .post-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  width:100%;margin:0;padding:0;
  appearance:none;-webkit-appearance:none;
  background:none;border:0;border-radius:0;box-shadow:none;
  font:inherit;font-size:clamp(13px,1.3vw,15px);font-weight:400;
  line-height:1.5;letter-spacing:0;text-align:left;
  color:#f2f0f0;text-shadow:inherit;
  white-space:pre-line;overflow:hidden;overflow-wrap:anywhere;
  pointer-events:auto;touch-action:pan-y;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
#postOverlay .post-copy .post-description:focus-visible{outline:2px solid #f5af9b;outline-offset:4px;border-radius:3px}
#postOverlay .post-copy .post-description.is-expanded {
  display:block;
  -webkit-line-clamp:unset;
  overflow-y:auto;
  overscroll-behavior:contain;
  max-height:min(36dvh,340px);
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
#postOverlay .post-copy .post-description-hint {
  appearance:none;-webkit-appearance:none;
  border:0;background:transparent;padding:0;cursor:pointer;text-align:left;
  display:block;
  width:max-content;
  margin-top:5px;
  color:#f5af9b;
  font-size:11px;font-weight:750;line-height:1.35;
  text-shadow:0 2px 10px #0009;
  pointer-events:auto;touch-action:manipulation;
}
/* Avoid the shared header on larger screens too. */
#postOverlay .media-caption {top:calc(var(--cory-header-bottom, 86px) + 15px);}
@media (max-width:900px){
  /* All overlay controls sit below the true measured bottom of the 2-row header. */
  #postOverlay .post-modal .modal-close {
    top:calc(var(--cory-header-bottom, 160px) + 13px)!important;
    left:14px!important;
    width:40px;height:40px;
  }
  #postOverlay .media-caption {
    position:absolute;
    top:calc(var(--cory-header-bottom, 160px) + 15px)!important;
    left:65px!important;right:14px!important;
    bottom:auto!important;
    transform:none!important;
    display:block;
    width:auto;height:auto;
    max-width:none!important;
    padding:9px 11px;
    border-radius:22px;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    text-align:left;
    font-size:10px;line-height:1.5;
    z-index:26;
    pointer-events:none;
  }
}
@media (max-width:680px){
 #postOverlay .post-copy .post-description{font-size:12px;line-height:1.48;-webkit-line-clamp:2}
 #postOverlay .post-copy .post-description.is-expanded{-webkit-line-clamp:unset;max-height:min(38dvh,270px)}
 #postOverlay .post-copy{padding-bottom:9px}
 #postOverlay .post-copy .post-description-hint{font-size:11px;margin-top:4px}
}
