.blog {
  display: grid;
  grid-template-columns: 70% 30%;
  column-gap: 5em;
  background-color: var(--background-color);
  margin-top: 50px;
  margin-left: 150px;
  margin-right: 100px;
  margin-bottom: 100px;
}
@media (max-width: 980px) {
  .blog {
    grid-template-columns: 1fr;
    margin-left: 1% !important;;
    margin-right: 1% !important;
  }
}


/*.blog{
  font-size: 1em;
  word-wrap: break-word;
  line-height: 2em;
  margin-left: 10px;
  margin-right: 30px;
}*/


.blog h1 {
    font-size: 1.8em;
    max-width: 800px;
    color: var(--c-text);
}

.blog h2 {
    font-size: 1.4em;
    max-width: 800px;
    color: var(--c-text);
}
.blog image {
    width: 100%;
}
.blog p {
    line-height: 2em;
    font-size: 1em;
    color: var(--c-text);
}


.blog h1, .blog h2, .blog h3, .blog h4, .blog h5, .blog h6 {
  color: var(--c-text);
  line-height: 1.5em;
}

.blog a {
  color: #0066cc;
  text-decoration: none;
}

.blog a:hover {
  text-decoration: underline;
}

.blog blockquote {
    background-color: #fdfdea;
    border: 1px #99bbd8 solid;
    padding: 1em;
    max-width: 640px;
    margin: 20px 0;
    border-radius: 12px;
    font-size: 1.2em;
}


.blog ol {
    list-style-type: decimal;
    margin-bottom: 20px;
}

.blog ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.blog li {
    margin-bottom: 5px;
}
.mark {
    background-color: yellow;             /* highlighter color */
    padding: 0.2em 0.4em;                 /* padding top/bottom + left/right */
    -webkit-box-decoration-break: clone;  /* Safari/Chrome: repeat per line */
    box-decoration-break: clone;          /* Standard: repeat per line */
    display: inline;                      /* keep as inline so wrapping occurs */
}

.codeblock {
    color: #eee;
    font-family: "Lucida Console", Monaco, monospace;
    padding: 0;
    font-size: 15px;
    border: 4px solid #a8c2d7;
    overflow: auto;
    height: auto;
    margin-bottom: 2em;
    background-color: #343432;
    border-style: outset;
    opacity: 1;
  }

.codeblock pre {
    max-width: 100%;
    padding: 10px 10px 10px 20px;
    overflow: overlay;
    line-height: 1.5em;
  }



.copy-highlite {
    background-color: #ccc !important; 
  }
.copy-btn{
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    padding: 0px;
  }
   
       
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 0.5em;
    margin-top: 1em;
}

.video-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.video-wrapper {

    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio = 9 / 16 = 0.5625 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe, 
.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
