.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    background-color: #fff;
}

.gallery-item img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.gallery-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.gallery-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}


.galeri-detail {
    max-width: 1000px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.judul-galeri {
    font-size: 28px;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

.gallery-caption {
    padding: 15px;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    text-align: justify;
    background-color: #fafafa;
    flex-grow: 1;
}

.no-data {
    text-align: center;
    color: #999;
    font-size: 18px;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
    font-size: 16px;
}

.back-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}