body { font-size: 1.25rem; }
div.e-content  { font-family: var(--font_transitional); font-weight: 400; }
div.p-summary { font-family: var(--font_transitional); font-weight: 400; }
article.e-content { font-family: var(--font_transitional); font-weight: 400; }
h1 { font-size: 1.8rem; font-family: var(--font_rounded-sans); font-weight: 500}
h2.post-title a { text-decoration: none; }

@media screen and (max-width: 799px) {
  body {
    font-size: 1.125rem;
  }
}

@media screen and (min-width: 800px){
article img, .e-content img, .p-summary img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img {
  max-width: 100%;
  height: auto;
}


footer .attribution {
    display: contents;
}

figcaption {
    font-style: italic;
    font-size: 0.6em;
    text-align: center;
}

body { background: var(--link); max-width: 55em; }
.site-header { text-align: center; }
.site-header, .page-content, footer { background: var(--background); padding: 1em; border-radius: 0.333em; margin: 1em 0; }

div.h-entry a:not([href*='frankmeeuwsen.com']):not([href^='#']):not([href^='/']):not([href*='mailto']):not([href*='tel']):not([name]):after {
	content: " ↗";
    font-size: .6em;
}

p:has(img + img) {
  display: flex;
  gap: 1em;
  width: 400px
}

p.microblog_reply_textarea textarea {
  /* styles for the textarea go here */
    height: 250px;
    width: 100%;
    transition: height 0.3s ease 0s;
    box-sizing: border-box;

}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Optional: Adds space between images */
}

.image-grid img {
    width: calc(50% - 10px); /* Adjust the width to fit two images per row */
    box-sizing: border-box; /* Ensures padding and border are included in the width */
}

#cusdis-iframe {
    width: 100%;
    border: 0;
    min-height: 450px;
    height: auto;
}

/* Alternative: target through parent if needed */
#cusdis_thread iframe {
    width: 100%;
    border: 0;
    min-height: 450px;
    height: auto;
}

.microblog_collection img {
display: inline;
}

::target-text {
  background-color: rgba(255, 255, 0, 0.2) !important; /* Subtiele gele highlight met lage opacity */
  border-left: 3px solid rgba(255, 255, 0, 0.6); /* Subtiele gele rand links */
  padding: 2px 8px;
  border-radius: 2px;
}

/* Optioneel: specifieke styling voor dark mode */
@media (prefers-color-scheme: dark) {
  ::target-text {
    background-color: rgba(255, 255, 0, 0.15) !important; /* Nog subtielere highlight in dark mode */
    border-left: 3px solid rgba(255, 255, 0, 0.4); /* Minder opvallende rand in dark mode */
  }
}

/* Voor de pixelfed import */
.media-gallery {
  /* Optioneel: maak de container responsief */
  width: 100%;
  /* Optioneel: voeg wat ruimte toe tussen de afbeeldingen */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-gallery .media-item {
  max-width: 350px; /* maximaal 350px breed */
  width: 100%;      /* altijd passen binnen beschikbare containerbreedte */
  height: auto;     /* behoud verhouding */
  display: block;   /* voorkom extra witruimte onder de afbeelding */
  object-fit: contain; /* optioneel: om netjes te schalen */
}