/* GENERAL */
.main-color {
  color: #000 !important;
  color: var(--main-color) !important;
}

.main-background {
  background-color: #000 !important;
  background-color: var(--main-color) !important;
}

hr {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

a {
  color: #000;
  color: var(--main-color);
}

a:hover {
  color: #000;
  color: var(--main-color);
}

.btn.focus,
.btn:focus {
  box-shadow: 0 0 0.5em 0.2rem rgba(0, 0, 0, 0.25);
}

.btn-main {
  position: relative;
  color: #fff !important;
  background-color: #000;
  background-color: var(--main-color);
  border-color: #000;
  border-color: var(--main-color);
}

.btn-main:hover {
  color: #fff !important;
}

.btn-main:before {
  display: block;
  content: " ";
  position: absolute;
  background: #000;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  opacity: 0;
  border-radius: 0.25rem;
}

.btn-main:hover:before {
  opacity: 0.1;
}

.btn-outline-main {
  color: #000;
  color: var(--main-color) !important;
  border-color: #000;
  border-color: var(--main-color);
  box-shadow: none !important;
}

.btn-outline-main:hover {
  color: #fff !important;
  background-color: #000;
  background-color: var(--main-color);
}

.above-stretched-link {
  position: relative;
  z-index: 2;
}

.icon-svg-inline {
  display: inline-block;
  font-size: inherit;
  height: 1em;
  max-width: 1.5em; /* for IE */
  overflow: visible;
  vertical-align: -0.125em;
}

/* SITE NAVIGATION */
.site-nav {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.15);
  transition: top 0.2s ease-in-out;
}

.site-nav .navbar-nav .nav-link {
  color: rgba(0 ,0 ,0 , 0.55);
}

.site-nav .navbar-brand {
  font-weight: 500;
}

.site-nav .navbar-brand img {
  max-height: 30px;
}

.site-nav .nav-item {
  font-size: 0.9rem;
}

@media (min-width: 576px) {
  .site-nav .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* SITE HEADER */
.site-header {
  margin-top: 59px;
}

.site-header-img {
  background-color: #090a0b;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
}

.site-header-img-content {
  padding-top: 11vw;
  padding-bottom: 11vw;
  min-height: 200px;
  max-height: 450px;
  overflow: hidden;
}

.site-title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.2;
}

.site-description {
  font-weight: 300;
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .site-title {
    font-size: 3.5rem;
  }
  .site-description {
    font-size: 1.8rem;
  }
}

@media (min-width: 992px) {
  .site-title {
    font-size: 4.5rem;
  }
  .site-description {
    font-size: 2.2rem;
  }
}

/* SITE FOOTER */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 3rem;
}

/* PAGINATION */
.site-pagination {
  padding: 5px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.site-pagination .page-link {
  color: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 0 !important;
}

.site-pagination .page-link:hover {
  color: #000;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.site-pagination .page-link:focus {
  box-shadow: 0 0 0.2em 0.1rem rgba(0, 0, 0, 0.25);
}

.site-pagination .page-item.active .page-link {
  background-color: transparent;
  color: #000;
  font-weight: 700;
}

.site-pagination .page-item.active .page-link:after {
  content: "";
  background-color: #000;
  height: 1px;
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
}

/* TAG PAGE */
.tag-header {
  padding-top: 3rem;
}

.tag-title {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.tag-title span {
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  display: inline-block;
  padding-bottom: 20px;
  margin-bottom: -1px;
}

.tag-description {
  font-weight: 400;
  margin-bottom: 20px;
}

.tag-description a {
  color: rgba(0, 0, 0, 0.55) !important;
}

/* POST CARDS (HOME) */
.post-card-deck {
  padding-top: 20px;
}

.post-card-outer {
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .post-card-deck {
    padding-top: 30px;
  }

  .post-card-outer {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (min-width: 992px) {
  .post-card-outer {
    -ms-flex: 0 0 33.3333333333%;
    flex: 0 0 33.3333333333%;
    max-width: 33.3333333333%;
  }
}

.post-card {
  height: 100%;
  transition: box-shadow 0.2s ease-in-out;
}

@media (min-width: 576px) {
  .post-card:hover {
    box-shadow: 0 0.3rem 1rem 0.3rem rgba(0, 0, 0, 0.15);
  }
}

.post-card .card-image {
  border-top-right-radius: 0.25rem;
  border-top-left-radius: 0.25rem;
  background-position: 50% 50%;
  background-size: cover;
  overflow: hidden;
  height: 0;
  padding-top: 56.25%; /* 16:9 ratio */
}

.post-card .card-tags {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.post-card .card-tags li:not(:last-child) {
  margin-right: 0rem;
}

.post-card .card-tags a {
  padding-top: 10px;
  padding-right: 5px;
}

.post-card .card-title,
.post-card .card-title a {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
}

.post-card .card-text {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}

.post-card .card-footer {
  padding-top: 0;
  border-top: none;
  background-color: transparent;
}

/* POST */
.post-date {
  color: rgba(0, 0, 0, 0.55);
}

/* POST & PAGE */
.post-header,
.page-header {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.post-title,
.page-title {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .post-title,
  .page-title {
    font-size: 2.2rem;
  }
}

/* POST */
.post-tags {
  margin-bottom: 0.5rem;
}

.post-meta {
  margin-top: 1.5rem;
}

.post-meta img {
  width: 30px;
  height: 30px;
  margin-right: 5px;
}

.post-meta .dot:after {
  content: "·";
  margin-left: 3px;
  margin-right: 3px;
}

/* POST & PAGE CONTENT */
.article-content {
  color: rgba(0, 0, 0, 0.8);
}

.article-content a {
  color: #000;
  box-shadow: inset 0 -1px 0 #000;
  box-shadow: inset 0 -1px 0 var(--main-color);
}

.article-content a:hover {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.6);
  color: var(--main-color);
}

@media (min-width: 768px) {
  .article-content {
    font-size: 1.2rem;
  }
}

.article-content > h1,
.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > h5,
.article-content > h6 {
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .article-content > h1 {
    font-size: 2rem;
    margin-top: 2rem;
  }
  .article-content > h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }
  .article-content > h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  .article-content > h4 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }
  .article-content > h5 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }
  .article-content > h6 {
    font-size: 1rem;
    margin-top: 2rem;
  }
}

.article-content > h1[id]::before,
.article-content > h2[id]::before,
.article-content > h3[id]::before,
.article-content > h4[id]::before,
.article-content > h5[id]::before,
.article-content > h6[id]::before {
  display: block;
  height: 5.5rem;
  margin-top: -5.5rem;
  content: "";
}

.article-content blockquote {
  border-left: 4px solid #000;
  border-left-color: var(--main-color);
  padding: 0 20px;
  margin-top: 1rem;
  font-style: italic;
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.55);
}

.article-content blockquote a {
  color: rgba(0, 0, 0, 0.55);
}

.article-content blockquote p {
  margin-bottom: 0.5rem;
}

.article-content blockquote p:last-child > em {
  font-size: 1.2rem;
}

.article-content blockquote p:last-child > em::before {
  content: "\2014\00A0";
}

.article-content p,
.article-content blockquote,
.article-content dl,
.article-content ol,
.article-content ul {
  margin-bottom: 1.5rem;
}

.article-content > div {
  margin-bottom: 1.5rem;
}

.article-content > pre {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
  padding: 20px;
}

.article-content *:not(.highlight):not(pre) > code {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
  padding: 3px 4px;
  margin: 0 2px;
}

.article-content .highlight pre {
  margin-bottom: 0;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content figure {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.article-content img {
  margin-bottom: 0.5rem;
  line-height: 1;
  max-width: 100%;
  height: auto;
}

.article-content figcaption {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7);
  font-style: italic;
}

/* POST & PAGE FOOTNOTES */
/* Note: .footnotes is also the class that blackfriday markdown parser creates for footnotes. */
.article-content .footnotes {
  font-size: 80%;
  margin-top: 3rem;
}

.article-content .footnotes p {
  margin-bottom: 0.5rem;
}

.article-content .footnotes .footnote-backref {
  box-shadow: none;
}

/* Make sure medium zoom image is on top of everything else, especially bootstrap navbar */
.medium-zoom-overlay {
  z-index: 9000;
}
.medium-zoom-image {
  z-index: 9001;
}
