@media (min-width:1025px) and (max-width:1366px) {

    * {
        margin: 0;
        padding: 0;
        font-family: Arial, Helvetica, sans-serif;
    }
    
    .teks-responsif {
        font-size: 16px;
    }

    .wrap {
        width: 1300px;
        height: 100vh;
        margin-left: auto;
        margin-right: auto;
        /*border: 5px solid black; */
    }

    #header {
        width: 1300px;
        height: 40px;
        background-image: url('../../main_images/001_001_blank20.jpg');
    }

    #linehead1 {
        width: 1300px;
        height: 5px;
        background: #035;
    }

    #linehead2 {
        width: 1300px;
        height: 3px;
        background: #09c;
    }

    #linehead3 {
        width: 1300px;
        height: 2px;
        background: #999;
    }


/* --- PERBAIKAN: Kontainer Konten Utama menjadi Row --- */
.content {
    display: flex;
    flex-direction: row; /* Mengatur susunan box ke samping (3 kolom) */
    flex: 1;            /* Mengisi sisa ruang kosong antara header & footer */
    width: 100%;
    height: 90vh;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* Catatan: Karena ada gap: 20px, total persentase (20% + 70% + 10%) + gap bisa sedikit melebihi batas jika tidak menggunakan calc. 
   Alternatif terbaik untuk flex-basis yang akurat dengan gap: 
    .leftbox   { flex: 0 0 calc(20% - 13.3px); }
    .middlebox { flex: 0 0 calc(70% - 6.6px); }
    .rightbox  { flex: 0 0 calc(10% - 21px); }
*/
     
/* --- PERBAIKAN: Menghapus float dan letakkan tinggi fleksibel --- */
.leftbox {
    flex: 0 0 10%; /* Lebar tetap 20% */
    border-right: 1px solid #ccc;
    /*background-color: skyblue;*/
    min-height: 30vh; /* Opsional: batas tinggi minimum */
}

.middlebox {
    flex: 0 0 80%; /* Lebar tetap 70% */
    /*background-color: yellow;*/
    min-height: 30vh;
}

    
/* --------| Galeri Foto |-------- */

.gallery-container {
    width:99%;
    height:80vh;
    display: flex;
    flex-wrap: wrap;
    /*justify-content: center;*/
    margin-left: 5px;
    margin-top: 5px;
    /*background: skyblue;*/
}

/* Frame luar 150 x 150 */
.frame-foto{
    width: 13vw;
    height: 18vw;
    border-radius: 8px;
    background: #eee;
    margin-left:1.7vw;
    margin-top:5px;
    /*background: red;*/
}

.frame-outer {
    width: 13vw;
    height: 13vw;
    background: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Frame dalam 280 x 280 */
.frame-inner {
    width: 12vw;
    height: 12vw;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.frame-text {
    width:12vw;
    height:4vw;
    margin-top:0.5vw;
    margin-left:0.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*background: yellow;*/
}

/* --------| TUTUP Galeri Foto |-------- */


/* --------| TUTUP Galeri Foto |-------- */


/* PAGING */
.paging {
    margin-top: 1vh;
    width: 100%;
    height: 5vh; /* Dinaikkan sedikit agar muat dengan font 24pt */
    /*background: yellow;*/
    
    /* Menggunakan Flexbox untuk meratakan semua item ke tengah */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Mengatur jarak antar tombol secara konsisten */
}


.page-number {
    /* Hapus float: left; agar Flexbox bekerja */
    min-width: 5vw; /* Menggunakan min-width agar fleksibel jika angka ratusan */
    height: 5vh;
    border: 1px solid #aaa;
    padding: 0 12px; /* Mengurangi padding atas/bawah karena sudah diatur line-height */
    background: #eee;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 24pt;
    font-weight: bold;
    margin-left:7px;
}


.page-number.active {
    background: #3f8efc;
    color: #fff;
    border-color: #3f8efc;
}

.page-number:hover {
    background-color: #f00; /* Merah (sesuai kode hex Anda) */
    color: #fff;
}

/* Menyelaraskan ukuran tombol navigasi (Kiri/Kanan) */
.page-btn {
    width: 50px;  /* Disamakan ukurannya agar proporsional */
    height: 50px;
    font-size: 24pt;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #aaa;
    background: #eee;
    border-radius: 5px;
    cursor: pointer;
}


 /*Tombol arrow (next & prev) */
.page-btn.arrow img {
    width: 40px;
    height: 40px;
    /*margin-bottom:-15px;*/
}



.page-info {
    width: 100%;
    height: 3vh;
    /*background: yellow;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- paging -------- */


.rightbox {
    flex: 0 0 10%; /* Mengisi sisa ruang (atau ganti jadi flex: 0 0 10% jika ingin total 100% pas minus gap) */
    background-color: #eee;
    min-height: 30vh;
    border-left: 1px solid #ccc;
    box-sizing: border-box;
}

    
.connav {
    width: 100%;
    background: #eee;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}


.pagenav {
        width: 100%;
        height: 50vh;
        margin-top: 10vh;
        margin-left: 1vw;
        /* background: #09c; */
    }

    .pgmenu {
        width: 100%;
        height: 50vh;
        /* background: #eee; */
        list-style: none;
    }
    
        
    .pgmenu li img {
        width: 80px;
        height: 80px;
        margin-top: 1vh;
        border: 2px solid #ccc;
        border-radius: 15px;
        float: left;
    }



.footsection {
    width: 100%;
}

.navigasi { height: 19px; background: #035; width: 100%; }
.linebar { height: 3px; background: #09c; width: 100%; }
.copyright {
    background: #222;
    color: grey;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
}

}