h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 1.53em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    text-align:center;
}


:root {
  --bg: #f0f2f5;
  --text: #000;
  --card: #fff;
  --border: #ddd;
  --link: #262626;
  --link-hover: #000;
  --header-bg: #fff;
  --header-border: #ddd;
  /**
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  **/
}

body.dark {
  --bg: #000;
  --text: #f0f0f0;
  --card: #1e1e1e;
  --border: #333;
  --link: #ccc;
  --link-hover: #fff;
  --header-bg: #000;
  --header-border: #333;
 /** --shadow-light: rgba(255, 255, 255, 0.1);
  --shadow-hover: rgba(255, 255, 255, 0.15);
  **/
}

body, html {
  margin: 0;
  padding: 0;
  font-family: Canva Sans, Helvetica Neue, Roboto, -apple-system, blinkmacsystemfont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  z-index: 999;
  box-shadow: 0 2px 4px var(--shadow-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: auto;
}

.header-menu a, .header-menu button {
    margin-left: 15px;
    text-decoration: none;
    color: var(--link);
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
}

.header-menu button:hover,
.header-menu a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.menu-toggle {
  font-size: 20px;
}

/* Font Awesome icon in toggle button */
.menu-button i {
  font-size: 18px;
}

/* Sidebars */
.left-sidebar, .right-sidebar, .desktop-right-sidebar {
    width: 300px;
    background: var(--card);
    padding: 20px;
    box-sizing: border-box;
    position: sticky;
    top: 74px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    border-color: transparent;
    
}

.left-sidebar ul, .right-sidebar ul, .desktop-right-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-bottom: 40px;
}

.left-sidebar li,
.right-sidebar li,
.desktop-right-sidebar li {
  margin-bottom: 10px;
}

.left-sidebar a,
.right-sidebar a,
.desktop-right-sidebar a {
  color: var(--link);
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.left-sidebar a:hover,
.right-sidebar a:hover,
.desktop-right-sidebar a:hover {
  text-decoration: underline;
  color: var(--link-hover);
  background-color: rgba(0, 0, 0, 0.05);
}

.left-sidebar a.selected,
.right-sidebar a.selected,
.desktop-right-sidebar a.selected {
  font-weight: bold;
  color: var(--link-hover);
}

/* Main content */
.main-content {
    flex: 1;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 53px;
}

/* Container layout */
.container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Hide sidebars on mobile */
@media (max-width: 768px) {
  .left-sidebar,
  .right-sidebar,
  .desktop-right-sidebar {
    display: none !important;
  }

  .main-content {
    padding: 0px;
  }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0px;
    }
}

/* Masonry post grid */
#posts-grid {
    column-count: 1;
    column-gap: 1rem;
    padding: 0px;
}

@media (max-width: 900px) {
  #posts-grid {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  #posts-grid {
    column-count: 1;
  }
}

.post {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  background: var(--card);
  box-shadow: 0 1px 3px var(--shadow-light);
  transition: box-shadow 0.3s;
  border-radius: 4px;
}
.post:hover {
  box-shadow: 0 5px 15px var(--shadow-hover);
}

.post-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(110%);

}

/* Overlay on images */
.overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-info-top {padding:15px;}
    .post-info-bottom {padding:15px;}