* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 90%;
    margin: 0 auto;
}

header {
    background-color: #d81b1b;
    color: rgb(51, 0, 255);
    padding: 20px 0;
    text-align: center;
}

header a.h2-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.gallery-section {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Membuat container utama agar konten mengisi layar secara penuh */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Mengatur tampilan container secara vertikal agar footer berada di bawah */
body {
    display: flex;
    flex-direction: column;
}

/* Section isi utama akan otomatis mengambil ruang tersisa */
.container, .gallery-section {
    flex: 1;
}

/* Mengatur posisi footer agar selalu berada di bawah */
footer {
    background-color: #d81b1b;
    color: rgb(51, 0, 255);
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
    margin-top: auto; /* Untuk memposisikan footer di bagian paling bawah */
}

footer small {
    font-size: 14px;
}

