.home-gallery{max-width:1180px;margin:70px auto 0;padding:0 24px 80px}.gallery-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.gallery-heading h2{font:800 32px Manrope;margin:7px 0;color:#101f4e}.gallery-heading>p{color:#65708a}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gallery-item{background:#fff;border:1px solid #dfe3ec;border-radius:6px;overflow:hidden}.gallery-photo-wrap{position:relative}.gallery-photo-button{position:relative;display:block;width:100%;padding:0;border:0;background:#e8ebf2;overflow:hidden}.gallery-photo-button img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-photo-button>span{position:absolute;right:10px;bottom:10px;padding:6px 9px;border-radius:4px;background:#101f4ee6;color:#fff;font-size:11px;font-weight:800}.gallery-delete-button{position:absolute;z-index:2;right:10px;top:10px;width:36px;height:36px;border:1px solid #fff8;border-radius:50%;background:#e31d36;color:#fff;font-size:22px;font-weight:800;line-height:1}.gallery-caption{padding:13px 15px}.gallery-caption b{display:block;color:#101f4e}.gallery-caption span{font-size:12px;color:#65708a}.gallery-empty{grid-column:1/-1;padding:45px;text-align:center;border:1px dashed #c7cedc;color:#65708a}.gallery-upload{border:2px dashed #c7cedc;padding:30px;text-align:center;background:#fff}.gallery-upload h3{margin:0 0 8px}.gallery-upload p{color:#65708a}.gallery-upload-actions,.gallery-camera-actions{display:flex;justify-content:center;gap:10px;margin-top:16px}.upload-progress{margin-top:12px;color:#e31d36;font-weight:700}.gallery-camera-modal{width:min(720px,100%)}.gallery-camera-frame{background:#071126;aspect-ratio:16/9;overflow:hidden;border-radius:6px}.gallery-camera-frame video{width:100%;height:100%;object-fit:cover}.gallery-capture-strip{display:flex;gap:8px;overflow-x:auto;min-height:76px;padding:10px 0;align-items:center;color:#65708a;font-size:12px}.gallery-capture-thumb{position:relative;flex:0 0 72px;width:72px;height:72px}.gallery-capture-thumb img{width:100%;height:100%;object-fit:cover;border-radius:4px}.gallery-capture-thumb button{position:absolute;right:2px;top:2px;width:22px;height:22px;border:0;border-radius:50%;background:#e31d36;color:#fff;font-weight:800}.gallery-camera-actions button:disabled{opacity:.5;cursor:not-allowed}.gallery-viewer-open{overflow:hidden}.gallery-viewer{position:fixed;z-index:110;inset:0;display:grid;place-items:center;padding:24px;background:#071126ed}.gallery-viewer-stage{position:relative;width:min(1180px,100%);height:min(90vh,850px);display:grid;grid-template-rows:minmax(0,1fr) auto;background:#fff;box-shadow:0 20px 70px #0008}.gallery-viewer-image{width:100%;height:100%;min-height:0;object-fit:contain;background:#070b15}.gallery-viewer-close{position:absolute;z-index:3;right:14px;top:14px;width:44px;height:44px;border:1px solid #ffffff66;border-radius:50%;background:#071126cc;color:#fff;font-size:30px;line-height:1}.gallery-viewer-count{position:absolute;z-index:2;left:18px;top:18px;padding:8px 12px;border-radius:4px;background:#071126cc;color:#fff;font-weight:800}.gallery-viewer-nav{position:absolute;z-index:2;top:45%;width:48px;height:58px;border:1px solid #ffffff55;background:#071126aa;color:#fff;font-size:40px;line-height:1}.gallery-viewer-nav.previous{left:14px}.gallery-viewer-nav.next{right:14px}.gallery-viewer-info{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px}.gallery-viewer-info b,.gallery-viewer-info span{display:block}.gallery-viewer-info span{margin-top:4px;color:#65708a;font-size:12px}.gallery-viewer-actions{display:flex;gap:10px}.btn-danger{background:#fff;color:#b2162d;border-color:#e31d36}@media(max-width:850px){.gallery-heading{display:block}.gallery-grid{grid-template-columns:1fr}.home-gallery{margin-top:45px}.gallery-upload{padding:22px 16px}.gallery-upload-actions,.gallery-camera-actions{flex-direction:column}.gallery-camera-modal{padding:20px}.gallery-camera-frame{aspect-ratio:3/4}.gallery-viewer{padding:0}.gallery-viewer-stage{width:100%;height:100%;grid-template-rows:minmax(0,1fr) auto}.gallery-viewer-nav{top:auto;bottom:150px}.gallery-viewer-info{align-items:stretch;flex-direction:column;padding:13px 16px}.gallery-viewer-actions{display:grid;grid-template-columns:1fr 1fr}.gallery-viewer-info .btn{width:100%}}
.gallery-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gallery-admin-status{padding:40px;text-align:center;color:#65708a;background:#fff;border:1px dashed #c7cedc}@media(max-width:850px){.gallery-admin-grid{grid-template-columns:1fr}}

/* Galeri utama: paparkan keseluruhan foto dan benarkan navigasi kiri/kanan. */
.home-gallery{max-width:1460px}
.gallery-heading{gap:24px}
.gallery-heading-actions{display:flex;align-items:center;gap:18px}
.gallery-heading-actions p{margin:0;color:#65708a}
.gallery-slider-controls{display:flex;gap:8px}
.gallery-slider-controls button{width:44px;height:44px;border:1px solid #dfe3ec;border-radius:50%;background:#fff;color:#101f4e;font-size:30px;line-height:1}
.gallery-slider-controls button:hover:not(:disabled){background:#101f4e;color:#fff}
.gallery-slider-controls button:disabled{opacity:.35;cursor:not-allowed}
.gallery-loading{animation:galleryPulse 1.2s ease-in-out infinite alternate}
@keyframes galleryPulse{to{opacity:.5}}
#homeGallery{display:flex;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
#homeGallery::-webkit-scrollbar{display:none}
#homeGallery .gallery-item{flex:0 0 calc((100% - 32px)/3);scroll-snap-align:start}
#homeGallery .gallery-photo-button img{object-fit:contain;background:#eef1f6}
@media(max-width:850px){.gallery-heading-actions{justify-content:space-between;margin-top:14px}.gallery-heading-actions p{font-size:13px}.gallery-slider-controls{flex:0 0 auto}#homeGallery .gallery-item{flex-basis:100%}}
