* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  touch-action: manipulation;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.header {
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.header-bottom {
  padding: 10px;
  border-top: 1px solid #222;
}

.menu-btn {
  font-size: 22px;
  background: none;
  color: #fff;
  border: none;
}

.site-name {
  font-size: 18px;
  font-weight: bold;
}

.search-bar {
  width: 100%;
  padding: 8px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.side-nav {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: 0.3s;
  z-index: 1001;
}

.side-nav.open {
  left: 0;
}

.side-nav ul {
  list-style: none;
}

.side-nav li {
  margin: 15px 0;
}

.side-nav a {
  color: #fff;
  text-decoration: none;
}

.close-btn {
  background: none;
  color: #fff;
  font-size: 22px;
  border: none;
  margin-bottom: 20px;
}

.container {
  padding: 12px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.post {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.post h3 {
  padding: 8px;
  font-size: 14px;
  line-height: 1.3;
  flex-grow: 1;
}

.footer {
  text-align: center;
  padding: 15px;
  background: #111;
  color: #fff;
  margin-top: 20px;
}
