/* =========================================================
   MEDIA QUERY UNTUK LAYAR HP & TABLET (MAX-WIDTH: 768px)
   ========================================================= */
@media (max-width: 768px) {
    
    /* 1. PENYESUAIAN HERO COVER */
    .museum-hero h1 {
        font-size: 2.8rem !important; /* Mengecilkan judul utama agar muat 1-2 baris di HP */
        line-height: 1.3 !important;
    }
    
    .museum-hero p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    .btn-masuk-pameran-mega {
        padding: 14px 35px !important;
        font-size: 1.05rem !important;
    }

    /* 2. KOTAK SURAT & TEXT CONTAINER */
    .container.narrow {
        padding: 0 15px !important;
    }
    
    .letter-box {
        padding: 25px 20px !important;
    }
    
    #typedLetterMain, #typing-masterpiece {
        font-size: 0.95rem !important; /* Ukuran teks membaca yang nyaman di HP */
        line-height: 1.7 !important;
    }

    /* 3. MEMORY GALLERY FOTO (OTOMATIS JADI 1 BARIS 1 FOTO) */
    .gallery {
        grid-template-columns: 1fr !important; /* Memaksa grid hancur menjadi single column */
        gap: 25px !important; /* Memberi jarak vertikal antar foto */
        padding: 0 10px !important;
    }
    
    .gallery-item {
        margin-bottom: 10px;
    }

    /* 4. RE-DESIGN KOTAK KUIS BIAR NGGAK KEPOTONG DI HP */
    #quizBox {
        padding: 35px 20px !important; /* Padding dalam dirampingkan */
        border-radius: 24px !important;
    }
    
    #quizBox h3 {
        font-size: 1.8rem !important;
    }
    
    .quiz-question {
        font-size: 1.2rem !important;
        margin-bottom: 25px !important;
    }
    
    .btn-quiz-elegant {
        padding: 14px 20px !important;
        font-size: 0.9rem !important; /* Teks pilihan jawaban sedikit mengecil agar pas */
        border-radius: 12px !important;
    }

    /* 5. LIGHTBOX (PREVIEW FOTO SAAT DIKLIK) */
    .lightbox-content-wrapper {
        width: 90% !important; /* Lebar foto pop-up di HP dibuat maksimal */
    }
    
    .lightbox-caption {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }

    /* Penyesuaian Grid Kotak Angka "Reasons Why I Love You" di index.html */
    .grid-reasons, /* Sesuaikan dengan nama class container kotak angkamu jika berbeda */
    div[style*="grid-template-columns"] { 
        grid-template-columns: repeat(3, 1fr) !important; /* Di HP berubah jadi 3 kolom saja */
        gap: 12px !important;
        padding: 0 15px !important;
    }
}

/* =========================================================
   MEDIA QUERY TAMBAHAN UNTUK HP SANGAT KECIL (MAX-WIDTH: 480px)
   ========================================================= */
@media (max-width: 480px) {
    .museum-hero h1 {
        font-size: 2.4rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
}