/*
 * Project (portfolio) detail page.
 * Scoped to node--type-portfolio detail view only - see
 * linoor_subtheme_page_attachments_alter() for the attach condition.
 */

.node--type-portfolio.node-detail {
  display: block;
}

/* Breadcrumb
 * This page now has a real banner (see the "breadcrumbs" region block,
 * .breadcrumb-content-inner) above this crumb, which already clears the
 * theme's absolute-positioned header and adds its own 60px margin-bottom -
 * no extra top clearance needed here on top of that. */
.project-detail__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-family: Teko, sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 16px;
  color: #687b80;
}

.project-detail__crumb a {
  color: #687b80;
  text-decoration: none;
}

.project-detail__crumb a:hover {
  color: #377dff;
}

.project-detail__crumb span[aria-current] {
  color: #17353d;
}

@media (max-width: 767px) {
  .project-detail__crumb {
    margin-top: 0;
  }
}

body.dark-mode .project-detail__crumb {
  color: #b2c6c9;
}

body.dark-mode .project-detail__crumb span[aria-current] {
  color: #eef8f9;
}

/* Title block */
.project-detail__head {
  padding-top: 4px;
  padding-bottom: 28px;
}

.project-detail__eyebrow {
  font-family: Teko, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 15px;
  color: #377dff;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-detail__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.project-detail__title {
  font-family: 'BioRhyme', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0;
  color: #17353d;
}

body.dark-mode .project-detail__title {
  color: #eef8f9;
}

/* Gallery */
.project-detail__gallery--single {
  margin-bottom: 32px;
}

.project-detail__gallery-single-img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

.project-detail__gallery--multi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px;
  margin-bottom: 32px;
}

.project-detail__gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-detail__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-detail__gallery-item:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .project-detail__gallery-item img {
    transition: none;
  }
}

/* Body content headings, in case a project's body text uses h2/h3 */
.node-detail .node__content h2 {
  font-family: 'BioRhyme', Georgia, serif;
  font-size: 26px;
  margin-top: 36px;
}

/* Back nav */
.project-detail__back-nav {
  padding-top: 14px;
  padding-bottom: 8px;
  border-top: 1px solid #dce5e7;
  margin-top: 8px;
}

body.dark-mode .project-detail__back-nav {
  border-top-color: rgba(173, 218, 222, 0.16);
}

.project-detail__back-nav a {
  font-family: Teko, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 18px;
  color: #377dff;
  text-decoration: none;
}

.project-detail__back-nav a:hover {
  text-decoration: underline;
}

/* Related projects */
.related-projects {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid #dce5e7;
}

body.dark-mode .related-projects {
  border-top-color: rgba(173, 218, 222, 0.16);
}

.related-projects__title {
  font-family: 'BioRhyme', Georgia, serif;
  font-size: 26px;
  margin: 0 0 24px;
}

.related-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .related-projects__grid {
    grid-template-columns: 1fr;
  }
}
