.danisha-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.danisha-album-card{overflow:hidden;border:1px solid #dfe8df;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(20,63,43,.06)}.danisha-album-cover{position:relative;height:225px;overflow:hidden;background:#e8f0e8}.danisha-album-cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.danisha-album-card:hover .danisha-album-cover img{transform:scale(1.025)}.danisha-album-cover span{position:absolute;right:12px;top:12px;padding:7px 10px;border-radius:999px;background:rgba(18,61,42,.88);color:#fff;font-size:.65rem;font-weight:800}.danisha-album-copy{padding:20px}.danisha-album-copy small{color:#708078;font-size:.68rem;font-weight:750}.danisha-album-copy h3{margin:8px 0;font-size:1.08rem}.danisha-album-copy p{min-height:42px;margin:0;color:#708078;font-size:.82rem;line-height:1.55}.danisha-album-copy a{display:inline-flex;margin-top:17px;color:#246b49;font-size:.76rem;font-weight:800;text-decoration:none}.danisha-album-copy a b{margin-left:7px}.danisha-public-privacy,.gallery-storage-note{display:flex;align-items:center;gap:12px;margin-top:22px;padding:14px 16px;border-radius:14px;background:#edf5ed;color:#4c6758;font-size:.78rem}.danisha-gallery-empty{grid-column:1/-1;padding:42px;border:1px dashed #b9cabd;border-radius:20px;text-align:center;color:#708078}.danisha-gallery-empty span{font-size:2rem}.danisha-gallery-empty h3{color:#244635}.danisha-resident-albums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.danisha-resident-album{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 5px 22px rgba(17,57,39,.04)}.danisha-resident-album>div{position:relative;height:210px}.danisha-resident-album img{width:100%;height:100%;object-fit:cover}.danisha-resident-album>div span{position:absolute;right:11px;top:11px;padding:6px 9px;border-radius:999px;background:rgba(20,65,44,.88);color:#fff;font-size:.6rem;font-weight:850}.danisha-resident-album section{padding:18px}.danisha-resident-album small{color:#6f8077;font-size:.67rem;font-weight:750}.danisha-resident-album h2{margin:8px 0;font-size:1.05rem}.danisha-resident-album p{margin:0;color:#708078;font-size:.8rem;line-height:1.5}.danisha-resident-album b{display:block;margin-top:14px;color:#26704c;font-size:.74rem}.danisha-album-intro{padding:18px 21px;margin-bottom:18px}.danisha-album-intro p{margin:0;color:#5e7067;line-height:1.6}.danisha-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.danisha-photo-grid a{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:#e6eee7}.danisha-photo-grid img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.danisha-photo-grid a:hover img{transform:scale(1.035)}.gallery-storage-note{margin:0 0 22px;background:#eaf4eb}.gallery-storage-note>span{display:grid;place-items:center;min-width:49px;height:39px;border-radius:10px;background:#2a704b;color:#fff;font-size:.7rem;font-weight:900}.gallery-storage-note div{display:grid;gap:3px}.gallery-storage-note small{line-height:1.45}.gallery-admin-list{display:grid;gap:14px}.gallery-admin-list>article{position:relative;display:grid;grid-template-columns:155px 1fr auto;align-items:center;gap:18px;padding:13px;border:1px solid var(--line);border-radius:17px;background:#fff}.gallery-admin-list>article>img{width:155px;height:105px;border-radius:12px;object-fit:cover}.gallery-admin-list h3{margin:6px 0}.gallery-admin-list p{margin:0 0 7px;color:var(--muted);font-size:.8rem}.gallery-admin-list small{color:var(--muted);font-size:.7rem}.gallery-upload-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gallery-upload-pair>label{display:block;padding:18px;border:1.5px dashed #a8bcae;border-radius:14px;background:#f8faf8}.gallery-upload-pair>label:first-child{background:#f1f7ed;border-color:#9dbb82}.gallery-upload-pair span{display:block;font-size:1.5rem}.gallery-upload-pair strong,.gallery-upload-pair small{display:block}.gallery-upload-pair small{margin:5px 0 12px;color:var(--muted);font-size:.7rem;line-height:1.45}.gallery-privacy-note{padding:12px 14px;border-radius:11px;background:#edf5ed;color:#506a5b;font-size:.74rem}.gallery-admin-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:22px;border-top:1px solid var(--line)}.gallery-admin-photos article{overflow:hidden;border:1px solid var(--line);border-radius:12px}.gallery-admin-photos img{width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-admin-photos form{padding:8px;text-align:center}
@media(max-width:980px){.danisha-album-grid,.danisha-resident-albums{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-admin-photos{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.danisha-album-grid,.danisha-resident-albums,.danisha-photo-grid,.gallery-upload-pair{grid-template-columns:1fr}.gallery-admin-list>article{grid-template-columns:96px 1fr}.gallery-admin-list>article>img{width:96px;height:88px}.gallery-admin-list>article>.status-pill{position:absolute;right:12px;top:12px}.gallery-admin-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.danisha-album-cover,.danisha-resident-album>div{height:205px}}

.journal-card-button{display:inline-flex;align-items:center;gap:8px;margin-top:14px;border:0;background:transparent;color:#246b49;font:800 .76rem/1.4 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer}.journal-card-button span{transition:transform .2s}.journal-card-button:hover span{transform:translateX(3px)}
.danisha-resident-album.is-new{border-color:#e9aaa7;box-shadow:0 10px 28px rgba(170,52,52,.09)}
.danisha-resident-album>div{position:relative}.gallery-new-marker{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;min-width:46px;height:25px;padding:0 9px;border-radius:999px;background:#d53d3d;color:#fff;font-size:.65rem;font-weight:900;letter-spacing:.07em;box-shadow:0 5px 14px rgba(128,26,26,.28)}

/* Tinggi kartu tetap seragam walaupun judul, ringkasan, atau jumlah digit berbeda. */
.danisha-album-grid,.danisha-resident-albums{align-items:stretch}
.danisha-album-card,.danisha-resident-album{display:flex;flex-direction:column;height:100%}
.danisha-album-copy,.danisha-resident-album>section{display:flex;flex:1;flex-direction:column}
.danisha-album-copy a,.danisha-resident-album b{margin-top:auto;padding-top:15px}

/* Tombol pendaftaran publik: tetap terlihat, ringan, dan aman untuk layar ponsel. */
.danisha-register-float{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:70;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 14px 9px 10px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:#246b49;color:#fff;text-decoration:none;box-shadow:0 10px 28px rgba(17,57,39,.26);font-size:.76rem;line-height:1;transition:transform .2s,box-shadow .2s,background .2s}.danisha-register-float span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.17);font-size:1.05rem;font-weight:500}.danisha-register-float strong{font-weight:850;white-space:nowrap}.danisha-register-float:hover{transform:translateY(-2px);background:#1d5b3d;box-shadow:0 14px 32px rgba(17,57,39,.3)}.danisha-register-float:focus-visible{outline:3px solid rgba(235,194,92,.8);outline-offset:3px}
@media(max-width:700px){.danisha-register-float{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));min-height:40px;padding:7px 11px 7px 7px;font-size:.69rem;box-shadow:0 8px 22px rgba(17,57,39,.24)}.danisha-register-float span{width:25px;height:25px}}

/* Danisha v2.27.30 — foto tangguh dan komentar khusus warga */
.danisha-album-intro{display:grid;gap:7px}.danisha-album-intro p{margin:0}.danisha-album-intro small{color:var(--muted)}
.danisha-photo-grid>a{position:relative;isolation:isolate;background:#e8f0e9;cursor:zoom-in}
.gallery-photo-comment-count{position:absolute;z-index:2;left:10px;bottom:10px;padding:6px 9px;border-radius:999px;background:rgba(14,45,31,.78);color:#fff;font-size:.65rem;font-weight:800;line-height:1;backdrop-filter:blur(5px)}
.gallery-photo-retry{display:none;position:absolute;z-index:3;inset:0;padding:20px;place-content:center;text-align:center;background:#edf3ee;color:#527062;font-size:.75rem;font-weight:800;cursor:pointer}
.danisha-photo-grid>a.photo-load-failed .gallery-photo-retry{display:grid}.danisha-photo-grid>a.photo-load-failed img{visibility:hidden}
body.gallery-viewer-open{overflow:hidden}
.gallery-viewer{position:fixed;z-index:120;inset:0;display:grid;place-items:center;padding:22px}
.gallery-viewer[hidden]{display:none}
.gallery-viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(5,24,16,.78);backdrop-filter:blur(8px)}
.gallery-viewer-dialog{position:relative;z-index:1;width:min(1120px,100%);height:min(760px,calc(100vh - 44px));height:min(760px,calc(100dvh - 44px));display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.65fr);overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.32)}
.gallery-viewer-close{position:absolute;z-index:5;right:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(16,42,29,.78);color:#fff;font-size:1.45rem;line-height:1;cursor:pointer}
.gallery-viewer-image{position:relative;min-width:0;min-height:0;display:grid;place-items:center;background:#0c1711;overflow:hidden}
.gallery-viewer-image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center}
.gallery-viewer-image img[hidden]{display:none!important}
.gallery-viewer-loading,.gallery-viewer-image-retry{position:relative;z-index:1}
.gallery-viewer-loading{color:#dbe7de;font-size:.82rem}
.gallery-viewer-image-retry{border:1px solid rgba(255,255,255,.28);border-radius:10px;padding:10px 13px;background:rgba(255,255,255,.09);color:#fff;font-weight:800;cursor:pointer}
.gallery-viewer-comments{min-width:0;min-height:0;display:grid;grid-template-rows:auto 1fr auto;background:#fff}
.gallery-viewer-comments>header{padding:23px 56px 18px 21px;border-bottom:1px solid var(--line)}
.gallery-viewer-comments>header small{color:var(--green-700);font-size:.65rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.gallery-viewer-comments>header h2{margin:5px 0 0;font-size:1.08rem;line-height:1.3}
.gallery-comment-list{min-height:0;overflow-y:auto;padding:8px 20px 18px}
.gallery-comment-item{padding:14px 0;border-bottom:1px solid #edf1ed}.gallery-comment-item:last-child{border-bottom:0}
.gallery-comment-item header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.gallery-comment-item header>div{display:grid;gap:2px;min-width:0}
.gallery-comment-item strong{font-size:.8rem}.gallery-comment-item small{color:var(--muted);font-size:.65rem}.gallery-comment-item p{margin:8px 0 0;color:#41544a;font-size:.8rem;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.gallery-comment-item header>button{border:0;background:transparent;color:#a64343;font-size:.65rem;font-weight:800;cursor:pointer}
.gallery-comment-empty{margin:0;padding:30px 10px;text-align:center;color:var(--muted);font-size:.78rem;line-height:1.55}.gallery-comment-empty.error{color:#a43b3b}
.gallery-comment-form{padding:15px 18px calc(15px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fafcfa}
.gallery-comment-form>label{display:block;margin-bottom:7px;color:var(--green-800);font-size:.68rem;font-weight:850}
.gallery-comment-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.gallery-comment-form textarea{width:100%;min-height:44px;max-height:110px;resize:vertical;padding:10px 11px;border:1px solid #cedbd1;border-radius:11px;background:#fff;font:inherit;font-size:.8rem;line-height:1.4}
.gallery-comment-form button{height:44px;border:0;border-radius:11px;padding:0 15px;background:var(--green-800);color:#fff;font-weight:850;cursor:pointer}.gallery-comment-form button:disabled{opacity:.55;cursor:wait}
.gallery-comment-form>small{display:block;margin-top:6px;color:var(--muted);font-size:.61rem}
.gallery-comments-not-ready{align-self:end;margin:18px;padding:14px;border-radius:12px;background:#fff4de;color:#765019;display:grid;gap:4px}.gallery-comments-not-ready strong{font-size:.78rem}.gallery-comments-not-ready span{font-size:.68rem;line-height:1.45}
@media(max-width:780px){
  .gallery-viewer{padding:0;place-items:stretch}.gallery-viewer-dialog{width:100%;height:100vh;height:100dvh;max-height:none;border-radius:0;grid-template-columns:1fr;grid-template-rows:minmax(280px,56vh) minmax(0,1fr);grid-template-rows:minmax(280px,56dvh) minmax(0,1fr)}
  .gallery-viewer-comments>header{padding:15px 52px 12px 16px}.gallery-viewer-comments>header h2{font-size:.95rem}.gallery-comment-list{padding:4px 16px 12px}.gallery-comment-form{padding-inline:14px}
}
@media(max-width:780px) and (orientation:landscape){
  .gallery-viewer-dialog{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);grid-template-rows:1fr}
}
