/* General */
body {
    margin: 0;
    line-height: 1.5em;
    color: #333333;
    font-family: helvetica, arial, sans-serif;
    background-color: #F7F5EE;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0;
    line-height: 1.2em;
    margin-top: 1em;
}

a:link, a:visited {
    color: #0000e0;
    text-decoration: none
}

a:hover, a:active {
    color: #0000ff;
    text-decoration: underline
}


/* Single column layout */
nav section, header section, main, footer section {
    max-width: 60em;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5em;
}


/* Navigation panel */
nav {
    background: #333333;
    border-bottom: thin solid #111111;
    line-height: 3em;
}

nav a {
    margin-right: 1em;
}

nav a:link, nav a:visited {
    color: #cccccc;
}

nav a:hover, nav a:active {
    color: #ffffff;
    text-decoration: none;
}

@media screen and (min-width: 600px) {
    nav .links {
        float: right;
    }
}

nav.year-nav{
    background: #333333;
    border-bottom: thin solid #111111;
    line-height: 3em;
    display: flex;
    justify-content: flex-end; /* Aligns all content to the right */
    width: 100%;
    margin: 0;
    padding: 0;
}

nav .yearlinks {
    float: right;
    color: #ffffff;
}


/* Footer */
footer {
    background: #f0f0f0;
    border-top: thin solid #e0e0e0;
    margin-top: 2em;
    padding: 1em 0;
    box-shadow: 0 100vh 0 100vh #f0f0f0;
    text-align: center;
}

footer section p {
    font-size: 0.8em;
}

footer a {
    margin-right: 1em;
}

footer a:last-child {
    margin-right: 0;
}


/* Posts */
article {
    margin-top: 1em;
    margin-bottom: 1em;
}

article h2 a:link, article h2 a:visited,
article h1 a:link, article h1 a:visited,
.more:link, .more:visited {
    color: #333333;
}

article h2 a:hover, article h2 a:active,
article h1 a:hover, article h1 a:active,
.more:hover, .more:active {
    color: #777777;
}

p.meta {
    margin-top: 0;
    font-size: 0.8em;
    color: #777777;
    font-style: italic;
}

p.dateplace {
    margin-top: 0;
    color: #777777;
    font-style: italic;
}

p.summary {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

div .more {
    margin-top: 0;
    font-weight: bold;
}


/* RSS */
.rss {
    padding: 0.3em 0.35em;
    border-radius: 0.25em;
    font-size: 0.75em;
    font-weight: bold;
}

.rss:link, .rss:visited, .rss:hover, .rss:active {
    color: #ffffff;
    text-decoration: none;
}

.rss:link, .rss:visited {
    background: #ff6600;
}

.rss:hover, .rss:active {
    background: #ff8822;
}

figcaption {
  text-align: center;
}

/* Container for the entire article list */
.article-list {
  display: flex;
  flex-direction: column; /* Stacks the articles vertically */
  gap: 20px;              /* Adds space between articles */
  list-style: none;
  padding: 0;
}

/* Individual article row */
.article-item {
  display: flex;          /* Makes the article a flex container */
  align-items: flex-start; /* Aligns items to the top */
  gap: 15px;              /* Space between image and text */
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Images in blog list */
.article-image {
  width:auto;
  height: 200px;          /* Fixed height for consistent look */
  object-fit: cover;      /* Prevents distortion */
}

/* Articles in blog list */
.article-content {
  flex: 1;                /* Allows text to fill remaining space */
}

/* Images in blog posts */
.blog-figure {
  justify-content: center; /* Centers horizontally */
}

.blog-image {
  /* max-width: 100%; */
  max-height: 600px;      /* Keep portrait images from being too tall */
  width: auto;
  height: auto;
  /* height: 600px;          Fixed height for consistent look */
  /* justify-content: center; /* Centers horizontally */
  /*object-fit: cover;      /* Prevents distortion */
  /* object-position: center; */
  /* margin-left: auto; */
  /* margin-right: auto; */
  display: block; 
  margin: 0 auto;
}

.pagination-container {
  display: flex;
  justify-content: space-between; /* Pushes links to opposite sides */
  align-items: center;            /* Vertically centers links if needed */
  padding: 20px;                  /* Adds space from the page edges */
}

.prev-link, .next-link {
  padding: 10px 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  width:70px;
  display: flex;
  justify-content: center;        /* Centers horizontally */
}

.prev-list-link, .next-list-link {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  padding: 10px 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  /* color: #333; */
}

.list-pagination-container {
  display: flex;
  align-items: center;            /* Vertically centers links if needed */
  justify-content: center;        /* Centers horizontally */
  padding: 20px;                  /* Adds space from the page edges */
}

.year-list {
  display: flex;
  flex-direction: column; /* Stacks years vertically */
  gap: 10px;              /* Adds space between years */
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  font-size: 1.5em;
  font-weight: bold;
}
