/* Static-port additions to the Royalle theme (danisolberg.com). Theme CSS is unchanged in /assets/theme/. */

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

#container { max-width: 940px; }
#top-nav { margin: 0; }
.nav { padding: 0; }
.entry iframe.video-embed { border: 0; max-width: 100%; }
.entry img { max-width: 100%; height: auto; box-sizing: border-box; }
.textwidget img { max-width: 100%; height: auto; }

/* Read-only comments */
#comments .commentlist { margin: 0; padding: 0; }
#comments .comment-head .date { display: block; }
#comments .comment-head .avatar img { width: 40px; height: 40px; }
#respond .comments-closed { text-align: center; font-family: Georgia, serif; font-style: italic; color: #2e2e2e; }

/* Mobile / small screens */
@media (max-width: 980px) {
  #container { width: auto; margin: 0; border-left: 0; border-right: 0; }
  .col-full, #header { width: auto; }
  #content { background-image: none; display: flex; flex-direction: column; }
  #main, #sidebar { float: none; width: auto; }
  #sidebar { background-color: #ecc9dd; padding: 20px 0 1px 0; }
  .post, .fullwidth .post { width: auto; padding: 30px 20px 20px 20px; }
  .archive_header { float: none; width: auto; margin: 20px 20px 0 20px; }
  #comments { width: auto; margin: 20px 20px 0 30px; }
  #respond { margin: 15px 20px; }
  .featured .comment-cloud { margin: 0 auto 20px auto; }
  .featured-title { margin: 0 0 15px 0; }
  .post-meta { height: auto; min-height: 32px; }
  .post-meta span.meta-holder { width: auto; max-width: calc(100% - 40px); }
  .featured .post-meta span.meta-holder { float: none; max-width: none; }
  .more_entries { margin: 20px; }
  #logo img { left: 20px; max-width: calc(100% - 40px); height: auto; }
  #top-nav { padding: 0 20px; }
  #wp-calendar { max-width: 320px; }
  #footer { padding: 20px; }
  #credits { width: auto; }
}

@media (max-width: 600px) {
  .featured-title { font-size: 30px; line-height: 38px; }
  .nav a { line-height: 30px; padding-right: 14px; }
  .entry .alignleft, .entry .alignright { float: none; margin: 10px 0; }
  #comments .comment .comment-container { padding: 12px 15px; }
  #comments .comment-head .avatar img { margin: -30px 0 0 -30px; }
  #comments ul.children { margin-left: 10px; }
  #copyright, #credit { float: none; }
}
