/* ==========================================================================
   Proyectos (list) page. The accordion itself lives in accordion.css.
   ========================================================================== */
@media (min-width:768px){
  .projects-page{padding:0 var(--gutter)}
}
/* desktop: the list never wider than 1.8x the open project's height (--acc-w, main.js; see home.css), centred, and the
   page's "proyectos" title lined up with it */
@media (min-width:1100px){
  .projects-page,.page-head:has(+ .projects-page){max-width:calc(var(--acc-w,1260px) + 2 * var(--gutter));margin-inline:auto}
}

/* phones and iPad: no accordion, like the home page (home.css). Every project is an always-open carousel of its photos
   in a 4:3 frame, "ver proyecto" top left, the dots top right, the caption on the photo, no chevron.
   --still tells main.js not to make the list follow the scroll (desktop keeps it) */
@media (max-width:1099px){
  .projects-page .acc{--still:1;--gap:10px}
  .projects-page .acc .panel,.projects-page .acc>input:checked+.panel{height:auto;aspect-ratio:4/3} /* the first one starts open: beat accordion.css's open height */
  .projects-page .acc .slides{overflow-x:auto}
  .projects-page .acc .sub{opacity:.9;max-height:24px}
  .projects-page .acc .dots{opacity:1;left:auto;right:14px;top:25px} /* level with "ver proyecto" */
  .projects-page .acc .panel .more{display:flex;opacity:1;pointer-events:auto}
  .projects-page .acc:not(.scrubbed)>input+.panel .more{visibility:visible} /* beats accordion.css's hidden closed link */
  .projects-page .acc .chev{display:none}
  .projects-page .acc .bar{pointer-events:none} /* nothing to open or close: swipes and taps go to the photos */
}
@media (min-width:768px) and (max-width:1099px){
  .projects-page .acc{--gap:14px}
  .projects-page .acc .dots{right:20px;top:32px} /* level with the bigger iPad "ver proyecto" (16px down, 40px tall) */
  .projects-page .acc .cap{right:28px} /* no chevron to leave room for */
}
