.project-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #888;
}

.project-breadcrumbs a {
  color: #666;
}

.project-breadcrumbs a:hover,
.project-breadcrumbs a:focus {
  color: #0099e5;
}

.project-breadcrumbs .breadcrumb-separator {
  color: #b0b0b0;
}

.project-breadcrumbs .is-current {
  color: #222;
  font-weight: 600;
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-breadcrumbs > span:after {
  display: none !important;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 15px 0;
}

.entry-title.project-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
}

.project-title-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e9ef;
  background: #fff;
  padding: 6px;
  flex: 0 0 96px;
}

.entry-share.share-buttons {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tags .tags .tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 8px 10px 0;
  padding: 5px 11px;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #f9f9f9;
  font-size: 12px;
  line-height: 1;
}

.post-tags .tags .tech-tag i {
  font-size: 13px;
}

.post-tags .tags .tech-tag i:not(.devicon-icon) {
  color: #0099e5;
}

.project-contact-block {
  margin-top: 28px;
  padding-top: 10px;
}

.single-page-content .post-navigation {
  margin: 36px 70px 0;
  padding: 18px 0;
  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
}

.single-page-content .post-navigation .nav-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.single-page-content .post-navigation .nav-links:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #e5e5e5;
  transform: translateX(-50%);
}

.single-page-content .post-navigation .nav-links > a {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px !important;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
  transition: all .2s ease-in-out;
}

.single-page-content .post-navigation .nav-links > a[rel="next"] {
  float: none;
  text-align: right;
  justify-content: flex-end;
}

.single-page-content .post-navigation .nav-links > a:hover,
.single-page-content .post-navigation .nav-links > a:focus {
  border-color: #cfe9f7;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.project-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
  line-height: 1;
}

.project-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  color: #9f9f9f;
}

.project-nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
  border-radius: 4px;
}

.project-nav-link .meta-nav {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: none;
  flex: 1 1 auto;
  line-height: 1;
}

.project-nav-link[rel="next"] .project-nav-arrow {
  margin-left: 2px;
}

.project-nav-link[rel="next"] {
  justify-content: flex-end;
}

.project-nav-link[rel="next"] .project-nav-icon {
  margin-left: auto;
}

.project-nav-link[rel="next"] .meta-nav {
  flex: 0 1 auto;
  max-width: calc(100% - 72px);
  text-align: right;
}

.single-page-content .post-navigation .nav-links > a[rel="next"]:only-child {
  margin-left: auto;
}

@media only screen and (max-width: 767px) {
  .project-title-row {
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
  }

  .project-title-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .entry-title.project-title {
    font-size: 40px;
    line-height: 1.15;
  }

  .single-page-content .post-navigation {
    margin: 24px 20px 0;
    padding: 14px 0;
  }

  .single-page-content .post-navigation .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .single-page-content .post-navigation .nav-links:after {
    display: none;
  }

  .single-page-content .post-navigation .nav-links > a {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
}

.project-tags-top {
  margin-top: 14px;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-links-section {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #dfe4ea;
}

.project-links-section__title {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #687282;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 176px;
  padding: 10px 14px;
  border: 2px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  color: #444;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.2;
  transition: all .2s ease-in-out;
}

.project-cta__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-cta__left i {
  width: 18px;
  text-align: center;
}

.project-cta__arrow {
  opacity: .6;
  font-size: 12px;
  margin-left: 10px;
}

.project-cta:hover,
.project-cta:focus {
  border-color: #0099e5;
  color: #0099e5;
  text-decoration: none;
}

.project-cta:hover .project-cta__arrow,
.project-cta:focus .project-cta__arrow {
  opacity: 1;
}

.project-cta--primary {
  border-color: #0099e5;
  background: #0099e5;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 153, 229, 0.24);
}

.project-cta--primary:hover,
.project-cta--primary:focus {
  background: #067fb9;
  border-color: #067fb9;
  color: #fff;
}

.project-cta--primary .project-cta__arrow {
  opacity: .9;
}

.project-cta--github {
  border-color: #24292f;
}

.project-cta--github:hover,
.project-cta--github:focus {
  border-color: #24292f;
  color: #24292f;
}

.project-cta--archive {
  border-color: #cf9d2e;
}

.project-cta--archive:hover,
.project-cta--archive:focus {
  border-color: #b58318;
  color: #8e680f;
}

.project-cta--mirror {
  border-color: #8f98a3;
}

.project-cta--mirror:hover,
.project-cta--mirror:focus {
  border-color: #7a848f;
  color: #58616b;
}

/* Primary CTA must have identical style regardless of link kind (demo/archive/github/etc.) */
.project-cta.project-cta--primary,
.project-cta.project-cta--primary.project-cta--archive,
.project-cta.project-cta--primary.project-cta--github,
.project-cta.project-cta--primary.project-cta--bitbucket {
  border-color: #0099e5;
  background: #0099e5;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 153, 229, 0.24);
}

.project-cta.project-cta--primary:hover,
.project-cta.project-cta--primary:focus,
.project-cta.project-cta--primary.project-cta--archive:hover,
.project-cta.project-cta--primary.project-cta--archive:focus,
.project-cta.project-cta--primary.project-cta--github:hover,
.project-cta.project-cta--primary.project-cta--github:focus,
.project-cta.project-cta--primary.project-cta--bitbucket:hover,
.project-cta.project-cta--primary.project-cta--bitbucket:focus {
  background: #067fb9;
  border-color: #067fb9;
  color: #fff;
}

.project-markdown-content {
  margin-top: 14px;
  counter-reset: project-image-step;
}

.project-markdown-content > *:first-child {
  margin-top: 0;
}

.project-markdown-content a[href^="http"]:not(.project-heading-anchor):not(.project-heading-link) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px;
  padding: 2px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #f7fbff;
  color: #0f4c81;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.project-markdown-content a[href^="http"]:not(.project-heading-anchor):not(.project-heading-link)::after {
  content: "\f35d";
  display: inline-block;
  order: 2;
  margin-left: 2px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
}

.project-markdown-content a[href^="http"]:not(.project-heading-anchor):not(.project-heading-link):hover,
.project-markdown-content a[href^="http"]:not(.project-heading-anchor):not(.project-heading-link):focus {
  background: #e9f4ff;
  border-color: #b8d6f2;
  color: #0b3e69;
  text-decoration: none;
}

.project-markdown-content h2 {
  margin-top: 36px;
  padding-top: 12px;
  position: relative;
}

.project-markdown-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.project-markdown-content .project-heading-anchor {
  position: absolute;
  left: -16px;
  top: calc(50% + 6px);
  transform: translateY(-50%);
  display: inline-block;
  width: 14px;
  margin: 0;
  background: transparent;
  color: #a4adb7;
  font-size: 0.94em;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: color .18s ease, opacity .18s ease, left .2s ease;
}

.project-markdown-content .project-heading-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transform: translateX(0);
  transition: transform .2s ease, color .2s ease;
}

.project-markdown-content .project-heading-link:hover,
.project-markdown-content .project-heading-link:focus {
  color: inherit;
  text-decoration: none;
}

.project-markdown-content h2:hover .project-heading-anchor,
.project-markdown-content h2:focus-within .project-heading-anchor {
  left: -4px;
  color: #7d8793;
  opacity: 1;
  pointer-events: auto;
}

.project-markdown-content h2:hover .project-heading-link,
.project-markdown-content h2:focus-within .project-heading-link {
  transform: translateX(24px);
}

.project-markdown-content .project-heading-anchor:hover,
.project-markdown-content .project-heading-anchor:focus {
  color: #5f6975;
  opacity: 1;
  text-decoration: none;
}

.project-markdown-content h2.is-copied::after {
  content: attr(data-copy-feedback);
  position: absolute;
  left: 18px;
  top: -10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(33, 37, 41, 0.9);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

.project-markdown-content pre {
  display: block;
  margin: 18px 0 22px;
  padding: 14px 16px;
  font-size: 87.5%;
  color: #212529;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow-x: auto;
}

.project-markdown-content pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: normal;
}

.project-markdown-content :not(pre) > code {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.4rem;
  border: 0;
  border-radius: 4px;
  background: #f1f3f5;
  color: #e83e8c;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 87.5%;
  font-weight: 400;
  line-height: 1.25;
  word-break: break-word;
  vertical-align: baseline;
}

.project-markdown-content img {
  width: 70% !important;
  max-width: 70% !important;
  height: auto !important;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* Enhanced screenshot presentation for Markdown image cards */
.project-markdown-content .project-image-card {
  position: relative;
  counter-increment: project-image-step;
  width: 70%;
  max-width: 70%;
  margin: 24px auto;
  padding: 34px 12px 12px;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.project-markdown-content .project-image-card:hover {
  transform: translateY(-8px);
  border-color: #c7d2e1;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.2);
}

.project-markdown-content .project-image-card::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}

.project-markdown-content .project-image-card > img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  border-radius: 8px;
  border: 1px solid #dfe5ed;
}

/* Allow very wide panorama-style screenshots to use full content width */
.project-markdown-content .project-image-card:has(> img[src*="filters-overview-grid"]) {
  width: 100%;
  max-width: 100%;
}

.project-markdown-content .project-image-card--full-width {
  width: 100%;
  max-width: 100%;
}

.project-markdown-content .project-image-card--custom-width {
  width: var(--project-image-width, 70%);
  max-width: var(--project-image-width, 70%);
}

.project-markdown-content .project-image-description {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  padding: 0 10px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
  background: #f8fafc;
  border-radius: 8px;
  transition: max-height .25s ease, margin-top .25s ease, opacity .2s ease 1.2s, transform .22s ease 1.2s, padding .25s ease;
}

.project-markdown-content .project-image-description::before {
  content: "\f05a";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  width: 18px;
  color: #2563eb;
  flex: 0 0 18px;
}

.project-markdown-content .project-image-card:hover .project-image-description {
  margin-top: 10px;
  max-height: 96px;
  opacity: 1;
  transform: translateY(0);
  padding: 8px 10px;
  transition-delay: 0s;
}

@media only screen and (max-width: 767px) {
  .project-markdown-content h2 {
    margin-top: 28px;
    padding-top: 8px;
  }

  .project-markdown-content img {
    width: auto !important;
    max-width: 100% !important;
  }

  .project-markdown-content pre {
    margin: 14px 0 18px;
    padding: 12px;
  }

  .project-markdown-content pre code {
    font-size: 12px;
  }

  .project-markdown-content .project-image-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 8px 8px;
  }

  .project-markdown-content .project-image-description {
    display: none;
  }

  .project-markdown-content .project-heading-anchor {
    left: 0;
    opacity: 1;
    pointer-events: auto;
    color: #7d8793;
  }

  .project-markdown-content .project-heading-link {
    transform: translateX(14px);
  }
}
