/* =========================================
   GAYA KHUSUS HALAMAN DETAIL GEDUNG & GALERI
========================================= */
.gedung-detail-section {
    padding: 160px 10% 100px 10%;
    background: #f8fafc;
}
.gedung-detail-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px auto;
}
.gedung-detail-header .section-badge {
    display: inline-block;
    padding: 8px 18px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.gedung-detail-header h2 {
    font-size: 42px;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.3;
}
.gedung-detail-header p {
    color: #111827 !important;
    font-size: 17px;
    line-height: 1.9;
}

/* Deskripsi Utama */
.gedung-info-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    margin-bottom: 60px;
}
.gedung-info-box h3 {
    font-size: 26px;
    color: #111827;
    margin-bottom: 15px;
}
.gedung-info-box p {
    color: #111827 !important;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Galeri Grid */
.galeri-title {
    text-align: center;
    font-size: 32px;
    color: #111827;
    margin-bottom: 40px;
}
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.galeri-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .4s;
    display: flex;
    flex-direction: column;
}
.galeri-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}
.galeri-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.galeri-desc {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.galeri-desc h4 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 8px;
}
.galeri-desc p {
    color: #111827 !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tombol Aksi (Google Drive Style - Hanya Detail) */
.galeri-actions {
    margin-top: auto;
}
.btn-detail {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    transition: .3s ease;
}
.btn-detail:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

/* =========================
   POP-UP (MODAL) ZOOM STYLE
========================= */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}
#modalImgContainer {
    position: relative;
    width: 90%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}
#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: .3s;
    z-index: 10;
}
.modal-close:hover {
    color: #ef4444;
}
.modal-controls {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}
.modal-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
}
.modal-controls button:hover {
    color: #93c5fd;
    transform: scale(1.1);
}

@media(max-width: 992px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 768px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }
}