/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styling Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3d0000;
    padding: 0px 15px;
    position: fixed;
    z-index: 999;
    width: 100%;
}

.header .logo img {
    max-height: 60px;
}

.nav ul {
    list-style-type: none;
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    font-family: 'Arial', sans-serif;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #ddd;
}

/* Styling galeri */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.main-image h2 {
    font-size: 2em;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin-bottom: 20px;
    margin-top: 50px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsif untuk desktop: 5 kolom */
@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Responsif untuk mobile: 2 kolom */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lightbox styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: white;
    padding: 10px 0;
}


/* Wrapper untuk gambar dan loading spinner */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}


/* Gambar di dalam image-wrapper */
.gallery-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover; /* Mengisi ruang dengan menjaga proporsi */
}



