body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Menyusun sidebar dan gallery secara horizontal */
}

.sidebar {
    width: 150px;
    height: 100vh;
    background-color: #333;
    color: #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 5px solid #444;
    transition: width 0.3s, background-color 0.3s;
    overflow-y: auto;
    z-index: 1; /* Pastikan sidebar berada di atas gallery */
}

.sidebar img {
    width: 120px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.sidebar img:hover {
    transform: rotate(15deg);
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    margin-left: 20px;
    font-size: 16px;
    transition: background-color 0.3s, padding-left 0.3s;
}

.sidebar a:hover {
    background-color: #555;
    padding-left: 20px;
}

.sidebar h3 {
    margin-top: 10px;
    font-size: 14px;
    color: #f4f4f4;
    background-color: #706666;
    text-align: center;
}
.gallery {
    margin-left: 250px; /* Memberikan ruang di sebelah kiri untuk sidebar */
    display: flex;
    flex-wrap: wrap; /* Memungkinkan gambar diatur dalam baris */
    justify-content: center; /* Memusatkan gambar dalam baris */
    gap: 10px; /* Jarak antar gambar menjadi lebih kecil */
    padding: 20px;
    margin: 0 auto; /* Memusatkan gallery secara keseluruhan */
    flex-grow: 1; /* Gallery akan mengisi sisa ruang yang tersisa */
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin-bottom: 10px; /* Menambahkan jarak 10px di bawah setiap gambar */
}

.gallery-item img:hover {
    transform: scale(1.1);
}

.gallery-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

        /* Modal styling */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
			display: ;
            justify-content: center; /* Posisi modal di tengah */
            align-items: center; /* Posisi modal di tengah */
        }
        .modal-content {
		background-color: #fff;
		width: 80%; /* Mengurangi lebar untuk memastikan modal tidak terlalu lebar */
		max-width: 1400px; /* Ukuran maksimum modal */
		max-height: 80vh; /* Maksimum tinggi modal 80% dari tinggi layar */
		padding: 20px;
		margin-top:20px;
		margin-left:140px;
		border-radius: 8px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
		text-align: center;
		aspect-ratio: 1; /* Membuat rasio aspek modal seimbang */
		display: flex;
		justify-content: center;
		align-items: center;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    z-index: 2; /* Pastikan tombol close berada di atas modal */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

        /* Responsivitas */
        @media (max-width: 768px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr); /* 2 kolom pada layar kecil */
            }
        }

        @media (max-width: 600px) {
            .gallery {
                grid-template-columns: 1fr; /* 1 kolom pada layar sangat kecil */
            }
            .modal-content {
                width: 95%;
                padding: 15px;
                height: auto; /* Sesuaikan tinggi modal untuk perangkat kecil */
            }
        }
iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover; /* Menjaga agar konten di dalam iframe tetap seimbang */
}


/* Media Query untuk tampilan responsif */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 5px;
    }

    .sidebar img {
        width: 30px;
    }

    .sidebar a {
        font-size: 8px;
        padding: 3px 0;
        text-align: center;
        margin-left: 10px;
    }

    .sidebar.closed {
        display: none;
    }

    .menu-toggle {
        display: block;
        background-color: #333;
        color: white;
        padding: 10px;
        text-align: center;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
        padding: 5px;
    }
        }