/* Page layouts share the site’s type, controls, photo frame and ending. */
.events-intro { max-width: 56rem; margin-bottom: 32px; }
.events-intro p { max-width: 65ch; margin-top: 24px; }
.events-intro p, .event-card p, .events-process__copy p,
.mini-benefits p, .mini-session-card p, .mini-collaboration__copy > p { text-wrap: pretty; }
.events-hero .hero__photo img { aspect-ratio: 1; object-fit: cover; object-position: 50% 0; }
.mini-hero.hero--photo .hero__media { max-width: 560px; justify-self: center; }
.mini-hero .hero__photo img { object-position: center 58%; }
.events-hero.hero--photo .hero__chips .sticker { transform: none; rotate: 0deg; }

/* A large opening, two concise notes, and one photo moment. */
.events-types { display: grid; gap: 24px; }
.event-card .card__media { border-radius: 0; }
.event-card--photo .card__media img { object-position: center 20%; }
.event-card__body { gap: 0; }
.event-card h3 { line-height: 1.1; }
.event-card p { margin-top: 16px; }
.event-card--brand, .event-card--school { padding: 24px; }
.event-card--brand .event-card__body, .event-card--school .event-card__body { padding: 0; }
.event-card__icon { width: 40px; height: 40px; margin-bottom: 24px; color: var(--raspberry); }

/* Five photographs, with the largest source featured across two rows on wide screens. */
.events-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.events-gallery figure { margin: 0; min-width: 0; overflow: hidden; border-radius: var(--r-md); }
.events-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.events-gallery figure:nth-child(2) img { object-position: center top; }
.events-gallery figure:nth-child(4) img { object-position: center 40%; }
.events-gallery figure:last-child img { object-position: center 20%; }

/* Balloon-shaped numbered badges keep the process readable in either direction. */
.events-process { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.events-process li { position: relative; min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; }
.events-process__badge { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: 64px; height: 80px; border-radius: 50% 50% 46% 46%; background: var(--blush); color: var(--raspberry); }
.events-process__badge::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 10px; background: var(--blush); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.events-process__badge span { font-size: 1rem; line-height: 1; font-weight: 700; }
.events-process__badge .icon { width: 28px; height: 28px; }
.events-process__copy h3 { font-size: var(--step-2); line-height: 1.12; }
.events-process__copy p { margin-top: 16px; }
.events-process__arrow { position: absolute; top: 104px; left: 12px; width: 32px; height: calc(100% - 96px); color: var(--raspberry); overflow: visible; }
.events-process__arrow--horizontal { display: none; }
.events-process__arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* A single family photograph, layered with the shared balloon artwork. */
.mini-story__grid { display: grid; gap: 40px; align-items: center; }
.mini-story__collage { position: relative; width: 100%; max-width: 416px; min-width: 0; padding: 0 32px 32px 0; justify-self: center; }
.mini-story__photo { position: relative; margin: 0; }
.mini-story__crop { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-arch); box-shadow: var(--shadow-soft); }
.mini-story__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; transform: scale(1.16); transform-origin: center 70%; border-radius: 0; box-shadow: none; }
.mini-story__bunch { position: absolute; width: 18%; height: auto; right: 0; bottom: -8px; }
.mini-story__copy > p { margin-top: 24px; }
.mini-story-note { color: var(--raspberry); font: 500 var(--step-2)/1.2 var(--font-display); text-wrap: balance; }

/* A soft, open row keeps the practical details together. */
.mini-benefits { display: grid; gap: 32px; }
.mini-benefits article { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; min-width: 0; }
.mini-benefits__icon { grid-row: 1 / 3; width: 48px; height: 48px; padding: 8px; border-radius: var(--r-pill); color: var(--raspberry); background: var(--white); }
.mini-benefits h3 { font-size: var(--step-3); line-height: 1.25; }
.mini-benefits p { margin-top: 8px; font-size: var(--step-body); }
.mini-details-note { max-width: 48rem; margin-top: 32px; color: var(--muted); font-size: 1rem; }

/* Shared brand colors; small leaf and tree icons distinguish the seasons. */
.mini-session-grid { display: grid; gap: 32px; max-width: 1040px; margin-inline: auto; }
.mini-session-card .card__media { border-radius: 0; }
.mini-session-card .card__body { gap: 0; }
.mini-session-card h3 { line-height: 1.15; }
.mini-session-card__doodle { width: 32px; height: 32px; margin-bottom: 16px; color: var(--raspberry); fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mini-session-card p { margin-block: 16px 24px; }
.mini-session-card .button { margin-top: auto; }
.mini-session-card:focus-within { background: var(--blush-soft); }
/* Preserve the hover color transition alongside scroll reveal. */
.events-types article.card.event-card,
.mini-session-grid article.card.mini-session-card { transition-property: opacity, transform, background-color; }

/* Photographer invitation: one image and one shared edge. */
.mini-collaboration__panel { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.mini-collaboration__photo, .mini-collaboration__frame { min-width: 0; margin: 0; align-self: stretch; }
.mini-collaboration__frame { height: 100%; overflow: hidden; }
.mini-collaboration__frame img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-collaboration__copy { min-width: 0; padding: 24px; }
.mini-collaboration__copy > p { margin-block: 24px; }
.mini-collaboration__copy .button { max-width: 100%; white-space: nowrap; }

@media (max-width: 599.98px) {
  .event-card--photo { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; }
  .event-card--photo .card__media { align-self: stretch; }
  .event-card--photo .card__media img { height: 100%; aspect-ratio: auto; }
  .events-gallery img { aspect-ratio: 4 / 3; }
  .events-process__arrow { height: 56px; }
  .mini-collaboration__frame { max-width: 322px; height: auto; margin: 24px 24px 0; border-radius: var(--r-md); }
  .mini-collaboration__frame img { height: auto; aspect-ratio: auto; margin-bottom: -3px; }
  .mini-collaboration__copy .button { width: 100%; gap: 8px; padding-inline: 8px; font-size: .875rem; }
  .mini-collaboration__copy .button > .icon { width: 28px; height: 28px; padding: 5px; }
}

@media (min-width: 600px) {
  .events-hero.hero--photo .hero__photo img { height: auto; aspect-ratio: 1.08; }
  .events-types { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .event-card--feature, .event-card--photo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); align-items: center; }
  .event-card--photo { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .event-card--feature .card__media, .event-card--photo .card__media { position: relative; align-self: stretch; min-height: 240px; }
  .event-card--feature .card__media img, .event-card--photo .card__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .event-card--brand, .event-card--school { grid-column: span 3; }
  .events-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 508px; margin-inline: auto; }
  .events-gallery figure:last-child { grid-column: 1 / -1; width: 100%; max-width: 298px; justify-self: center; }
  .events-gallery img { aspect-ratio: 4 / 3; }
  .mini-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .mini-benefits article { display: block; }
  .mini-benefits__icon { margin-bottom: 24px; }
  .mini-session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-session-card h3 { min-height: 2.3em; }
  .mini-collaboration__panel { max-width: var(--container); grid-template-columns: minmax(0, 322px) minmax(0, 1fr); gap: 24px; }
  .mini-collaboration__photo { grid-column: 1; }
  .mini-collaboration__frame, .mini-collaboration__frame img { height: 100%; }
  .mini-collaboration__copy { grid-column: 2; padding: 32px 24px 32px 0; }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .mini-collaboration__copy .button { gap: 8px; padding-inline: 8px; font-size: .875rem; }
  .mini-collaboration__copy .button > .icon { width: 28px; height: 28px; padding: 5px; }
}

@media (min-width: 768px) {
  .events-intro:has(+ .events-gallery), .events-gallery { max-width: 864px; margin-inline: auto; }
  .events-gallery { aspect-ratio: 7 / 2; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .events-gallery figure:first-child { grid-row: span 2; }
  .events-gallery figure:last-child { grid-column: auto; width: auto; max-width: none; justify-self: stretch; }
  .events-gallery img { aspect-ratio: auto; }
  .events-gallery figure:nth-child(3) img { object-position: center top; }
  .events-gallery figure:nth-child(4) img { object-position: center 55%; }
  .events-intro:has(+ .mini-session-grid) { max-width: 1040px; margin-inline: auto; }
  .mini-story__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .mini-story__collage { grid-column: 1 / 4; }
  .mini-story__copy { grid-column: 4 / 7; }
  .mini-collaboration__frame img { height: 103%; aspect-ratio: auto; object-position: center top; }
}

@media (min-width: 1024px) {
  .mini-hero.hero--photo .hero__media { justify-self: end; }
  .events-intro { margin-bottom: 48px; }
  .events-types { grid-template-columns: minmax(0, 350px) repeat(2, minmax(0, 1fr)); gap: 32px; }
  .event-card--feature { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: stretch; }
  .event-card--feature .card__media { flex: 1; min-height: 252px; }
  .event-card--feature .card__media img { object-position: center 42%; }
  .event-card--feature .event-card__body { flex: none; }
  .event-card--brand { grid-column: 2; grid-row: 1; }
  .event-card--school { grid-column: 3; grid-row: 1; }
  .event-card--brand p, .event-card--school p { font-size: var(--step-body); }
  .event-card--photo { grid-column: 2 / 4; grid-row: 2; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .event-card--photo .card__media { min-height: 260px; }
  .events-process { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .events-process li { display: block; }
  .events-process__badge { width: 80px; height: 96px; margin-bottom: 32px; }
  .events-process__badge .icon { width: 32px; height: 32px; }
  .events-process__arrow { left: 112px; top: 24px; width: calc(100% - 112px); height: 60px; }
  .events-process__arrow--horizontal { display: block; }
  .events-process__arrow--vertical { display: none; }
  .mini-story__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .mini-story__collage { max-width: 432px; grid-column: 1 / 7; padding: 0 48px 48px 0; justify-self: start; }
  .mini-story__copy { grid-column: 7 / 13; }
  .mini-benefits { gap: 32px; }
  .mini-benefits h3 { font-size: var(--step-2); }
  .mini-session-card .card__body { padding: 32px; }
  .mini-session-card .card__media img { aspect-ratio: 8 / 5; }
  .mini-collaboration__panel { grid-template-columns: minmax(0, 322px) minmax(0, 1fr); gap: 32px; }
  .mini-collaboration__copy { grid-column: 2; padding: 48px 48px 48px 0; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .events-gallery img { transition: transform var(--t-slow) var(--ease-out); }
  .events-gallery figure:hover img { transform: scale(1.035); }
}
