:root {
    font-family: Georgia, serif;
    --link: rgb(78, 108, 198);
    border-top: 0px;
}

body {
  max-width: 1000px;
  display: flex;
}

.content {
    display: block;
    padding: 15px 30px;
    ul li p {
        margin-bottom: 0px; 
        margin-top: 0px;   
    }
}

h1 {
    font-weight: bold;
}

.linkblock {
    letter-spacing: 1px;
    font-style: revert;
}

a, a:visited, a:hover, a:active {
    outline: revert;
    color: revert;
    text-decoration: revert;
}

aside {
    position: sticky;
    top: 0;
    padding: 15px 30px;
    flex: 0 0 auto;
    border-right: 1px solid var(--lesslight);
    height: 100vh;
    ul {
        list-style: none;
        padding-left: none;
    }
}

.wrapper {
    display: flex;
    flex: 1;
    max-width: var(--width);
}

header {
    padding: 15px 30px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--lesslight);
    height: 50px;
    position: sticky;
    top: 0;
    background: var(--light);
    z-index: 9999;
    title {
        margin: 0;
    }
}

.pagination {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--semi);
    position: relative;
    width: 100%;
}

.thought-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.thought {
  flex-direction: column;
  align-items: center;
    img {
        max-width: 100%;
        border: 1px solid var(--lesslight);
        max-height: 80vh;
          object-fit: contain; /* Keeps the aspect ratio without cropping */
        display: block;
        margin: 0 auto;    
    }
    
    p {
      max-width: 765px;
      width: 100%;
    }

    p:has(img) {
      max-width: none;
      padding-left: 0px;
      padding-right: 0px;
      object-fit: contain; /* Keeps the aspect ratio without cropping */
      display: block;
      margin: 0 auto;    
    }
}


@media screen and (max-width: 600px) {
  body {
    display: block; }
  .wrapper {
    flex-direction: column-reverse;
    overflow: auto; }
  .container {
    padding: 0; }
  header,
  footer,
  aside,
  .content {
    padding: 15px;
    }
  aside {
    border-top: 1px solid var(--lesslight);
    border-right: 0px;
    ul {
        padding-left: 0px;
    }
    }
  .sidebar {
    position: relative; }
  section {
    padding: 20px 0; }
  .pagination__go-to {
    display: none; }
  .h-entry,
  .bookmarks li {
    margin-bottom: 20px !important; }
    .h-entry .date,
    .bookmarks li .date {
      margin-bottom: 5px !important; } 
}