body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f1c33, #05070c);
  color: #eaeaea;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 16px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #0b1629, #050b16);
  padding: 18px 22px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.brand small {
  color: #9aa4b2;
}

.navlinks a {
  margin-left: 18px;
  color: #4da3ff;
  text-decoration: none;
  font-weight: 500;
}

.article {
  background: linear-gradient(145deg, #0b1629, #050b16);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 28px;
}

.tag {
  font-size: 12px;
  font-weight: bold;
}

.breaking {
  color: #ff4d4d;
}

.police {
  color: #4da3ff;
}

.meta {
  color: #9aa4b2;
  font-size: 13px;
  margin-bottom: 12px;
}

.story-img {
  width: 100%;
  max-width: 100%;
  max-height: 380px;   /* 🔥 KEY LINE – controls size */
  object-fit: cover;
  border-radius: 12px;
  margin: 14px 0;
  display: block;
}

.read-more {
  color: #4da3ff;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  color: #9aa4b2;
  font-size: 13px;
  margin: 40px 0 10px;
}

/* Full story page image control */
.article .story-image {
  width: 100%;
  max-width: 900px;
  max-height: 300px;   /* 🔑 THIS fixes the problem */
  object-fit: cover;
  border-radius: 14px;
  margin: 16px auto;
  display: block;
}
.story-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}

.story-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}
