/* Project page and project subpages (tools/wix/projects.js). Builds on mor-directory.css (hero, cards,
   colours, fonts); same MOR palette: blue #353876, navy #292c64, orange #ff8b00, red-orange #ff4e27, black. */
.mor-proj-sec { background: #fff; padding: clamp(56px, 7vw, 100px) 20px; }
.mor-proj-sec--grey { background: var(--mor-grey); }
.mor-proj-h2 { font: 700 clamp(28px, 3.4vw, 46px)/1.1 var(--head); letter-spacing: -.01em; text-align: center; margin: 0 0 clamp(28px, 4vw, 48px); color: #000; }
.mor-proj-h2--left { text-align: left; margin-bottom: 18px; }

/* the present project: one wide card */
.mor-proj-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.mor-proj-feature__img { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mor-grey); }
.mor-proj-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mor-proj-feature__img:hover img { transform: scale(1.03); }
.mor-proj-feature__title { font: 700 clamp(24px, 2.6vw, 34px)/1.2 var(--head); margin: 0 0 10px; }
.mor-proj-feature__title a { color: #000; text-decoration: none; }
.mor-proj-feature__title a:hover { color: var(--mor-blue); text-decoration: underline; text-underline-offset: 4px; }
.mor-proj-partner { font: 600 13px/1.4 var(--label); color: var(--mor-blue); margin: 0 0 18px; }
.mor-proj-text { font: 13px/1.8 var(--text); color: #222; margin: 0 0 16px; }
.mor-proj-todo { color: #8a8a99; font-style: italic; }
.mor-proj-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 24px 0 8px; }
.mor-proj-donate { text-decoration: none; }
.mor-proj-more { font: 700 13px/1.2 var(--label); color: var(--mor-blue); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.mor-proj-more:hover { color: var(--mor-red); text-decoration: underline; text-underline-offset: 3px; }

/* upcoming: a MOR-blue band */
.mor-proj-band { background: var(--mor-blue); color: #fff; text-align: center; padding: clamp(56px, 7vw, 96px) 20px; }
.mor-proj-band .mor-proj-h2 { color: #fff; margin-bottom: 18px; }
.mor-proj-band__text { font: 14px/1.8 var(--text); max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, .92); }

/* photo cards (past projects) */
.mor-dl__img.is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mor-proj .mor-dl__desc { -webkit-line-clamp: 4; }

/* closing line: black band, orange words */
.mor-proj-closing { background: #000; padding: clamp(56px, 7vw, 96px) 20px; text-align: center; }
.mor-proj-closing p { font: 700 clamp(20px, 2.4vw, 30px)/1.35 var(--head); color: var(--mor-orange); max-width: 920px; margin: 0 auto; }

/* project details (Teratai: mission, activities, location) */
.mor-proj-details { margin: 8px 0 6px; padding: 0; border-top: 1px solid #e3e3ea; }
.mor-proj-details > div { padding: 16px 0; border-bottom: 1px solid #e3e3ea; }
.mor-proj-details dt { font: 700 12px/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--mor-red); margin: 0 0 8px; }
.mor-proj-details dd { font: 13px/1.75 var(--text); color: #222; margin: 0; }

/* subpage article */
.mor-proj-article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.mor-proj-figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--mor-grey); }
.mor-proj-figure img { display: block; width: 100%; height: auto; }
.mor-proj-figure--small { margin-top: 26px; }
.mor-proj-copy { max-width: 560px; }
.mor-proj-back { display: inline-flex; gap: 6px; align-items: center; margin-top: 28px; font: 700 13px/1.2 var(--label); color: var(--mor-blue); text-decoration: none; }
.mor-proj-back:hover { color: var(--mor-red); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .mor-proj-feature, .mor-proj-article { grid-template-columns: minmax(0, 1fr); }
  .mor-proj-copy { max-width: none; }
}
@media (max-width: 640px) {
  .mor-proj-feature__body, .mor-proj-copy { text-align: center; }
  .mor-proj-h2--left { text-align: center; }
  .mor-proj-actions { justify-content: center; }
  .mor-proj-actions .mor-dir-btn { width: 100%; justify-content: center; }
}
