
html {
    box-sizing: border-box;
    -ms-overflow-style: scrollbar;
}
  
body { 
  background-color:#383e42;
  color: #ccc;
  font-size: 1.15rem;
  font-weight: 300;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2 {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-header-content { 
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0 0 .5rem; 
  padding: 0 0 0 3rem;
  vertical-align: bottom;
}
.site-title { 
  margin: 3rem 0;
}

nav.pagination {
  margin: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
    .container {
      max-width: 720px;
    }
  }
  
  @media (min-width: 992px) {
    .container {
      max-width: 960px;
    }
  }
  
  @media (min-width: 1200px) {
    .container {
      max-width: 1140px;
    }
  }
  
a {
  color: #2a9ef0;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

a.post-link {
  margin-left: 1rem;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}


/* Post card displays */

.post-as-row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;  
}

.post-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;  
}

.post-row-element { 
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    padding: 1rem;
    position: relative;
}
.date {
  font-family: 'Courier New', Courier, monospace;
}

.post-row-header {
  font-size: 125%;
}
/*
.post-row-header a {
  text-decoration: none;
  color: inherit;
}
*/
.post-row-header .post-row-date {
  width: 100%;
  text-align: right;
  font-size: 80%;
}
.post-row-excerpt {
  font-style: italic;
  text-align: justify;
}
.feature-card { text-align: center; }

.post-row-meta {
  padding: 0;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 80%;
}

.author-profile-image,
.avatar-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  background: color(var(--lightgrey) l(+10%));
  border-radius: 100%;

  object-fit: cover;
}

.static-avatar {
  display: block;
  overflow: hidden;
  margin: 0 0 0 -6px;
  width: 34px;
  height: 34px;
  border: #fff 2px solid;
  border-radius: 100%;
}


.post-full-image {
  text-align: center;
}
.post-full-title {
  padding-bottom: 1rem;
}
.post-full-header {
  padding: 30px 2rem;
}
.post-full-header a {
  color: rgb(150, 150, 150);
}

.post-full-content {
  position: relative;
  margin: 0 auto;
  padding: 0 30px 6vw;
  min-height: 230px;
  font-size: 1.1rem;
  line-height: 1.4em;
}

.kg-width-full figcaption {
  padding: 0 1.5em;
}

.kg-image-card img {
    margin: auto;
    height: auto !important;
}

.kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.kg-embed-card .fluid-width-video-wrapper {
  margin: 0;
}

.post-full-content .kg-image {
  margin: 0 auto;
  max-width: 100%;
}

/* Preventing full-width image overlap with post image.  */
.post-full-image + .post-full-content .kg-content *:first-child .kg-image {
  width: 100%;
}

.post-full-content pre {
  background-color: #242930;
  color: rgb(103, 102, 102);
  margin: 1rem 3rem;
  padding: 1rem;
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;
}

.post-footer-links {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
  flex-direction: row;
  margin-right: -15px;
  margin-left: -15px;  
}
.post-footer-link-element {
  padding: .1em 1em;
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  width: 100vw;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 0.75em 0 0 0;
}

.kg-gallery-image:not(:first-of-type) {
  margin: 0 0 0 0.75em;
}

.kg-gallery-card + .kg-image-card.kg-width-wide,
.kg-gallery-card + .kg-gallery-card,
.kg-image-card.kg-width-wide + .kg-gallery-card,
.kg-image-card.kg-width-wide + .kg-image-card.kg-width-wide {
  margin: -2.25em 0 3em;
}

/* keep existing <pre> styles for code cards with captions */
.kg-code-card {
  width: 100%;
}

.kg-code-card pre {
  margin: 0;
}

.kg-card + .kg-bookmark-card {
  margin-top: 0;
}

.post-full-content .kg-bookmark-container {
  display: flex;
  min-height: 148px;
  color: var(--darkgrey);
  background-color: grey;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 2px 5px -1px rgba(200, 200, 200, 0.15), 0 0 1px rgba(200, 200, 200, 0.09);
}

.post-full-content .kg-bookmark-container:hover {
  color: var(--darkgrey);
  text-decoration: none;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.09);
}

.kg-bookmark-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px;
}

.kg-bookmark-title {
  color: color(var(--midgrey) l(-30%));
  font-size: 1.6rem;
  line-height: 1.5em;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.post-full-content .kg-bookmark-container:hover .kg-bookmark-title {
  color: var(--blue);
}

.kg-bookmark-description {
  display: -webkit-box;
  overflow-y: hidden;
  margin-top: 12px;
  max-height: 48px;
  color: color(var(--midgrey) l(-10%));
  font-size: 1.5rem;
  line-height: 1.5em;
  font-weight: 400;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kg-bookmark-thumbnail {
  position: relative;
  min-width: 33%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 3px 3px 0;

  object-fit: cover;
}

.kg-bookmark-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  color: color(var(--midgrey) l(-10%));
  font-size: 1.5rem;
  font-weight: 400;
}

.post-full-content .kg-bookmark-icon {
  margin-right: 8px;
  width: 22px;
  height: 22px;
}

.kg-bookmark-author {
  line-height: 1.5em;
}

.kg-bookmark-author:after {
  content: "•";
  margin: 0 6px;
}

.kg-bookmark-publisher {
  overflow: hidden;
  max-width: 240px;
  line-height: 1.5em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

figcaption {
    padding: .5rem 1.5rem 1rem;
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4em;
}

/* footer */
footer.site-footer {
  margin-top: 2rem;
  padding: 1rem 2rem;
}