* {
  box-sizing: border-box;
}

body {
  font-family: "Courier Prime", monospace;
  background-color: whitesmoke;
}

#post {
    max-width: 680px;
    margin: 100px auto;
}
h1 {
  font-size: 1.5em;
  padding: 20px;
  line-height: 0.5em;
  margin-top: 3vw;
}
.post__body p { white-space: pre-wrap; }
h5 {
  font-size: 1em;
  font-weight: 100;
  padding: 2vw;
  line-height: 1.4em;
}
h4 {
  font-size: 1.5em;
  font-weight: 700;
  padding: 2vw;
  line-height: 1.4em;
}
h3 {
  font-size: 1em;
  font-weight: 100;
  padding: 10px;
}
h3:hover {
  color: azure;
  background-color: blueviolet;
}
button {
  font-size: 1em;
  font-weight: 100;
  padding: 10px;
  width: 100px;
  background-color: whitesmoke;
  border-style: unset;
}

button:hover {
  color: azure;
  background-color: blueviolet;
  border-style: unset;
}
.block {
  display: block;
  width: 100%;
  border: none;
  padding: 14px 28px;
  font-size: 1em;
  cursor: pointer;
  text-align: left;
}
p {
  font-size: 1em;
  margin: 30px;
  /*width: 33.333vw; 1vw = 1% viewport width*/
}

img {
  /*  max-height: 80vh; */
  max-width: 100%;
  overflow: hidden;
  max-height: 300px;
}

a {
  background-color: #84ff00;
  padding: 0.1em;
  color: white;
  border-radius: 4px;
}

ul {
  margin: 50px;
  padding: 0;
  list-style: none;
}

a:link {
  text-decoration: none;
  color: white;
}

a:visited {
  color: rgb(22, 0, 216);
}

a:hover {
  color: rgb(132, 132, 14);
  background-color: transparent;
}

a:active {
  color: red;
  background-color: transparent;
}
.post-body p { margin: 0 0 1em; line-height: 1.6; }
.post-body h2 { margin: 1.5em 0 0.5em; font-size: 1.2rem; }
.post-body h3 { margin: 1.2em 0 0.4em; font-size: 1.05rem; }
.post-body blockquote { margin: 1em 0; padding-left: 1em; border-left: 2px solid currentColor; }
.post-body ul,
.post-body ol { margin: 0 0 1em 1.2em; }
.post-body img { width: 100%; margin: 1.5em 0; }
.post-body a { text-decoration: underline; }

.blog-item {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 6em;
}

.blog-item h3 { margin: 0 0 0.2em; }
.blog-item h4 { margin: 0 0 1.5em; font-weight: 400; opacity: 0.6; }
.post-excerpt { font-style: italic; margin-bottom: 2em; }

.post-body .underline { text-decoration: underline; }
.post-body s { text-decoration: line-through; }
.post-body code {
  font-family: inherit;
  padding: 0.1em 0.3em;
  background: rgba(0, 0, 0, 0.07);
}

.post__body {
  --line-height: 1.6;
  --paragraph-gap: 1.4em;   /* Medium uses tighter spacing than the 2.4em recipe */

  margin: 0 auto;           /* centers the column */
  padding: 0 1rem;          /* side padding on phones */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;       /* ~20px like Medium */
  line-height: var(--line-height);
  color: #242424;           /* soft black, easier on the eyes than pure #000 */
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
    word-break: break-word;
}

.post__body p {
  margin: 0 0 var(--paragraph-gap);
  white-space: pre-wrap;
}

.post__body h2,
.post__body h3 {
  font-family: "Courier Prime", monospace;
  line-height: 1.3;
  margin: 2em 0 0.5em;
}
.post__tags {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0 0 1.5rem;
}

.post__tag {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
  background: #84ff00;
}
.more-posts {
  max-width: 680px;
  margin: 6rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.more-posts h3 {
  padding: 0;
  margin: 0 0 1.5rem;
}

.more-posts h3:hover {
  color: inherit;
  background: none;
}

.more-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.more-posts__item,
.more-posts__item:link,
.more-posts__item:visited {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  background: none;
  color: #242424;
  text-decoration: none;
}

.more-posts__item:hover {
  color: blueviolet;
  background: none;
}

.more-posts__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-height: none;
}

.more-posts__item time {
  font-size: 0.8rem;
  opacity: 0.6;
}

.more-posts__title {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}
.flex-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-grow: inherit;
  gap: 20px;
}

.flex-item {
  width: 400px;
  /* margin: 20px 0; */
  /* line-height: 100px; */
  flex-grow: 1;
  position: relative;
}

.flex-item_1 {
  width: 400px;
  /* margin: 20px 0; */
  /* line-height: 100px; */
  margin-left: 30vw;
}
/* Hide the hidden-info by default */
.hidden-info {
  display: none;
}
.hidden-images {
  display: none;
}

/* Style the hidden-info content */
.hidden-info h4 {
  font-size: 1em;
  font-weight: bold;
  color: #333; /* Adjust color as needed */
}

.hidden-info p {
  font-size: 1em;
  color: #666; /* Adjust color as needed */
}
/* Right Side: Static Hidden Info */

/* Styles for the lightbox view */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* White background with transparency */
  z-index: 1000;
  overflow: hidden; /* Prevent lightbox overlay from scrolling */
}
.lightbox .content {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.lightbox .content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox .content {
  padding: 20px;
  border-radius: 5px;
  position: relative;
  display: flex;
  overflow-y: auto; /* Allow scrolling within the hidden images */

  flex-direction: column; /* Stack items vertically */
  gap: 10px; /* Space between items */
  max-height: 90%; /* Ensure the content does not exceed the viewport height */
}
/* Ensure hidden images are properly styled */
.hidden-images img {
  max-width: 80vh; /* Occupy only the left 50% */
  height: 100%; /* Full height */
  overflow-y: auto; /* Allow scrolling within the hidden images */
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between items */
}
/* Ensure hidden images are properly styled */

.lightbox iframe {
  max-width: 80vh; /* Occupy only the left 50% */
}
.additional-info {
  max-width: 100%; /* Adjust the width of the text */
  text-align: left;
}

/* Style for the close button */
.close {
  display: block; /* Ensure the button is displayed */
  position: fixed; /* Position it absolutely within the lightbox */
  top: 10px; /* Adjust the top position as needed */
  right: 10px; /* Adjust the right position as needed */
  background: none; /* Remove any background if necessary */
  border: none; /* Remove any border if necessary */
  color: #ffffff;
  font-size: 120px; /* Increase the font size */
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 9999; /* Ensure it's above the lightbox content */
  mix-blend-mode: difference; /* Apply subtracted blending mode */
}

.close:hover {
}

.close:focus {
  outline: none;
}

.lightbox-inner {
  display: block; /* Change display to block */
  flex-direction: column; /* Change flex-direction to column */
  width: auto; /* Adjust width */
  height: auto; /* Adjust height */
}
/* Media query for smaller screens */
@media (min-width: 768px) {
  .lightbox .content {
    flex-direction: row; /* Change to row layout on larger screens */
    padding: 20px;
  }
  .lightbox-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
  }
  .lightbox-img {
    margin-bottom: 0; /* Remove bottom margin */
  }
  .lightbox iframe {
    max-width: 80vh; /* Occupy only the left 50% */
  }

  .additional-info {
    max-width: 50%; /* Adjust text width for larger screens */
  }

  /* Style for the close button */
  .close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px; /* Increase the font size */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 9999; /* Ensure it's above the lightbox content */
    mix-blend-mode: difference; /* Apply subtracted blending mode */
  }

  .close:focus {
    outline: none;
  }
}
main * {
  margin: 5px;
  border: ;
}
.post-body {
  max-width: 65ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;   /* ~18px, comfortable for reading */
  line-height: 1.7;
}

.post-body p {
  margin: 0 0 1.2em;
  line-height: 1.7;
}
.post-body h2,
.post-body h3 {
  font-family: "Courier Prime", monospace;
}
/* Media queries for mobile devices */
@media screen and (max-width: 768px) {
  .lightbox .content {
    position: relative;
    max-width: 95%;
    padding: 10px;
  }

  .lightbox-inner {
    gap: 10px;
  }

  .image-content img {
    width: 100%;
  }

  .vimeo-video iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
}

/* For very small screens */
@media screen and (max-width: 480px) {
  .lightbox .content {
    max-width: 98%;
    padding: 8px;
  }
  .post__body {
    font-size: 1.0625rem;   /* 17px on phones */
  }

  @media (min-width: 768px) {
    .post__body {
      font-size: 1.25rem;   /* 20px on desktop */
    }
  }
}
