/* The privates page (pages/luxury-private-freediving-courses.js): the
   full-viewport hero (styles/components/hero.css), then one idea per screen:
   the lead (the shared .two.split), awaken your aquatic superpower (the shared trio;
   its middle card opens the education spread), the activities as an index
   (styles/components/activity-index.css),
   the course leaders (the shared gallery,
   styles/components/sections/leaders.css), the destinations, and the shared closing
   block (.foot-cta, site.css). Only this
   page's own arrangement lives here. */

/* The hero's --hero-shift widens .hero-img past the frame (hero.css), which
   the base img { max-width: 100% } would cap (see about.css) */
.hero-img { max-width: none; }

/* The lead: the shared split, its photograph a square at every width
   (SIZES_SPLIT_SQUARE_ALWAYS: Costa's selfie with the manta ray behind him,
   as on the adventures page) */
.privates-lead figure img { aspect-ratio: 1; }

/* Awaken Your Aquatic Superpower: the shared trio (site.css) under a centered heading. */
.privates-growth h2 { text-align: center; }
/* Three across (from 821px), the cards share their first rows: the
   photograph, the heading and the sub-line each sit on one row across the
   three, so a sub-line that wraps in one card on a narrower screen never
   knocks its paragraph out of line with its neighbors'. The paragraph and
   what follows it (Martin's line, the education button, the story's link)
   flow together in the last cell, each foot under its own paragraph with the
   normal margin (Costa, 2026-11-13: never lined up on a row of their own,
   which opened gaps under the shorter paragraphs). */
@media (min-width: 821px) {
  .privates-growth .trio { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .privates-growth .trio-item { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
}
.privates-growth .trio-item div > p { margin-bottom: 0; }   /* each foot's own top margin is the whole gap, the same under all three */
/* Show Education Details: the FII lockup (the .fii-link's mark and gap,
   site.css, the mark unaltered with its clear space) drawn as a button, a
   hairline box that takes the accent under a mouse. It opens the education
   spread (scripts/components/adventure-spread.js). */
.education-open { display: inline-flex; margin-top: var(--md); padding: 0.6rem 0.9rem 0.6rem 0.8rem; border: 1px solid var(--border); transition: border-color var(--fast), color var(--fast); }
.privates-growth .education-open img { width: 2rem; height: 2rem; }
.education-open:hover, .education-open:focus-visible { border-color: var(--accent); color: var(--accent); }
.education-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* It reads Show Freediving Education Details wherever its card has the room
   (Costa, 2026-11-13: from a 390px phone, whose card is 342px, and on a wide
   desktop), and drops "Freediving" in a narrower card (a smaller phone, three
   cards across under about 1200px) so the label always holds one line. The
   card's last cell is the size container: the card itself is a subgrid, which
   a container would undo. */
.privates-growth .trio-item > div { container-type: inline-size; }
.education-freediving { display: none; }
@container (min-width: 340px) {
  .education-freediving { display: inline; }
}
/* The word is part of the label: none of the .fii-link's second-line dress
   (site.css gives any span in .fii-text the small accent type, underlined
   under a mouse) */
.fii-link.education-open .fii-text .education-freediving { font-size: inherit; color: inherit; text-decoration: none; }

/* The leaders: a centered heading and lede over the gallery (as the about
   page's team); the lede ends linking About Us and Our Stories (Costa,
   2026-11-15, in place of a pair of buttons under the gallery) */
.privates-leaders > .wrap > .kicker, .privates-leaders h2, .privates-leaders > .wrap > .lede { text-align: center; }
.privates-leaders > .wrap > .lede { text-wrap: balance; }   /* even lines, never one long and one short (Costa) */

/* Destinations (Costa, 2026-11-15: "relax here", an element of its own): two
   weekends as photographs, each named over its foot, then the rest of the
   world. Compact (Costa: the first draft's tall 4:5 pair across 1400px was
   "much too big"). One grid, three arrangements, each a step of
   SIZES_PLACES:
     to 700px      the heading centered above the pair, which runs edge to
                   edge, 4:5, a seam of the page between them; the other
                   places a board of hairline rows under them, two by two
     701 to 1023px the pair 4:3 inside the page's margins, the board five
                   across
     from 1024px   three columns across the page's usual width: the pair,
                   4:3, and a column of copy with the heading at its top and
                   the board at its foot, like a departures board (Costa: the
                   heading in the block with the copy), one place a row
   On a phone, where the board is two across, an odd last place (Alaska) is
   left out,
   so the board always ends on a full row (Costa, 2026-11-15)
   Each photograph is a size container: its words are sized from its width. */
.places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: 'head head' 'kelp manatees' 'beyond beyond';
  column-gap: 3px;
  padding-inline: 0;   /* the pair runs edge to edge on a phone; the words keep the margins */
}
.places .places-head { grid-area: head; margin: 0 0 var(--lg); padding-inline: var(--page-inset); text-align: center; }
.place-kelp { grid-area: kelp; }
.place-manatees { grid-area: manatees; }

.place {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  align-items: flex-end;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--white);
}
.place img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.place::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--band), var(--scrim); }
.place figcaption { display: flex; flex-direction: column; gap: 0.35rem; padding: clamp(0.75rem, 7cqw, 1.5rem); }
.place-where { font-family: var(--mono); font-size: var(--kicker); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.place-what { font-size: clamp(1.15rem, 8cqw, 1.75rem); font-weight: var(--light); line-height: 1.1; }

/* The other places: a board of hairline rows (never a dotted row, whose
   last name was left alone on a line on a phone), and the line on asking
   under it */
.places-beyond { grid-area: beyond; margin-top: var(--lg); padding-inline: var(--page-inset); text-align: center; }
.places-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sm); margin: 0; padding: 0; list-style: none; font-size: clamp(1.1rem, 5.2vw, var(--h3)); font-weight: var(--light); line-height: 1.25; }   /* a little smaller on the narrowest phones, so The Bahamas keeps one line in its half */
.places-more li { padding: 0.65rem 0; border-top: var(--hair); border-bottom: var(--hair); margin-bottom: -1px; }   /* the rows share their hairlines */
.places-more li:last-child:nth-child(odd) { display: none; }   /* two across, an odd last place is left out: the board ends on a full row (Costa) */
.places-ask { margin: 0.6rem 0 0; color: var(--text-2); }
/* "And other destinations by request.", and "dream" before "destinations"
   only where the block holds the longer line whole (Costa): it measures
   302px, so the copy is a size container and the word shows from 19rem */
.places-beyond { container: places-copy / inline-size; }
.places-dream { display: none; }
@container places-copy (min-width: 19rem) {
  .places-dream { display: inline; }
}

/* The pair arrives, one after the other, as the section comes into view */
.reveal .place { opacity: 0; transform: translateY(1rem); transition: opacity var(--slow) ease, transform var(--slow) ease; }
.reveal.in .place { opacity: 1; transform: none; }
.reveal.in .place-manatees { transition-delay: 0.12s; }

/* Tablets: inside the margins */
@media (min-width: 701px) {
  .places { column-gap: var(--sm); padding-inline: var(--page-inset); }
  .places .places-head, .places-beyond { padding-inline: 0; }
  .place { aspect-ratio: 4 / 3; }
  .places-more { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .places-more li:last-child:nth-child(odd) { display: block; }
}

/* Desktops: the copy in a third column, the heading level with the
   photographs' tops and the board's foot with theirs; the heading a size
   smaller here, so the column never outgrows a 4:3 photograph (249px tall at
   1024px) */
@media (min-width: 1024px) {
  .places {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(14rem, 0.8fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'kelp manatees head' 'kelp manatees beyond';
    column-gap: var(--md);
  }
  .places .places-head { margin: 0; padding-left: var(--xs); text-align: left; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.15; }
  .places-beyond { align-self: end; margin: 0; padding-left: var(--xs); text-align: left; }
  .places-more { grid-template-columns: minmax(0, 1fr); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }   /* a little smaller under 1200px, so five rows, the heading and the line fit beside a 4:3 photograph (249px tall at 1024px) */
  .places-more li { padding: 0.4rem 0; }
  .places-ask { margin-top: 0.8rem; }
}
