/* === Portfolio detail page === */
.eae-portfolio-page { background: #0a0a0a; color: #e8e8e8; padding-bottom: 100px; }
.page_content_wrap.eae-fullbleed { padding: 0 !important; max-width: none !important; width: 100% !important; }

.eae-portfolio-page .eae-breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 32px 28px 0;
  font-size: 13px; color: #888;
}
.eae-portfolio-page .eae-breadcrumb a { color: #aaa; text-decoration: none; transition: color .15s; }
.eae-portfolio-page .eae-breadcrumb a:hover { color: #ff6a00; }
.eae-portfolio-page .eae-breadcrumb .current { color: #fff; }
.eae-portfolio-page .eae-breadcrumb span[aria-hidden="true"] { padding: 0 8px; color: #444; }

/* Hero */
.eae-portfolio-hero {
  position: relative;
  max-width: 1280px;
  margin: 24px auto 56px;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.eae-portfolio-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.1) 0%, rgba(10,10,10,.85) 100%);
  z-index: 1;
}
.eae-portfolio-hero-inner {
  position: relative; z-index: 2;
  padding: 48px 56px;
  max-width: 900px;
  width: 100%;
}
.eae-portfolio-eyebrow {
  display: inline-block;
  font-size: 12px; text-transform: uppercase; letter-spacing: .22em;
  color: #ff6a00; font-weight: 600;
  background: rgba(255,106,0,.12); padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,106,0,.3);
  margin-bottom: 18px;
}
.eae-portfolio-h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; margin: 0 0 12px;
  color: #fff; font-weight: 700;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.eae-portfolio-location {
  font-size: 16px; color: #ddd; margin: 0; opacity: .9;
}

/* Body — two column */
.eae-portfolio-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.eae-portfolio-main { font-size: 16px; line-height: 1.7; color: #cfcfcf; }
.eae-portfolio-main h2 { color: #fff; font-size: 24px; font-weight: 700; margin: 36px 0 14px; }
.eae-portfolio-main p { margin: 0 0 16px; }
.eae-portfolio-lead {
  font-size: 19px !important; line-height: 1.6 !important; color: #e8e8e8 !important;
  margin-bottom: 24px !important;
  padding-left: 18px; border-left: 3px solid #ff6a00;
}
.eae-portfolio-note {
  margin-top: 28px; padding: 18px 22px;
  background: rgba(255,106,0,.06);
  border: 1px solid rgba(255,106,0,.2);
  border-radius: 10px;
  font-size: 14px; color: #bbb;
}

/* Photo block */
.eae-portfolio-photo { margin: 28px 0; }
.eae-portfolio-photo img {
  width: 100%; height: auto; max-height: 520px; object-fit: cover;
  border-radius: 14px; border: 1px solid #1f1f1f;
}
.eae-portfolio-caption {
  font-size: 13px; color: #888; margin-top: 10px;
  font-style: italic;
}

/* System list */
.eae-portfolio-system {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.eae-portfolio-system li {
  position: relative; padding: 12px 14px 12px 38px;
  background: #121212; border: 1px solid #1f1f1f; border-radius: 10px;
  color: #ddd; font-size: 14px; line-height: 1.5;
}
.eae-portfolio-system li::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: #ff6a00; color: #0a0a0a; border-radius: 50%; font-weight: 700; font-size: 12px;
}

/* Aside */
.eae-portfolio-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.eae-portfolio-fact,
.eae-portfolio-cta {
  background: #121212; border: 1px solid #1f1f1f; border-radius: 14px;
  padding: 24px 22px;
}
.eae-portfolio-fact h3,
.eae-portfolio-cta h3 {
  margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.eae-portfolio-fact dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.eae-portfolio-fact dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: #888; font-weight: 600;
}
.eae-portfolio-fact dd { margin: 2px 0 8px; font-size: 14px; color: #e8e8e8; line-height: 1.45; }
.eae-portfolio-fact dd:last-of-type { margin-bottom: 0; }
.eae-portfolio-cta p { font-size: 13px; color: #bbb; line-height: 1.55; margin: 0 0 14px; }
.eae-portfolio-cta .eae-btn {
  display: block; text-align: center; margin-bottom: 8px;
}
.eae-portfolio-cta .eae-btn:last-child { margin-bottom: 0; }

.eae-pager-next {
  display: block; text-decoration: none !important;
  background: #161616; border: 1px solid #1f1f1f; border-radius: 12px;
  padding: 18px 20px; transition: border-color .15s;
}
.eae-pager-next:hover { border-color: #ff6a00; }
.eae-pager-label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: #ff6a00; font-weight: 600; margin-bottom: 4px;
}
.eae-pager-title { display: block; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }

/* Related */
.eae-portfolio-related {
  max-width: 1280px; margin: 64px auto 0; padding: 0 28px;
}
.eae-portfolio-related h2 {
  color: #fff; font-size: 26px; margin: 0 0 24px; font-weight: 700;
}
.eae-portfolio-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.eae-portfolio-related-grid .eae-related-card {
  display: block; aspect-ratio: 4 / 3; border-radius: 12px;
  background-size: cover; background-position: center;
  text-decoration: none !important; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid #1f1f1f;
}
.eae-portfolio-related-grid .eae-related-card:hover {
  transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,.45);
}
.eae-related-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px;
}
.eae-related-cat {
  font-size: 10px; text-transform: uppercase; letter-spacing: .16em;
  color: #ff6a00; font-weight: 600; margin-bottom: 4px;
}
.eae-related-overlay h4 {
  margin: 0; color: #fff; font-size: 17px; line-height: 1.3; font-weight: 600;
}

@media (max-width: 960px) {
  .eae-portfolio-hero { min-height: 320px; margin: 16px 16px 36px; border-radius: 14px; }
  .eae-portfolio-hero-inner { padding: 28px 24px; }
  .eae-portfolio-body { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .eae-portfolio-aside { position: static; top: auto; }
  .eae-portfolio-related { padding: 0 20px; }
}
