.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: white;
    padding-bottom: 45px; /* Tambahkan padding untuk tanggal */
}

.gallery-caption .date {
    color: #999;
    font-size: 12px;
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-caption {
    padding: 15px;
    text-align: left;
}

.gallery-caption h3,
.gallery-caption h4,
.gallery-caption p:not(.description) {
    text-align: center;
}

.gallery-caption .description {
    text-align: justify;
}

.gallery-caption h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.gallery-caption h4 {
    color: #ff6b00;
    margin: 10px 0;
}

.gallery-caption p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.gallery-caption .date {
    color: #999;
    font-size: 12px;
    text-align: right;
    margin-top: 10px;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zoom-icon i {
    color: #ff6b00;
    font-size: 16px;
}

.zoom-icon:hover {
    background: #ff6b00;
}

.zoom-icon:hover i {
    color: white;
}

/* Overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.overlay img {
    max-width: 90%;
    max-height: 80vh;
    margin-bottom: 20px;
}

.overlay-caption {
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}