/* Shared rules for the session pages that follow the sunrise.html layout
   (proposals, proposal + setup, couples, family, beach fashion, film).
   Loaded after sunrise's own stylesheets; it only adds what they do not cover. */

/* A single offer card (one product) instead of sunrise's Mini/Full pair. */
.cards.one { max-width: 640px; margin-inline: auto; }
.cards.one .card > .button { margin-top: 8px; }
.cards.one .card:has(> .film-option) > .button { margin: 24px 0; }

/* Film page: lightbox links inside the shared photo grid. */
.mock-gallery a { display: block; }
.mock-gallery picture { display: block; }
.mock-gallery picture img { display: block; width: 100%; }

/* Story heading with two paragraphs (proposal page). */
.fashion-story-heading p + p { margin-top: 12px; }

/* Five-photo gallery: end the grid cleanly with no empty cell.
   2-column widths: last photo spans both columns.
   3-column widths: top row of 3, bottom row of 2 sharing the full width. */
@media (min-width: 500px) and (max-width: 719px) {
  .mock-gallery:has(> figure:nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-gallery:has(> figure:nth-child(5):last-child) > figure:last-child { grid-column: 1 / -1; }
  .mock-gallery:has(> figure:nth-child(5):last-child) > figure:last-child img { aspect-ratio: 3 / 2; }
}
@media (min-width: 720px) {
  .mock-gallery:has(> figure:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mock-gallery:has(> figure:nth-child(5):last-child) > figure { grid-column: span 2; }
  .mock-gallery:has(> figure:nth-child(5):last-child) > figure:nth-child(n+4) { grid-column: span 3; }
  .mock-gallery:has(> figure:nth-child(5):last-child) > figure:nth-child(n+4) img { aspect-ratio: 3 / 2; }
}
