@charset "UTF-8";

/*
Theme Name: MouseWatcher
Theme URI: https://mousewatcher.com/
Author: Jeremy Kratz
Author URI: https://mousewatcher.com/
Description: Theme for the MouseWatcher Blog
Requires at least: 5.3
Tested up to: 5.8
Requires PHP: 5.6
Version: 1.2

MouseWatcher WordPress Theme, (C) 2021 Barnstorm Software, LLC
*/

/* Override app styles */
.blog.home {
  background: none;
  margin-top: 0;
  position: static;
}
.blog.home:before {
  display: none;
}
.main .container {
  max-width: 58rem;
}

/* Header menu icons */
.nav-icons {
  display: flex;
  margin-top: 1rem;
}
.nav-icons .widget-area {
  margin-right: 0.5rem;
}
.nav-icons .wp-block-search__button-inside {
  width: 180px;
}
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
  background-color: #fff;
  border-radius: 4px;
  padding: 0;
}
.nav-icons .wp-block-search__input {
  background: none;
  padding-left: 8px;
}
.nav-icons .wp-block-search__button {
  background: none;
  border: none;
  margin-left: 0;
}
.nav-icons .inline-list {
  justify-content: end;
}
.nav-icons .inline-list li {
  margin-top: auto;
  margin-bottom: auto;
}
.nav-icons svg {
  display: block;
  width: auto;
  height: 1.5rem;
}

.page-title {
  margin: 4rem 0 2rem 0;
  padding: 0;
}

/* Post wrapper */
.post {
  margin: 2rem 0 6rem 0;
}

/* Post image wrapper */
.post-image {
  margin-bottom: 1rem;
}

/* Post image <img> tag */
.wp-post-image,
.wp-block-image img {
  display: block;
}

/* Gallery block fix for WP 6.1 */
.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
}

.post-single .post-byline {
  margin-top: 2rem;
}

.post-tags {
  margin-top: 0.75rem;
}
.post-single .post-tags {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.post-tags a {
  color: #333;
  font-weight: normal;
}

/* Post Preview (small layout) */
.post-preview-small {
  margin: 3rem 0;
}
.post-byline {
  margin: 0 0 0.25rem 0;
}

/* Post list navigation */
.posts-nav {
  display: flex;
  flex-direction: row;
}

.posts-nav-older {
  width: 50%;
}

.posts-nav-newer {
  text-align: right;
  width: 50%;
}

@media only screen and (min-width: 640px) {
  .blog .container .content .left-right {
    align-items: center;
    display: grid;
    grid-template-columns: max-content 1fr;
  }
  .nav-icons {
    margin-top: 0;
  }
  .nav-icons .wp-block-search__button-inside {
    width: 240px;
  }
  .post-preview-small {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
    grid-template-areas: "image content";
  }
  .post-preview-small .post-image {
    grid-area: image;
    margin-bottom: 0;
  }
  .post-preview-small .post-content {
    grid-area: content;
  }
}