/* Portfolio index, category and collection pages (Phase 6). Wix capture values; phone = 320-layout x 1.21875 at 767px. Grid switches to two columns at 1420px (UI-SPEC default 1). */
/* The band keeps the Wix 529px as a minimum and grows with long descriptions (review CR-01); 20px of image stays visible under the box. */
.ann-hero { position: relative; width: 100%; min-height: 529px; overflow: hidden; background: #fff; }
.ann-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.ann-hero__frame { position: relative; z-index: 1; width: clamp(980px, 100% - 160px, 1280px); min-height: 529px; padding-bottom: 20px; box-sizing: border-box; margin: 0 auto; display: flex; justify-content: flex-end; align-items: flex-start; }
.ann-hero__box { margin-top: 120px; width: 63%; min-height: 389px; background: #fff; padding-top: 69px; padding-bottom: 20px; box-sizing: border-box; }
.ann-hero__text { width: 599px; max-width: calc(100% - 19px); margin-left: calc((100% - 599px) / 2 + 9.5px); }
.ann-hero__title { margin: 0; font-size: var(--ann-fs-hero-title); font-weight: 400; line-height: normal; letter-spacing: normal; }
.ann-hero__desc { margin-top: 32px; max-width: 504px; font-size: var(--ann-fs-hero-body); line-height: 1.8; }
.ann-portfolio--category .ann-hero__desc { line-height: normal; }
.ann-hero__desc p { margin: 0; }
.ann-hero__desc em { font-style: italic; }
.ann-grid { display: flex; flex-direction: column; align-items: center; gap: 60px; padding-top: 49px; padding-bottom: 49px; }
.ann-card { width: 680px; max-width: calc(100% - 20px); padding-bottom: 58px; box-sizing: border-box; }
.ann-card:not(:has(.ann-card__desc)) { padding-bottom: 77px; }
.ann-card__link { display: block; color: inherit; text-decoration: none; }
.ann-card__img { display: block; width: 100%; height: auto; aspect-ratio: 680 / 606; object-fit: cover; }
.ann-card__img--empty { background: #fff; }
.ann-card__title { margin: 23px 28px 0; max-width: 600px; font-size: var(--ann-fs-card-title); font-weight: 400; line-height: normal; }
.ann-card__desc { margin: 10px 28px 0; max-width: 553px; font-size: var(--ann-fs-card-body); line-height: normal; }
.ann-card__desc p { margin: 0; }
/* Wix wrapper for this description is 4 lines taller than its text (reference/layout/category-*.json); keeps the column pitch identical. */
.ann-grid--collections .ann-card[data-slug="the-joy-archive"] .ann-card__desc { padding-bottom: 76px; }
.ann-card__desc em { font-style: italic; }
.ann-404 { max-width: 680px; margin: 0 auto; padding: 120px 24px; text-align: center; }
.ann-404 h1 { font-size: var(--ann-fs-hero-title); font-weight: 400; margin: 0 0 32px; }
.ann-404 p { margin: 0 0 16px; }
.ann-404 a { text-decoration: underline; }
/* Two independent columns from one sort-order list (review WR-02): odd cards float left, even cards stay in
   normal flow on the right, so each column stacks by its own card heights plus 60px and DOM order stays the
   sort order. A left card can never start above the right card before it (float rule); the measured Wix
   content never hits that, and if it ever does the card only sits lower, nothing overlaps.
   The media query includes a classic scrollbar (about 17px), so the grid is max-width, not width: from
   1420 to about 1436px the column gap shrinks (to about 43px) instead of overflowing sideways (review WR-03). */
@media (min-width: 1420px) {
  .ann-grid { display: flow-root; max-width: 1420px; margin: 0 auto; box-sizing: border-box; }
  .ann-card { max-width: none; margin-bottom: 60px; }
  .ann-card:nth-child(odd) { float: left; clear: left; }
  .ann-card:nth-child(even) { display: flow-root; margin-left: calc(100% - 680px); }
  .ann-card:nth-last-child(-n + 2) { margin-bottom: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ann-hero__frame { width: 100%; }
  .ann-hero__text { width: auto; margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 767px) {
  .ann-hero { min-height: 726.375px; }
  .ann-hero__frame { width: 100%; min-height: 726.375px; padding-bottom: 24.375px; }
  .ann-hero__box { width: 100%; margin-top: -12.1875px; min-height: 497.25px; padding: 73.125px 24.375px 24.375px; }
  .ann-portfolio--category .ann-hero__box { min-height: 471.65625px; }
  .ann-hero__text { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
  .ann-hero__desc { margin-top: 26.8125px; max-width: none; }
  /* Bottom padding 0: the 17px compensated card drift that the line heights below now remove (quick 261118-fid). */
  .ann-grid { gap: 0; padding-top: 0; padding-bottom: 0; }
  .ann-card { width: 100%; max-width: none; padding: 36.5625px 24.375px 43.875px; }
  .ann-card:not(:has(.ann-card__desc)) { padding-bottom: 68.25px; }
  .ann-card__img { aspect-ratio: 280 / 248; }
  /* Wix line boxes: card title 40.2px, description 23.16px per line (category-phone.json); "normal" gave
     40 / 23px and the cards drifted about 1.5px each (15px by the last card). */
  .ann-card__title { margin: 34.125px 0 0; max-width: none; line-height: 40.2px; }
  .ann-card__desc { margin: 24.375px 0 0; max-width: 327.9px; line-height: 23.16px; }
  .ann-grid--collections .ann-card[data-slug="the-joy-archive"] .ann-card__desc { padding-bottom: 92.7px; }
  .ann-404 { padding: 60px 24.375px; }
}
