/* Halaman galeri: semua class diawali mg- agar tidak mengubah modul lain. */
.mg-hero{background:linear-gradient(115deg,#103a2a 0%,#1e6b4c 64%,#3b845e 100%);border-radius:25px;color:#fff;padding:31px 34px;position:relative;overflow:hidden;box-shadow:0 18px 35px rgba(13,58,43,.13)}
.mg-hero:after{content:"";width:260px;height:260px;border:55px solid rgba(255,255,255,.05);position:absolute;right:-75px;top:-155px;border-radius:50%;pointer-events:none}
.mg-eyebrow{font-size:11px;font-weight:850;letter-spacing:.14em;color:#d4f0df}.mg-hero h2{margin:9px 0 7px;font-size:clamp(24px,3vw,36px);font-weight:900}.mg-hero p{max-width:670px;font-size:13px;line-height:1.7;color:#e2f2e9}.mg-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.mg-stats>div{min-width:122px;padding:12px 16px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.09);border-radius:14px}.mg-stats b{display:block;font-size:23px}.mg-stats span{display:block;font-size:11px;color:#e4f1e8}
.mg-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0 17px;padding:17px;background:#fff;border:1px solid #dfe9e3;border-radius:18px;box-shadow:0 10px 20px rgba(14,50,32,.04)}.mg-filter-field{display:flex;flex-direction:column;min-width:180px;flex:1;gap:5px}.mg-filter-field label{font-size:11px;font-weight:800;color:#4b6455}.mg-filter-field select{height:40px;border:1px solid #cddbd2;border-radius:9px;padding:6px 10px;background:#fff;color:#173c2c}.mg-filter-button,.mg-reset{height:40px;min-width:120px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:0 14px;font-size:12px;font-weight:850;cursor:pointer}.mg-filter-button{background:#1e6b4c;color:#fff;border:1px solid #1e6b4c}.mg-reset{color:#246647;border:1px solid #b9d2c1;background:#f7fbf8}.mg-info-line{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:#64786c;margin:0 2px 13px}.mg-info-line strong{color:#164d35}
.mg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.mg-card{appearance:none;-webkit-appearance:none;text-align:left;display:flex;flex-direction:column;border:1px solid #dce8e0;background:#fff;border-radius:18px;padding:0;min-width:0;overflow:hidden;cursor:zoom-in;box-shadow:0 10px 25px rgba(27,71,44,.06);transition:transform .18s,box-shadow .18s}.mg-card:hover,.mg-card:focus-visible{transform:translateY(-3px);box-shadow:0 18px 34px rgba(27,71,44,.15);outline:2px solid #a9ceb8;outline-offset:0}.mg-photo{width:100%;height:185px;background:#edf2ed;display:block;overflow:hidden}.mg-photo img{height:100%;width:100%;object-fit:cover;transition:transform .3s}.mg-card:hover img{transform:scale(1.05)}.mg-body{display:grid;align-content:start;padding:13px 14px 15px;gap:5px;min-height:123px}.mg-tag{justify-self:start;border-radius:999px;background:#e6f3e9;color:#216245;font-size:10px;font-weight:800;padding:4px 9px}.mg-body strong{font-size:13px;line-height:1.45;color:#173e2a}.mg-site{font-size:11px;font-weight:700;color:#4f735f}.mg-date{font-size:10px;line-height:1.4;color:#7d8e84}.mg-empty{text-align:center;padding:50px 20px;border:1px dashed #b9d5c3;border-radius:18px;background:#f9fcfa}.mg-empty span{font-size:35px}.mg-empty h3{font-size:17px}.mg-empty p,.mg-footnote{font-size:12px;line-height:1.6;color:#6f7e76}.mg-footnote{margin-top:13px}.mg-pages{display:flex;align-items:center;justify-content:center;gap:18px;margin:25px 0}.mg-pages a{padding:10px 14px;border:1px solid #c5ddcc;border-radius:9px;background:#fff;font-size:12px;font-weight:800;color:#1d6345}.mg-pages strong{font-size:12px}
.mg-lightbox[hidden]{display:none}.mg-lightbox{position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;padding:16px}.mg-shade{position:absolute;inset:0;background:rgba(3,16,11,.88)}.mg-modal{position:relative;width:min(100%,1060px);max-height:96vh;border-radius:18px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 22px 80px rgba(0,0,0,.45)}.mg-modal-head{height:50px;flex-shrink:0;padding:9px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef0ee;color:#1c4730;font-size:13px}.mg-close{font-size:22px;cursor:pointer;border:0;background:#edf3ed;padding:4px 9px;border-radius:10px;color:#28573c}.mg-modal-photo{background:#101811;flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:10px 8px}.mg-modal-photo img{object-fit:contain;max-height:min(64vh,680px);min-height:100px;max-width:calc(100% - 98px)}.mg-arrow{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);border-radius:9px;padding:12px 10px;color:#fff;cursor:pointer}.mg-arrow:hover{background:rgba(255,255,255,.25)}.mg-modal-info{padding:13px 19px 18px;overflow-y:auto}.mg-modal-counter{font-size:11px;color:#668470;font-weight:800}.mg-modal-info h3{font-size:16px;margin:4px 0 6px;color:#173d2a}.mg-modal-info p{font-size:12px;color:#53675b;margin:5px 0;line-height:1.5}.mg-modal-info a{font-size:12px;display:inline-block;margin-top:5px;font-weight:850;color:#176b43}
@media(max-width:1160px){.mg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:830px){.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-hero{padding:25px}.mg-stats>div{min-width:110px}}
@media(max-width:500px){.mg-grid{gap:9px}.mg-photo{height:135px}.mg-body{padding:10px;min-height:130px}.mg-body strong{font-size:12px}.mg-date{font-size:9px}.mg-hero{padding:20px;border-radius:18px}.mg-hero h2{font-size:23px}.mg-filter-field{min-width:100%}.mg-filter-button,.mg-reset{flex:1}.mg-modal-info{padding:10px}.mg-modal-photo img{max-width:calc(100% - 65px)}.mg-arrow{padding:10px 7px}}
