
/* ATLAS Projects — standalone concept preview. Scoped and independent.
   Uses the original video card pattern from Atlas Site Theme 1.5.2.5 / production-line.css.
   No site header/footer. Only click-to-play YouTube activation is used. */
.atlas-projects {
  --paper: #fdfbf4;
  --white: #fff;
  --ink: #111;
  --muted: #454745;
  --line: #dcded6;
  --soft: #fdfbf4;
  --gold: #b58a38;
  --gold-dark: #b58a38;
  --gold-light: #dfbd76;
  --night: #000;
  --gutter: clamp(22px, 4.2vw, 84px);
  --display: 'Helvetica Neue', Arial, sans-serif;
  --body: 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color: var(--ink); background: var(--paper);
  font: 400 16px/1.8 var(--body);
  -webkit-font-smoothing: antialiased; text-align:left;
  isolation: isolate; overflow-x:clip;
}
.atlas-projects *, .atlas-projects *::before, .atlas-projects *::after { box-sizing: border-box; }
.atlas-projects :where(h1,h2,h3,h4,p,figure) { margin: 0; }
.atlas-projects :where(h1,h2,h3,h4) { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing:-.045em; overflow-wrap:break-word; }
.atlas-projects a { color:inherit; text-underline-offset:.25em; text-decoration-thickness:1px; }
.atlas-projects a:hover { color: var(--gold-dark); }
.atlas-projects :where(a,button):focus-visible { outline: 3px solid var(--gold); outline-offset:4px; }
.atlas-projects .wrap { width:calc(100% - var(--gutter)*2); max-width:1456px; margin-inline:auto; }
.atlas-projects .eyebrow { font:600 10px/1.6 var(--mono); letter-spacing:.105em; text-transform:uppercase; color:var(--gold-dark); }

/* Compact, editorial opening — not a replacement for the WP header. */
.atlas-projects .page-opening { padding: clamp(54px, 6vw, 88px) 0 clamp(48px,5vw,76px); }
.atlas-projects .page-opening .topline { border-top:1px solid var(--line); padding-top:14px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 22px; }
.atlas-projects .page-opening .topline .eyebrow:last-child { color:#767870; font-weight:400; }
.atlas-projects .opening-grid { display:grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); align-items:end; column-gap:clamp(36px,7vw,120px); margin-top:54px; }
.atlas-projects .page-title { font-size:clamp(48px,5.4vw,75px); letter-spacing:-.075em; font-weight:500; line-height:1; }
.atlas-projects .page-title span { color:var(--gold-dark); }
.atlas-projects .opening-copy { border-left:2px solid var(--gold); padding-left:28px; padding-bottom:2px; max-width:530px; }
.atlas-projects .opening-copy h2 { font-size:clamp(23px,2.25vw,33px); letter-spacing:-.04em; font-weight:500; line-height:1.18; }
.atlas-projects .opening-copy h2 em { font-style:normal; color:#7a6033; }
.atlas-projects .opening-copy p { max-width:490px; color:var(--muted); font-size:14px; line-height:1.83; margin-top:15px; }

/* Three straightforward sections — no filtering, scripting or animation. */
.atlas-projects .project-section { padding:56px 0 74px; border-top:1px solid var(--line); background:var(--soft); }
.atlas-projects .section-top { display:grid; grid-template-columns:180px minmax(0,1fr); gap:30px; align-items:start; }
.atlas-projects .section-top .eyebrow { border-top:1px solid var(--gold); padding-top:12px; }
.atlas-projects .section-top h2 { max-width:780px; font-size:clamp(26px,3vw,40px); letter-spacing:-.052em; }
.atlas-projects .section-top p { max-width:750px; font-size:14px; color:var(--muted); line-height:1.8; margin-top:14px; }

/* Original CCL300 video card foundation: 16:9 facade, project facts directly underneath when expanded. */
.atlas-projects .video-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:36px; align-items:stretch; }
.atlas-projects .video-card { display:flex; flex-direction:column; min-width:0; height:100%; padding:0; gap:0; background:var(--white); border:1px solid var(--line); border-top:3px solid var(--gold); }
.atlas-projects .video-thumb { position:relative; display:block; width:100%; aspect-ratio:16/9; background:var(--night); text-decoration:none; overflow:hidden; border-bottom:1px solid var(--line); }
.atlas-projects .video-thumb > .image-placeholder { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:flex-start; padding:18px 20px; background-color:#d9ddd7; background-image:linear-gradient(#8b94880e 1px,transparent 1px),linear-gradient(90deg,#8b94880e 1px,transparent 1px); background-size:38px 38px; color:#687169; text-align:left; font:400 10px/1.6 var(--mono); }
.atlas-projects .video-thumb .image-placeholder span { max-width:43ch; }
.atlas-projects .video-thumb > .play-marker { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:54px; height:54px; border:1px solid var(--gold-light); border-radius:50%; color:var(--gold-light); background:var(--night); font-size:16px; padding-left:3px; transition:background-color .2s,color .2s; }
.atlas-projects .video-thumb:hover > .play-marker { background:var(--gold-light); color:var(--night); }
.atlas-projects .video-thumb.atlas-youtube-facade { aspect-ratio:16/9; }
.atlas-projects .atlas-youtube-facade > .atlas-youtube-activate { position:absolute; inset:0; z-index:2; display:block; width:100%; height:100%; margin:0; padding:0; border:0; border-radius:0; appearance:none; background:transparent; color:inherit; cursor:pointer; }
.atlas-projects .atlas-youtube-facade > .atlas-youtube-activate:focus-visible { outline:3px solid var(--gold); outline-offset:-4px; }
.atlas-projects .atlas-youtube-facade > .atlas-youtube-player { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }
.atlas-projects .video-body { flex:1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:18px; row-gap:0; padding:22px 24px 24px; }
.atlas-projects .video-body > small { display:block; grid-column:1/-1; color:var(--gold-dark); font:500 9px/1.6 var(--mono); }
.atlas-projects .video-body h3 { grid-column:1/-1; margin:12px 0 14px; font-size:22px; line-height:1.18; letter-spacing:-.045em; }
.atlas-projects .video-body .video-description { grid-column:1/-1; margin:0 0 16px; color:var(--muted); font-size:12.5px; line-height:1.62; }
.atlas-projects .video-fact { min-width:0; margin:0!important; padding:8px 0!important; border-top:1px solid var(--line); font-size:11px!important; line-height:1.45!important; color:var(--muted); }
.atlas-projects .video-fact strong { display:block; margin-bottom:3px; color:var(--ink); font-size:10px; line-height:1.35; font-weight:600; }
.atlas-projects .video-fact:last-child { grid-column:1/-1; }
.atlas-projects .video-card .video-body .video-fact:nth-last-child(2) { grid-column:1/-1; }

/* One restrained closing link; WordPress supplies the real footer later. */
.atlas-projects .projects-closing { border-top:1px solid var(--line); padding:28px 0 46px; }
.atlas-projects .projects-closing .wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; }
.atlas-projects .projects-closing p { font-size:14px; color:var(--muted); }
.atlas-projects .projects-closing p strong { color:var(--ink); font-weight:600; }
.atlas-projects .projects-closing a { font-size:12px; text-decoration:none; padding:8px 0; border-bottom:1px solid var(--gold-dark); color:var(--ink); font-weight:600; }
.atlas-projects .projects-closing a span { color:var(--gold-dark); margin-left:14px; font-size:15px; }
@media (max-width:1100px){
  .atlas-projects .video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .atlas-projects .video-body h3 { font-size:20px; }
  .atlas-projects .video-body { grid-template-columns:1fr; }
  .atlas-projects .video-fact { grid-column:1/-1; }
}
@media (max-width:700px){
  .atlas-projects .page-opening { padding:38px 0 40px; }
  .atlas-projects .opening-grid { grid-template-columns:1fr; gap:32px; margin-top:37px; }
  .atlas-projects .page-title { font-size:clamp(48px,12vw,64px); }
  .atlas-projects .opening-copy { padding-left:19px; }
  .atlas-projects .opening-copy h2 { font-size:25px; }
  .atlas-projects .project-section { padding:42px 0 56px; }
  .atlas-projects .section-top { grid-template-columns:1fr; gap:20px; }
  .atlas-projects .section-top .eyebrow { width:max-content; }
  .atlas-projects .video-grid { grid-template-columns:1fr; gap:18px; margin-top:28px; }
  .atlas-projects .video-body { display:block; padding:18px 18px 20px; }
  .atlas-projects .video-body h3 { font-size:21px; }
  .atlas-projects .video-fact { padding:7px 0!important; }
  .atlas-projects .video-thumb > .image-placeholder { font-size:9px; padding:17px; }
}
@media(prefers-reduced-motion: reduce){.atlas-projects .video-thumb > .play-marker{transition:none}}



/* Projects v2: native HTML disclosure; the ONLY JS remains the exact existing YouTube click-to-play activation. */
.atlas-projects .section-nav { border-top:1px solid var(--line); background:var(--paper); }
.atlas-projects .section-nav .wrap { display:flex; align-items:center; flex-wrap:wrap; gap:0 34px; }
.atlas-projects .section-nav a { font:600 10px/1.6 var(--mono); text-decoration:none; text-transform:uppercase; letter-spacing:.075em; padding:17px 0; border-bottom:2px solid transparent; color:#555b55; }
.atlas-projects .section-nav a:hover, .atlas-projects .section-nav a:focus-visible { color:#86692e; border-color:var(--gold); }
.atlas-projects .project-section { scroll-margin-top:20px; }
.atlas-projects .project-section + .project-section { padding-top:56px; }
.atlas-projects .video-card { height:100%; }
.atlas-projects .video-details { flex:1; display:flex; flex-direction:column; min-width:0; }
.atlas-projects .video-details > summary { display:block; cursor:pointer; list-style:none; padding:18px 20px 16px; min-height:142px; }
.atlas-projects .video-details > summary::-webkit-details-marker { display:none; }
.atlas-projects .video-details > summary::marker { content:''; }
.atlas-projects .video-details > summary:focus-visible { outline:3px solid var(--gold); outline-offset:-3px; }
.atlas-projects .video-kind { color:var(--gold-dark); font:600 9px/1.5 var(--mono); text-transform:uppercase; letter-spacing:.04em; }
.atlas-projects .video-details .video-summary h3 { margin:9px 0 14px; font-size:clamp(16px,1.35vw,19px); line-height:1.24; letter-spacing:-.04em; font-weight:500; }
.atlas-projects .expand-action { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:auto; padding-top:11px; color:#6b6d68; border-top:1px solid var(--line); font:500 10px/1.45 var(--mono); }
.atlas-projects .expand-symbol { display:grid; place-items:center; flex:0 0 22px; width:22px; height:22px; border:1px solid var(--line); border-radius:50%; color:#806329; font:400 17px/1 Arial,sans-serif; }
.atlas-projects .video-details[open] .expand-symbol { transform:rotate(45deg); border-color:var(--gold); }
.atlas-projects .video-details[open] > summary { border-bottom:1px solid var(--line); }
.atlas-projects .video-details .video-body { flex:1; padding:14px 20px 20px; }
.atlas-projects .video-details .video-body .video-description { padding:0 0 10px; margin:0; font-size:12px; }
.atlas-projects .video-card--exhibition .video-summary { min-height:120px; }
.atlas-projects .video-card--official .video-summary { min-height:136px; }
.atlas-projects .video-card--official .video-body { display:block; }
.atlas-projects .video-card--official .video-body .video-description { padding:0; }
.atlas-projects .video-card--exhibition .video-body { display:block; }
.atlas-projects .video-card--exhibition .video-fact,
.atlas-projects .video-card--exhibition .video-fact:last-child,
.atlas-projects .video-card--exhibition .video-body .video-fact:nth-last-child(2) { display:block; width:100%; grid-column:auto; }
.atlas-projects .video-pending { background:#dadcd6; }
.atlas-projects .video-pending .image-placeholder { background-color:#e4e6e0; color:#777d74; }
.atlas-projects .pending-pill { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); white-space:nowrap; padding:9px 13px; background:#272d28; color:#e4c58b; font:600 9px/1.2 var(--mono); letter-spacing:.09em; }
.atlas-projects .video-card--draft .video-kind { color:#797d76; }
.atlas-projects .preview-note { margin-top:16px; font:400 11px/1.55 var(--mono); color:#737770; }
@media (max-width:1100px) {
 .atlas-projects .video-details .video-summary h3 { font-size:18px; }
}
@media (max-width:700px) {
 .atlas-projects .section-nav .wrap { gap:0 19px; }
 .atlas-projects .section-nav a { font-size:9px; padding:12px 0; }
 .atlas-projects .video-grid { grid-template-columns:1fr; }
 .atlas-projects .video-details > summary { padding:16px 18px 14px; min-height:124px; }
 .atlas-projects .video-card--exhibition .video-summary { min-height:116px; }
 .atlas-projects .video-card--official .video-summary { min-height:124px; }
 .atlas-projects .video-details .video-body { padding:12px 18px 18px; }
 .atlas-projects .project-section + .project-section { padding-top:44px; }
}

/* v3: three true independent CSS-only masonry columns.
   Expanding <details> changes ONLY the containing card / column height.
   At tablet widths columns flatten into two aligned (but never stretched) tracks;
   on phones all cards return to their original chronological/source order.
   No scripting is used for disclosure or layout. */
.atlas-projects .video-grid {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 36px;
}
.atlas-projects .video-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.atlas-projects .video-grid .video-column > .video-card {
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  align-self: stretch;
}
@media (max-width: 1100px) and (min-width: 701px) {
  .atlas-projects .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
  }
  .atlas-projects .video-column { display: contents; }
  .atlas-projects .video-grid .video-column > .video-card {
    height: auto;
    min-height: 0;
    align-self: start;
    order: var(--atlas-card-order, 0);
  }
}
@media (max-width: 700px) {
  .atlas-projects .video-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 28px;
  }
  .atlas-projects .video-column { display: contents; }
  .atlas-projects .video-grid .video-card {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    align-self: stretch;
    order: var(--atlas-card-order, 0);
  }
}

/* Media generated by the existing facade; no alternate player implementation. */
.atlas-projects .video-thumb > span:not(.pending-pill) {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border:1px solid var(--gold-light);border-radius:50%;color:var(--gold-light);background:#000;font-size:16px;padding-left:3px;}
.atlas-projects .video-thumb > img {display:block;width:100%;height:100%;object-fit:cover;}
.atlas-projects .video-body > p:not(.video-fact) {grid-column:1/-1;}
.atlas-projects .project-section {scroll-margin-top:calc(var(--atlas-header-visible-height,84px) + var(--atlas-toolbar-height,0px) + 20px);}
[dir="rtl"] .atlas-projects {text-align:right;}
[dir="rtl"] .atlas-projects .opening-copy {border-left:0;border-right:2px solid var(--gold);padding-left:0;padding-right:28px;}
[dir="rtl"] .atlas-projects .video-thumb > .image-placeholder {text-align:right;}


/* Projects video titles: match the approved two-line collapsed card behavior. */
.atlas-projects .video-details:not([open]) > .video-summary > h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.48em; /* Two title lines at line-height: 1.24. */
}
