.klusfotos { display:grid; gap:1.2rem; }
.klusfotos [hidden], .klusfoto-history[hidden] { display:none !important; }
.klusfotos-grid, .klusfoto-public { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem; }
.klusfoto { min-width:0; padding:.9rem; border:1px solid #d8dfe5; border-radius:12px; background:#f6f8f9; }
.klusfoto h3, .klusfoto p { margin:0 0 .35rem; color:#10293d; }
.klusfoto img, .klusfoto-public img { display:block; width:100%; aspect-ratio:4/3; object-fit:contain; background:#10293d; border-radius:8px; }
.klusfoto img { margin:.7rem 0; }
.klusfoto button { margin-top:.35rem; }
.klusfoto-choose { min-height:44px; background:none; color:#10293d; border:0; font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }
.klusfoto-details { display:grid; grid-template-columns:1fr 1fr; gap:.9rem; }
.klusfoto-details .field { min-width:0; }
.klusfoto-check { display:flex; align-items:flex-start; gap:.6rem; line-height:1.5; }
.klusfoto-check input { flex:none; margin-top:.22rem; width:18px; height:18px; }
.klusfoto-share { border-top:1px solid #d8dfe5; padding-top:1rem; min-width:0; }
.klusfoto-share textarea { width:100%; font:inherit; padding:.75rem; border:1px solid #8797a4; border-radius:8px; margin-bottom:.75rem; }
#klus-status { margin:0; color:#10293d; }
#klus-status:empty { display:none; }
.klusfoto-history, .klusfoto-legacy { margin-top:1rem; }
.klusfoto-history ul { padding-inline-start:1.25rem; }
.klusfoto-history li { margin-block:.5rem; }
.klusfoto-history button { margin-inline-start:.35rem; }
.klusfoto-legacy summary { cursor:pointer; font-weight:700; padding-block:.65rem; }
.klusfoto-public { margin:1rem 0; }
.klusfoto-public figure { margin:0; }
.klusfoto-public figcaption { font-weight:700; padding-block:.35rem; }
.klusfoto-project-grid { display:grid; gap:1rem; }
.klusfoto-project-grid h3, .klusfoto-project-grid p { overflow-wrap:anywhere; }
@media (max-width:700px) {
  .klusfotos-grid, .klusfoto-details { grid-template-columns:1fr; }
  .klusfoto { padding:.75rem; }
  .klusfoto img { max-height:13rem; }
  .klusfoto-actions .btn { width:100%; }
}
@media (max-width:480px) {
  .klusfoto-public { grid-template-columns:1fr; }
}
.klusfoto [data-open="album"] { display:block; }
.klusfotos .field { margin:0; }
