div.tekst-container img {
  padding: 0em;
  padding-top: 1em;
  margin-right: 1em;
  display: grid;
  align-self: center;
  justify-self: center;
  max-width: 33vw;
}

article {
  word-wrap: break-word;
  hyphens: auto;
}

article>h1 {
  background-color: rgba(255, 255, 255, 0.85);
  /* Gjør bakgrunnen til artikkelboksene litt gjennomsiktig */
  margin-top: 1.5em;
  padding: 1.5em;
  padding-right: 5em;
  padding-top: 1.5em;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 24px;
  font-weight: bold;
}

article>p {
  background-color: rgba(255, 255, 255, 0.85);
  /* Gjør bakgrunnen til artikkelboksene litt gjennomsiktig */
  padding: .5em;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: medium;
  padding-bottom: 1em;
}

a {
  color: #0b6fda;
  text-decoration: none;
}

.publiseringsdato {
  z-index: 1;
  opacity: .3;
  border-radius: 5px;
  transform: rotate(20deg);
  transition: opacity .5s ease;
  top: 1em;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 24px;

  /* Apply transition for both hover in and out */
}

img.spacer-image {
  height: 4em;
  width: 100%;
}

.spacer-image-container {
  position: relative;
  top: 50px;
  width: 33vw;
}

div.tekst-container img {
  border-radius: 1em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.bilde-copyright {
  margin-right: 4.5em;
}


blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid #ccc;
  color: #555;
}

blockquote strong {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}

.funfact {
  background-color: #f0f0f0;
  padding: 0.5em 1em;
  border-left: 5px solid #999;
  font-style: italic;
  margin: 1.5em 0;
}

p.cover-image {
  float: right;
  margin-left: 1.5rem;
  max-width: 40%;
  height: auto;
  border-radius: 1em;
}

@media (max-width: 800px) {
  img.spacer-image {
    width: 100vw;
  }

  div.tekst-container img {
    max-width: 100vw;
  }

  article>h1 {
    padding: 1em;
    padding-right: 2em;
    padding-top: 1em;
    font-size: 20px;
  }

  article>p {
    padding: .5em;
    font-size: small;
  }

  .publiseringsdato {
    font-size: 14px;
  }

  p.cover-image,
  p.cover-image img {
    float: none;
    display: none;
  }
}

/* Vis kun på små skjermer */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}