/* === UMUM === */
body {
  background: #E9EADE;
  font-family: Georgia, serif;
  margin: 0;
  padding: 2em;
  color: #222;
}

h1 {
  text-align: left;
  font-size: 1.6em;
  line-height: 1em;
  margin-bottom: 0.5em;
  white-space: pre-line;
}

nav {
  text-align: left;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  margin-left: 0; /* Sejajar kiri */
  border-bottom: 1px solid #ccc; /* dipindah ke sini */
  padding-bottom: 1em;
}


nav a {
  margin-right: 50px;
  text-decoration: none;
  color: #333;
  font-weight: normal; /* Tidak bold */
  position: relative;
  padding-top: 5px;
  padding-bottom: 5px;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -7px;
  width: 4px;
  height: 4px;
  background-color: #333;
  border-radius: 50%;
}

/* === GRID GALERI === */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 5px;
  justify-content: center;
}

.grid img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* === PREVIEW / POPUP === */
#img-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#img-modal img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: none;
  border-radius: 0;
  display: block;
}

/* Tombol X */
#img-modal .close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  z-index: 1000;
  border: 1px solid #999;
  box-shadow: none;
  border-radius: 0;
}

/* === JURNAL === */
.jurnal-entry {
  border-bottom: 1px solid #ccc;
  padding: 1em 0;
  margin-bottom: 1em;
}

.jurnal-entry small {
  display: block;
  color: #666;
  font-size: 0.8em;
  text-align: right;
  margin-bottom: 0.3em;
}

.jurnal-entry p {
  font-size: 1em;
  margin: 0;
  white-space: pre-wrap;
}

form {
  margin-bottom: 2em;
}

textarea {
  width: 100%;
  max-width: 600px;
  height: 100px;
  padding: 10px;
  font-size: 1em;
  font-family: Georgia, serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

button {
  margin-top: 10px;
  padding: 0.5em 1em;
  font-size: 1em;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
