/* Projects: photographic stories and complete, navigable project dossiers. */
.als-project-masthead, .als-project-cover { padding-top: 8.2rem; background: var(--als-surface); }
.als-project-trail { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--als-muted); font-size: .8rem; margin-bottom: 1.8rem; }
.als-project-trail a { display: inline-flex; align-items: center; min-height: 36px; }
.als-project-trail a:hover { color: var(--als-gold); text-decoration: underline; text-underline-offset: 5px; }
.als-project-trail svg { width: 14px; height: 14px; flex: 0 0 14px; }
html[dir="ltr"] .als-project-trail svg { transform: rotate(180deg); }
.als-project-masthead { padding-bottom: 3.8rem; }
.als-project-masthead__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
.als-project-masthead__title { font-size: clamp(2.75rem, 4.6vw, 4.25rem); font-weight: 500; line-height: 1.45; text-wrap: balance; }
.als-project-masthead__body { font-size: 1.05rem; line-height: 2; max-width: 620px; color: var(--als-muted); }
.als-project-story { padding-block: clamp(3.5rem, 6vw, 6rem); background: var(--als-bg); }
.als-project-story__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 5vw, 5rem); }
.als-project-story__photo { position: relative; display: block; height: 500px; border-radius: var(--als-radius); overflow: hidden; background: var(--als-elevated); }
.als-project-story__photo .als-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 550ms var(--als-ease); }
.als-project-story__photo:hover .als-cover, .als-project-story__photo:focus-visible .als-cover { transform: scale(1.035); }
.als-project-story__title { font-size: clamp(1.8rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 1.6; text-wrap: balance; }
.als-project-story__summary { color: var(--als-muted); font-size: 1rem; line-height: 2; margin-top: 1.5rem; max-width: 64ch; }
.als-project-action { display: inline-flex; align-items: center; gap: 1.2rem; min-height: 48px; color: var(--als-night); font-size: .9rem; }
.als-project-story .als-project-action { margin-top: 2rem; }
.als-project-action > svg { width: 48px; height: 48px; flex: 0 0 48px; padding: 13px; color: var(--als-night); background: var(--als-brass); border-radius: 50%; transition: background-color 200ms, color 200ms; }
.als-project-action:hover > svg { background: var(--als-night); color: var(--als-on-night); }
html[dir="ltr"] .als-project-action > svg { transform: rotate(180deg); }
.als-project-story--night { background: var(--als-surface-warm); color: var(--als-night); }
.als-project-story--night .als-project-story__photo { grid-column: 2; grid-row: 1; }
.als-project-story--night .als-project-story__content { grid-column: 1; grid-row: 1; }
.als-project-story--night .als-project-story__summary { color: var(--als-muted); }
.als-project-story--night .als-project-action { color: var(--als-night); }
.als-project-story--night .als-project-action:hover > svg { background: var(--als-night); color: var(--als-on-night); }
.als-project-story--night :focus-visible { outline-color: var(--als-gold); }
.als-project-collection .als-cta { background: var(--als-bg); }
/* Complete project titles and source facts remain reading content. */
.als-project-cover__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--als-radius); background: var(--als-surface-warm); color: var(--als-night); }
.als-project-cover__content { align-self: center; padding: clamp(2rem, 4vw, 3.5rem); }
.als-project-cover__title { font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; line-height: 1.55; text-wrap: balance; }
.als-project-cover__summary { color: var(--als-muted); font-size: 1rem; line-height: 2; margin-top: 1.5rem; }
.als-project-cover__photo { position: relative; min-height: 570px; background: var(--als-elevated); }
.als-project-cover__photo .als-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.als-project-chapters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 3rem; padding-block: 1.35rem; }
.als-project-chapters a { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; font-size: .9rem; color: var(--als-fg-soft); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.als-project-chapters a:hover { color: var(--als-gold); text-decoration: underline; }
.als-project-chapters svg { width: 20px; height: 20px; color: var(--als-gold); }
.als-project-reading { padding-block: clamp(4rem, 7vw, 7rem); }
.als-project-reading__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(3rem, 6vw, 6rem); }
.als-project-section-title { font-size: clamp(1.75rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 1.6; text-wrap: balance; }
.als-project-overview__body { margin-top: 1.5rem; font-size: 1.1rem; line-height: 2.1; color: var(--als-muted); max-width: 70ch; }
.als-project-facts { background: var(--als-surface); border-radius: 16px; padding: 2rem 2.25rem; }
.als-project-facts .als-project-section-title { font-size: 1.5rem; }
.als-project-facts__list { margin-top: 1.25rem; }
.als-project-facts__list li { border-top: 1px solid var(--als-border); padding-block: 1rem; color: var(--als-fg-soft); font-size: .95rem; line-height: 1.9; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.als-project-facts__list li:last-child { padding-bottom: 0; }
.als-project-products { background: var(--als-surface); padding-block: clamp(3.5rem, 6vw, 6rem); }
.als-project-products__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
.als-project-products__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.als-project-products__list li { border-top: 1px solid var(--als-border); padding-block: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--als-fg-soft); }
.als-project-chapter { scroll-margin-top: 120px; }
.als-project-chapter:focus { outline: none; }
.als-project-chapter:focus-visible { outline: 2px solid var(--als-gold); outline-offset: 8px; border-radius: 16px; }
/* Supplied agricultural photographs: open captions and a full-image viewer. */
.als-project-gallery { padding-block: clamp(3.5rem, 6vw, 6rem); background: var(--als-bg); }
.als-project-gallery__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: 2.5rem; }
.als-project-gallery__intro { margin-top: .75rem; color: var(--als-muted); line-height: 1.9; }
.als-project-gallery__hint { color: var(--als-muted); font-size: .85rem; line-height: 1.9; }
.als-project-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.als-project-gallery__item--wide { grid-column: span 2; }
.als-project-gallery__photo { position: relative; display: block; height: clamp(260px, 29vw, 420px); border-radius: 16px; background: var(--als-elevated); overflow: hidden; }
.als-project-gallery__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.als-project-gallery__expand { position: absolute; inset-inline-end: 1rem; bottom: 1rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--als-bg); color: var(--als-night); transition: background-color 200ms; }
.als-project-gallery__expand svg { width: 22px; height: 22px; }
.als-project-gallery__photo:hover .als-project-gallery__expand, .als-project-gallery__photo:focus-visible .als-project-gallery__expand { background: var(--als-brass); }
.als-project-gallery__item figcaption { margin-top: .8rem; font-size: .9rem; line-height: 1.9; color: var(--als-fg-soft); }
html:has(.als-project-lightbox[open]) { overflow: hidden; }
.als-project-lightbox { width: min(1100px, calc(100% - 3rem)); height: min(960px, calc(100vh - 3rem)); height: min(960px, calc(100dvh - 3rem)); max-width: none; max-height: none; margin: auto; padding: 1rem 1.5rem; border: 0; border-radius: 16px; background: var(--als-bg); color: var(--als-night); overflow: auto; }
.als-project-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.als-project-lightbox::backdrop { background: rgb(20 20 20 / 78%); }
.als-project-lightbox__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.als-project-lightbox__counter { direction: ltr; font-variant-numeric: tabular-nums; color: var(--als-muted); font-size: .9rem; }
.als-project-lightbox__close { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding-inline: .5rem; font-size: .9rem; }
.als-project-lightbox__close svg { width: 24px; height: 24px; }
.als-project-lightbox__stage { min-height: 0; }
.als-project-lightbox__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.als-project-lightbox__footer { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 1rem; }
.als-project-lightbox__footer p { text-align: center; font-size: .9rem; line-height: 1.8; }
.als-project-lightbox__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--als-border); border-radius: 50%; }
.als-project-lightbox__arrow svg { width: 24px; height: 24px; }
html[dir="ltr"] .als-project-lightbox__arrow svg { transform: rotate(180deg); }
.als-project-lightbox__arrow:hover, .als-project-lightbox__close:hover { color: var(--als-gold); }
.als-project-return { padding-block: 2.5rem; }
.als-project-dossier .als-cta { border-top: 1px solid var(--als-border); background: var(--als-bg); }
@media (max-width: 1023px) {
 .als-project-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .als-project-story__layout, .als-project-reading__layout { gap: 2.5rem; }
 .als-project-story__photo { height: 470px; }
 .als-project-cover__content { padding: 2rem; }
 .als-project-cover__photo { min-height: 570px; }
 .als-project-facts { padding: 1.75rem; }
 .als-project-products__layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 767px) {
 .als-project-gallery__heading { display: block; margin-bottom: 1.75rem; }
 .als-project-gallery__hint { margin-top: 1rem; }
 .als-project-gallery__grid { gap: 1.5rem 1rem; }
 .als-project-gallery__photo { height: clamp(190px, 58vw, 360px); }
 .als-project-gallery__item--wide .als-project-gallery__photo { height: auto; aspect-ratio: 4 / 3; }
 .als-project-gallery__expand { inset-inline-end: .65rem; bottom: .65rem; }
 .als-project-gallery__item figcaption { font-size: .8rem; }
 .als-project-lightbox { width: calc(100% - 1rem); height: calc(100vh - 1rem); height: calc(100dvh - 1rem); padding: .75rem; }
 .als-project-lightbox__footer { gap: .6rem; }
 .als-project-lightbox__footer p { font-size: .8rem; }
 .als-project-masthead, .als-project-cover { padding-top: 6.5rem; }
 .als-project-trail { margin-bottom: 1.25rem; gap: .5rem; font-size: .75rem; }
 .als-project-masthead { padding-bottom: 2.5rem; }
 .als-project-masthead__intro, .als-project-story__layout, .als-project-cover__layout, .als-project-reading__layout { grid-template-columns: minmax(0, 1fr); }
 .als-project-masthead__intro { gap: 1rem; }
 .als-project-masthead__title { font-size: clamp(2.4rem, 10vw, 3.2rem); }
 .als-project-masthead__body { font-size: 1rem; }
 .als-project-story { padding-block: 2.5rem 3.5rem; }
 .als-project-story__layout { gap: 1.75rem; }
 .als-project-story__photo { height: 350px; }
 .als-project-story--night .als-project-story__photo, .als-project-story--night .als-project-story__content { grid-column: auto; grid-row: auto; }
 .als-project-story__title { font-size: 1.75rem; line-height: 1.7; }
 .als-project-story__summary { margin-top: 1rem; font-size: .95rem; }
 .als-project-story .als-project-action { margin-top: 1.5rem; }
 .als-project-cover__content { padding: 2rem 1.5rem; }
 .als-project-cover__title { font-size: 2rem; line-height: 1.6; }
 .als-project-cover__summary { font-size: .95rem; margin-top: 1.25rem; }
 .als-project-cover__photo { min-height: 310px; }
 .als-project-cover__photo .als-cover { object-position: 50% 55%; }
 .als-project-chapters { gap: .25rem 1.5rem; padding-block: 1rem; }
 .als-project-chapters a { gap: .65rem; font-size: .85rem; }
 .als-project-reading { padding-block: 3.5rem; }
 .als-project-reading__layout { gap: 2.5rem; }
 .als-project-section-title { font-size: 1.8rem; }
 .als-project-overview__body { font-size: 1rem; margin-top: 1rem; }
 .als-project-facts { padding: 1.75rem 1.5rem; }
 .als-project-products__list { grid-template-columns: minmax(0, 1fr); }
 .als-project-products__list li { padding-block: 1rem; font-size: 1rem; }
 .als-project-chapter { scroll-margin-top: 95px; }
 .als-project-chapter:focus-visible { outline-offset: 5px; }
 .als-project-return { padding-block: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
 .als-project-gallery__expand { transition: none; }
 .als-project-story__photo .als-cover, .als-project-action > svg { transition: none; }
}
