@media (min-width:1367px) and (max-width:1920px) {

/* --- Reset & Header tetap sama seperti kode Anda --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#header {
    width: 100%;
    height: 40px;
    background-image: url('../../main_images/001_001_blank20.jpg');
    background-size: cover;
}

#linehead2 { height: 3px; background: #09c; }
#linehead3 { height: 2px; background: #999; }
#linehead4 { height: 1px; background: #ccc; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container Utama --- */
.wrap {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*border: 5px solid red;*/
}

/* --- 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%;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}
     
/* --- PERBAIKAN: Menghapus float dan letakkan tinggi fleksibel --- */
.leftbox {
    flex: 0 0 10%; /* Lebar tetap 20% */
    /*background-color: skyblue;*/
    min-height: 40vh; /* Opsional: batas tinggi minimum */
    border-right: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leftbox img {
    width: 100px;
    height: 100px;
    margin-top: 12px;
    border: 2px solid #ccc;
    border-radius: 15px;
    float: left;
}

.middlebox {
    flex: 0 0 80%; /* Lebar tetap 70% */
    /*background-color: yellow;*/
    min-height: 40vh;
}

    
/* --------| Galeri Foto |-------- */

.gallery-container {
    width:98%;
    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: 14vw;
    height: 20vw;
    border-radius: 8px;
    background: #eee;
    margin-left:1vw;
    margin-top:5px;
}

.frame-outer {
    width: 14vw;
    height: 14vw;
    background: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Frame dalam 280 x 280 */
.frame-inner {
    width: 13vw;
    height: 13vw;
    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:13vw;
    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 |-------- */


/* PAGING */
.paging {
    margin-top: 1vh;
    width: 100%;
    height: 6vh; /* 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) */
    box-sizing: border-box;
    background-color: #eee;
    min-height: 40vh;
}

/* 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(10%); }
.middlebox { flex: 0 0 calc(80%); }
.rightbox  { flex: 0 0 calc(10%); }



    
.connav {
    width: 100%;
    background: #eee;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}


.pagenav {
        width: 100%;
        height: 30vh;
        margin-top: 20vh;
        margin-left: 1.5vh;
        /* background: #09c; */
        box-sizing: border-box;
    }

    .pgmenu {
        width: 100%;
        height: 30vh;
        /* background: #eee; */
        list-style: none;
    }
    
        
    .pgmenu li img {
        width: 100px;
        height: 100px;
        margin-top: 12px;
        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;
}

}