body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
  color: #333;
  direction: rtl;
  text-align: right;
}

header {
  background-color: #2e3a59;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: white;
  text-align: center;
}

.tagline {
  margin-top: 0.5rem;
  font-style: italic;
  color: #ccc;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro {
  margin-bottom: 2rem;
}

.posts .post {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
  text-align: right;
}

.posts .post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post h3 {
  margin-top: 0;
}

.post .date {
  font-size: 0.85rem;
  color: #888;
}

.post a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #2e3a59;
  text-decoration: none;
  font-weight: bold;
}

.post a:hover {
  text-decoration: underline;
}

h1 {
  color: #333;
  margin-bottom: 30px;
  text-align: right;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
  text-align: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.03);
}

.caption {
  margin-top: 5px;
  font-size: 0.9em;
  color: #555;
  direction: rtl;
  text-align: center;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox:target {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 30px;
  color: white;
  font-size: 30px;
  text-decoration: none;
}

@media (max-width: 500px) {
  .caption {
    font-size: 0.8em;
  }
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eaeaea;
}
