p.posted {
  display: block;
  font-size: 0.8em;
  color: rgba(89, 89, 89, 0.7);
}

p.posted::before {
  content: '📅 ';
}

@font-face {
  font-family: "PowerChocolate";
  src: local("Power Chocolate"),
    url("fonts/PowerChocolate.woff2") format("woff2"),
    url("fonts/PowerChocolate.woff") format("woff"),
    url("fonts/PowerChocolate.otf") format("otf"),
    url("fonts/PowerChocolate.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

a:link,
a:visited {
  color: #705949;
}

a:hover {
  background-color: antiquewhite;
}

h2 {
  text-align: center;
  color: #4a3d35;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #241c1c;
  background-color: #f8f4f1;
}

header {
  text-align: center;
  width: 100%;
  background-color: #e3dbdb;
  margin-left: auto;
  margin-right: auto;
}

main div.content {
  padding: 1em;
}

header h1 {
  font-family: PowerChocolate, Arial, sans-serif;
}

small.date {
  display: block;
}

main {
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5em;
  font-size: 1.1em;
  position: relative;
  background-color: #fff;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;

}

footer {
  color: #4a3d35;
  text-align: center;
  padding: 1em;
  bottom: 0;
}

nav {
  display: flex;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Display the links inside the navigation bar */
nav div {
  flex: 1;
  text-align: center;
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

div.update-navigation {
  margin-top: 0.83em;
  display: flex;
}

div.update-navigation>h2 {
  margin: 0;
}

div.update-navigation>div {
  flex: 1;
  text-align: center;
}

.figure-container {
  display: flex;
  justify-content: space-around;
  /* This will space your images evenly */
  align-items: flex-start;
  /* This will align items to the top */
  margin-bottom: 1em;
}

nav div.current {
  background-color: #f8f4f1;
  color: #fff;
}

/*#4a3d35*/
nav div.current a {
  text-decoration: none;
  background-color: #fff;
}

div.overlap {
  position: absolute;
  top: 0;
  height: 4px;
  width: 100%;
  background-color: #f8f4f1;
  /* Replace with your color */
  /* If you need to ensure it's above other elements inside the container */
  z-index: 1;
}

nav div {
  box-shadow: 2px -1px 4px rgba(0, 0, 0, 0.2);
}

nav div a {
  padding: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  text-decoration: none;
  display: block;
  width: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

nav div a:hover {
  text-decoration: none;
  background-color: #4a3d35;
  color: #fff;
}

/* Media query for mobile screens */
@media screen and (max-width: 600px) {
  nav {
    flex: 100%;
    flex-direction: column;
    /* This will stack them vertically */
  }

  nav div a {
    padding: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  nav div.current a {
    text-decoration: none;
    background-color: #4a3d35;
    color: #fff;
  }
}

.header-image {
  background-image: image-set(url("header-image.webp") type("image/webp"),
      url("header-image.jpg") type("image/jpeg"));

  background-size: cover;
  background-position: top;
  height: 300px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.header-text {
  text-transform: uppercase;
  font-size: 3em;
  margin: 0.25em;
  color: #28170b;
}

figure {
  border: 1px solid #ccc;
  /* Optional border */
  border-radius: 4px;
  padding: 10px;
  margin: 0 auto;
  /* Center the figure block */
  max-width: 300px;
  /* Set a max-width to maintain a readable caption width */
  text-align: center;
  /* Center the content */
}

figure img {
  width: 100%;
  /* Make image fill the figure element */
  height: auto;
  /* Maintain aspect ratio */
  display: block;
  /* Remove inline-block spacing */
  margin: 0 auto;
  /* Center the image within the figure */
}

figure video {
  width: 100%;
  /* Make image fill the figure element */
  height: auto;
  /* Maintain aspect ratio */
  display: block;
  /* Remove inline-block spacing */
  margin: 0 auto;
  /* Center the image within the figure */
}

figcaption {
  margin-top: 5px;
  /* Space out caption from image */
  font-style: italic;
  /* Optional styling */
  color: #555;
}

img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/*div.header-image img {
  position: absolute;
  max-width: 26px;
  bottom: 0;
  right: 0;
}
*/

.header-image a {
  display: flex;
  height: 24px;
  width: 28px;
  /*  margin-left: 4px;*/
}

.header-image img {
  width: 28px;
  height: 100%;
  display: block;
  object-fit: cover;
}