/* =========================================================
   Sarah Watt Design — shared styles
   Layout follows Sarah's Website_2026 PowerPoint.
   Slide = 13.333in wide x 7.5in tall, so 1 slide-inch = 7.5% of page width.
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Averta ---------- */
@font-face { font-family: 'Averta'; src: url('fonts/Averta Thin.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Averta'; src: url('fonts/Averta Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Averta'; src: url('fonts/Averta.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Averta'; src: url('fonts/Averta Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Averta'; src: url('fonts/Averta Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
/* Titles: Averta Thin with "Bold" applied, the same way PowerPoint does it
   (the browser thickens the Thin letters, rather than switching to Averta Bold). */
@font-face { font-family: 'Averta Thin Title'; src: url('fonts/Averta Thin.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Averta Regular Title'; src: url('fonts/Averta.otf') format('opentype'); font-weight: 400; font-display: swap; }

:root {
  --ink: #1a1a1a;
  --title: #3a3939;      /* PowerPoint title colour (Background 2, 25%) */
  --rule: #4a4a4a;       /* thin 0.25pt lines on her slides */
  --nav-h: 72px;
  --gap: 9.75%;          /* ~1.3in space between gallery screens */
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Averta', sans-serif;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 100;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
nav.over-photo { border-bottom-color: transparent; }
.logo img { height: 41px; width: auto; }   /* ~14% bigger, same menu-bar height */
.menu { display: flex; gap: 32px; }
.menu a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
  transition: opacity 0.3s;
}
.menu a:hover, .menu a.current { opacity: 0.55; }

/* ---------- Title with partial underline (her signature detail) ----------
   Each word can carry up to two underline segments, given as % of the word width:
   --a1/--b1 and --a2/--b2.  e.g. "ridge" underlines "ri" and "e".            */
.ul {
  position: relative;
  display: inline-block;
}
.ul::before, .ul::after {
  content: '';
  position: absolute;
  height: max(1.5px, 0.045em);
  bottom: -0.07em;             /* sits just below the letters, like her slides */
  background: currentColor;
}
.ul::before { left: var(--a1, 0%); width: calc(var(--b1, 0%) - var(--a1, 0%)); }
.ul::after  { left: var(--a2, 0%); width: calc(var(--b2, 0%) - var(--a2, 0%)); }

/* ---------- "sarahwatt design" wordmark (bottom-right of each slide) ---------- */
.wordmark {
  display: inline-block;
  font-size: clamp(16px, 2vw, 34px);
  line-height: 0.82;
  color: #111;
  text-decoration: none;
  text-align: right;
  letter-spacing: -0.01em;
}
.wordmark .l1 { position: relative; display: block; }
.wordmark .l1 b { font-weight: 400; }
.wordmark .l1 i { font-style: normal; font-weight: 200; }
.wordmark .l1::after {               /* black line fully under "sara" */
  content: '';
  position: absolute;
  left: 0;
  width: 43.3%;                      /* ends at the edge of the second "a" */
  bottom: -0.1em;
  height: max(1px, 0.06em);
  background: #000;
}
.wordmark .l2 { display: block; font-weight: 400; }

/* ---------- Project hero (first screen of a project) ----------
   --H is the photo's height: the full photo at its 3:2 shape, but never taller
   than the screen.  All the text sizes are a share of --H (same proportions as
   her slide), so the text always fits beside the photo instead of running
   below it.                                                                  */
.project-hero {
  --H: min(46.47vw, calc(100svh - var(--nav-h)));
  margin-top: var(--nav-h);
  display: grid;
  grid-template-columns: 30.3% 69.7%;
  height: var(--H);
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;               /* everything right-justified */
  padding: calc(var(--H) * 0.1) 4.4vw calc(var(--H) * 0.02) 3vw;
  min-width: 0;
  height: var(--H);
}
.hero-image {
  display: block;
  overflow: hidden;
  width: 100%;
  height: var(--H);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Projects page: photo darker by default, brightens only while the mouse is
   over the photo itself.  Touch screens (no mouse) just show the photo normally. */
@media (hover: hover) {
  .project-list .hero-image img { filter: brightness(0.6); transition: filter 0.35s ease; }
  .project-list .hero-image:hover img { filter: brightness(1.04); }
}

.project-title {
  font-family: 'Averta Thin Title', 'Averta', sans-serif;
  font-weight: 700;                /* Averta Thin + Bold (Sarah's choice) */
  font-synthesis: weight;
  font-size: calc(var(--H) * 0.065);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--title);
  text-decoration: none;
  margin-bottom: 1.1em;
}
.project-title .word { display: block; }
.location-label {
  font-weight: 400;
  font-size: calc(var(--H) * 0.034);
  text-transform: uppercase;
  line-height: 1.1;
}
.location-label .ll-name { display: none; }
.location-detail {
  font-weight: 200;
  font-size: calc(var(--H) * 0.025);
  line-height: 1.25;
  margin-bottom: 2.2em;
}
.description {
  font-weight: 200;
  font-size: max(11.5px, calc(var(--H) * 0.0215));
  line-height: 1.32;
  max-width: 23em;
}
.credits {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 200;
  font-size: max(9.5px, calc(var(--H) * 0.0165));
  line-height: 1.38;
}

/* Projects page: faint vertical line between the text and the photo */
.project-list .hero-text { position: relative; }
.project-list .hero-text::after {
  content: '';
  position: absolute;
  top: 1.5%;
  bottom: 2%;
  right: 0.45vw;                   /* closer to the photo */
  width: 1px;
  background: #000;                /* thin black line */
}

/* Projects page: a photo that shouldn't be cropped (e.g. square) is shown whole,
   centred with white space either side */
.project-hero.contain .hero-image { background: #fff; }
.project-hero.contain .hero-image img { object-fit: contain; object-position: left center; }   /* sits next to the line */

/* Projects page: a wide (2:1) photo, e.g. Vineyard View.  As on her slide the whole
   photo shows, sitting in the middle of the block, and the text and the line run
   from the photo's top to its bottom (so the text starts lower than on the others). */
.project-hero.wide .hero-image { display: flex; align-items: center; }
.project-hero.wide .hero-image img { height: calc(var(--H) * 0.75); }
.project-hero.wide .hero-text { padding-top: calc(var(--H) * 0.13); padding-bottom: calc(var(--H) * 0.145); }
.project-list .project-hero.wide .hero-text::after { top: calc(12.5% + 1%); bottom: calc(12.5% + 1.5%); }

/* Projects page titles: Sarah's PNG artwork, all drawn at one scale, so each is
   sized from its own pixel height (--h) against the photo height (--H). */
.project-title.png { display: block; line-height: 0; }
.project-title.png img { display: block; height: calc(var(--H) * 0.0004065 * var(--h)); width: auto; margin-left: auto; }

/* Project pages and Projects page: no line under the menu bar */
.v2 nav, .projects-page nav { border-bottom-color: transparent; }

/* Projects page and project pages footer: line up with the menu bar
   (contact info far left, logo far right) */
.projects-page footer, .v2 footer, .about-page footer { padding-left: 40px; padding-right: 40px; }

/* Projects page + project pages: Averta Regular with Bold applied (thickened
   Regular, like PowerPoint's Bold button) and a finer underline.          */
.project-list .project-title, .project-title.page-title { font-family: 'Averta Regular Title', 'Averta', sans-serif; font-weight: 700; }
.project-list .ul::before, .project-list .ul::after,
.page-title .ul::before, .page-title .ul::after { height: max(1px, 0.025em); }

/* Medium windows (small laptops, tablets): photo on top, text underneath,
   so nothing gets squeezed.                                                 */
@media (max-width: 1050px) {
  .project-hero { grid-template-columns: 1fr; height: auto; }
  .hero-image { order: 1; height: auto; aspect-ratio: 3 / 2; }
  .project-hero.wide .hero-image { aspect-ratio: 2 / 1; display: block; }
  .project-hero.wide .hero-image img { height: 100%; }
  .project-hero.wide .hero-text { padding-top: 40px; padding-bottom: 10px; }
  .project-title.png img { height: calc(44px * 0.00624 * var(--h)); }   /* same size as the 44px typed titles */
  .hero-text {
    order: 2;
    height: auto;
    padding: 40px 5vw 10px;
  }
  .project-title, .project-title.page-title { font-size: 44px; margin-bottom: 0.6em; }
  .project-list .hero-text::after { display: none; }
  .location-label { font-size: 19px; }
  .location-detail { font-size: 15px; margin-bottom: 1.6em; }
  .description { font-size: 15px; max-width: 34em; }
  .credits { font-size: 12px; padding-top: 24px; }
}

/* ---------- Project page title (project name only, left side) ---------- */
.page-title-wrap {
  padding: calc(var(--nav-h) + 6.5vw) 5vw 0;
}
.project-title.page-title {
  /* same size as the titles on the Projects page */
  font-size: calc(min(46.47vw, calc(100svh - var(--nav-h))) * 0.065);
  margin-bottom: 0;
}

/* ---------- Gallery ----------
   A "screen" reproduces one block from her slide, with every photo placed
   at the same position.  Positions are % of page width (left/width) and
   % of the block height (top), so the layout scales with the window.     */
.gallery { padding: var(--gap) 0 8%; }
.screen {
  position: relative;
  width: 100%;
  margin-bottom: var(--gap);
}
.screen:last-child { margin-bottom: 0; }
.screen img { position: absolute; height: auto; }

.full { width: 100%; margin-bottom: var(--gap); }
.full img { width: 100%; height: auto; }

/* Full-screen-height rows (her note: "picture height = full screen, zero margin top/bottom") */
/* Portrait pairs: both photos must be fully visible on one screen.
   Photo width is the smaller of 37.5% of the page (her slide) or whatever
   lets the pair (photo + 20% drop) fit between the menu bar and the bottom
   of the window.  Gap and drop are the same for every pair.               */
.screen.pair {
  --pw: min(37.5vw, calc((100svh - var(--nav-h) - 48px) / 1.2 * 2 / 3));
  --ph: calc(var(--pw) * 1.5);
  --drop: calc(var(--ph) * 0.2);
  --pgap: 5.6%;
  height: calc(var(--ph) + var(--drop));
}
.screen.pair img { width: var(--pw); height: auto; }
/* Leftover white space is split 1/3 on the near side, 2/3 on the far side,
   so a "right" pair sits slightly right of centre and a "left" pair slightly left. */
.screen.pair { --near: calc((100% - 2 * var(--pw) - var(--pgap)) / 3); }
.screen.pair.right .p2 { right: var(--near); }
.screen.pair.right .p1 { right: calc(var(--near) + var(--pw) + var(--pgap)); }
.screen.pair.left .p1  { left: var(--near); }
.screen.pair.left .p2  { left: calc(var(--near) + var(--pw) + var(--pgap)); }
.screen.pair.lower-second .p1, .screen.pair.lower-first .p2 { top: 0; }
.screen.pair.lower-second .p2, .screen.pair.lower-first .p1 { top: var(--drop); }

/* Feature rows: a full-screen-height "anchor" photo with a smaller photo
   (2/3 its height) centred vertically beside it.  The pair is centred on the
   page, with white space either side.  The space between the two photos
   equals the space between gallery rows (--gap).                            */
.screen.tall {
  height: max(100svh, 520px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap);
}
.screen.tall img { position: static; }
.screen.tall img.anchor { height: 100%; width: auto; }
.screen.tall img.companion { height: 66.7%; width: auto; }

/* =========================================================
   Layout v2 (Ridge Retreat + Snow House: <body class="v2">)
   Every photo sits inside a 16.8% white margin on the left and right.
     Full-size photo ........ 66.4% wide, centred
     Portrait pair .......... 27% + 3% gap + 27%, centred, lower photo drops 20% of its height
     Anchor + smaller ....... 34.6% + 6.9% gap + 24.9%, smaller one centred vertically
   Rows are separated by 1in on her slide (7.5% of page width).
   ========================================================= */
.v2 { --gap: 7.5%; }                 /* 1in between rows on her slide */
.v2 .page-title-wrap { padding: calc(var(--nav-h) + 45px) 16.8% 0; }
.v2 .gallery { padding-top: calc(var(--nav-h) + 40px); }   /* no project name: photos start just below the menu bar */

.v2 .full { width: 66.4%; margin-left: auto; margin-right: auto; }
/* a tall (square or portrait) full-size photo never gets taller than the screen */
.v2 .full img { width: auto; max-width: 100%; max-height: calc(100svh - var(--nav-h) - 24px); margin: 0 auto; }
/* bottom of page: about 1/3 of the old space before the footer */
.v2 .gallery { padding-bottom: 5%; }
/* a capped (tall) full-size photo can sit on the left edge of the band instead of centred */
.v2 .full.left img { margin-left: 0; }

/* A smaller landscape photo on one side of the 16.8% band (width set per photo
   from Sarah's slide, e.g. style="--w:48.6%"; % of the page width).        */
.v2 .side-photo { width: 66.4%; margin: 0 auto var(--gap); }
.v2 .side-photo img { width: calc(var(--w) / 0.664); }   /* convert page % to band % */
.v2 .side-photo.right img { margin-left: auto; }
.v2 .gallery > :last-child { margin-bottom: 0; }

/* Portrait pair (option A): 27% + 3% gap + 27%, centred (21.5% margins).
   Lower photo drops 1.5in on her slide = 20% of photo height.
   Photo 27% wide = 40.5% tall; drop 8.1%; block 48.6% of page width,
   which fits below the menu bar on 1280x720 up to 1920x1080 screens.     */
.v2 .screen.pair {
  height: auto;
  aspect-ratio: 100 / 48.6;
}
.v2 .screen.pair img { width: 27%; }
.v2 .screen.pair .p1 { left: 21.5%; right: auto; }
.v2 .screen.pair .p2 { left: 51.5%; right: auto; }
/* a pair Sarah has on the left: starts at the 16.8% band edge instead of centred */
.v2 .screen.pair.flush-left .p1 { left: 16.8%; }
.v2 .screen.pair.flush-left .p2 { left: 46.8%; }
/* a pair Sarah has on the right: the right photo ends at the 16.8% band edge */
.v2 .screen.pair.flush-right .p1 { left: 26.2%; }
.v2 .screen.pair.flush-right .p2 { left: 56.2%; }
.v2 .screen.pair.lower-second .p1, .v2 .screen.pair.lower-first .p2 { top: 0; }
.v2 .screen.pair.lower-second .p2, .v2 .screen.pair.lower-first .p1 { top: 16.67%; }

/* Single portrait on its own: pair-photo size (27%), left edge of the 16.8% band */
.v2 .screen.single-portrait { aspect-ratio: 100 / 40.5; }
.v2 .screen.single-portrait img { left: 16.8%; top: 0; width: 27%; }

/* Portrait + landscape: smaller portrait on the left, dropped lower (20% of its
   height), landscape on the right; together they fill the 16.8% band with a
   3% gap.  Portrait 20.9% wide (31.35% tall), landscape 42.5% wide (3:2,
   28.3% tall); drop 6.27%; block 37.6% of page width.                      */
.v2 .screen.land-port { aspect-ratio: 100 / 37.62; }
.v2 .screen.land-port .lp-portrait  { left: 16.8%; top: 16.67%; width: 20.9%; }
.v2 .screen.land-port .lp-landscape { left: 40.7%; top: 0; width: 42.5%; }

.v2 .screen.tall {
  height: auto;
  min-height: 0;
  gap: 6.9%;
}
.v2 .screen.tall img.anchor    { width: 34.6%; height: auto; }
.v2 .screen.tall img.companion { width: 24.9%; height: auto; }

/* ---------- Before / after ("See Where We Started") ----------
   The before photo sits on top of the finished one, hidden. It shows only while
   the mouse is over the button (or, on phones, while a finger is held on it). */
.ba-frame { position: relative; }
.ba .ba-frame img.ba-before {
  position: absolute !important; inset: 0; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  object-fit: contain;             /* whole before photo, white either side if it's a different shape */
  background: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  margin: 0 !important; max-height: none !important;
}
.ba.on .ba-frame img.ba-before { opacity: 1; }
@media (hover: hover) { .ba:has(.ba-btn:hover) .ba-frame img.ba-before { opacity: 1; } }
.ba-bar { text-align: right; padding: 5px 10px 0; }   /* closer to the photo, inset a little from its edge */
.ba-btn {
  font-family: inherit; font-weight: 200; font-size: 11.2px; letter-spacing: 0.4px;   /* 20% smaller (was 14px) */
  color: var(--ink); background: none; border: 0;                                    /* no underline */
  padding: 0; cursor: default;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;   /* press-and-hold on phones */
}
.ba:has(.ba-btn:focus-visible) .ba-frame img.ba-before { opacity: 1; }        /* keyboard users */
/* full-size photo with the button: the button lines up with the photo's right edge */
.v2 .full.ba .ba-frame img:not(.ba-before) { width: 100%; max-height: none; }
/* anchor photo with the button (anchor + smaller rows) */
.v2 .screen.tall .anchor-wrap { width: 34.6%; position: relative; flex: none; }
.v2 .screen.tall .anchor-wrap img.anchor { width: 100%; height: auto; display: block; }
.v2 .screen.tall .anchor-wrap .ba-bar { position: absolute; right: 0; top: 100%; }

/* smaller side photo with the button: button under the photo, on its outer side */
.v2 .side-photo.ba .ba-frame, .v2 .side-photo.ba .ba-bar { width: calc(var(--w) / 0.664); }
.v2 .side-photo.ba .ba-frame img:not(.ba-before) { width: 100%; display: block; }
.v2 .side-photo.ba.right .ba-frame, .v2 .side-photo.ba.right .ba-bar { margin-left: auto; }
.v2 .side-photo.ba.left .ba-bar { text-align: left; }

/* portrait pair where one photo has the button */
.v2 .screen.pair .ba { position: absolute; width: 27%; }
.v2 .screen.pair .ba .ba-frame img:not(.ba-before) { position: static; width: 100%; display: block; }
.v2 .screen.pair .ba .ba-bar { position: absolute; right: 0; top: 100%; }

/* Two photos of different sizes (Dry Creek laundry + office): first at the top,
   second dropped lower, together filling the 16.8% band.  Sizes come from her
   slide as % of the page width (--wa, --wb, --drop).                         */
.v2 .screen.duo { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 16.8%; }
.v2 .screen.duo img, .v2 .screen.duo .ba { position: static; display: block; }
.v2 .screen.duo .d1 { width: calc(var(--wa) / 0.664); }
.v2 .screen.duo .d2 { width: calc(var(--wb) / 0.664); margin-top: calc(var(--drop) / 0.664); }
.v2 .screen.duo .d2.ba img:not(.ba-before) { width: 100%; display: block; }

/* ---------- Footer ---------- */
footer {
  background: #f5f4f0;             /* Sarah's warm off-white */
  padding: 64px 16.8% 24px;        /* same height as before, contact info and logo sit near the bottom */
  border-top: 1px solid #eee;
  margin-top: auto;
}
.footer-content {
  display: flex;
  flex-direction: row-reverse;     /* contact info on the left, logo on the right */
  justify-content: space-between;
  align-items: flex-end;           /* contact info and logo line up along the bottom */
  gap: 40px;
}
.footer-links a:last-child { margin-bottom: 0; }
.footer-logo img { height: 72px; width: auto; }
.footer-logo .wordmark { font-size: 30px; }
.footer-links { text-align: left; font-size: 14.5px; }
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links a:nth-last-child(2) { margin-bottom: 0; }   /* Instagram, now that the city line sits under it */
.footer-place { display: block; margin-top: 4px; font-weight: 300; color: #8a8a8a; }   /* city line under Instagram: Averta Light, soft grey */
.ig-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Projects page ---------- */
.project-list { padding-bottom: 80px; }
.project-list .project-hero ~ .project-hero { margin-top: 90px; }
.view-link {
  margin-top: 1.6em;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Phones & small tablets ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 60px; }
  nav { padding: 0 20px; }
  .logo img { height: 34px; }
  .menu { gap: 18px; }
  .menu a { font-size: 11px; }


  .gallery { padding: 40px 0 60px; }
  .screen, .screen.tall {
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
  }
  .screen img, .screen.tall img, .screen.tall img.anchor, .screen.tall img.companion {
    position: static;
    transform: none !important;
    height: auto;
  }
  /* alternate photo widths so the phone version keeps some rhythm */
  .screen img { width: 82% !important; margin-left: 0; }
  .v2 .full { width: 100%; }
  .v2 .side-photo { width: 100%; margin-bottom: 28px; }
  .v2 .screen.tall .anchor-wrap { width: 82%; margin-left: auto; }
  .screen .ba img { width: 100% !important; }
  .v2 .screen.tall .anchor-wrap .ba-bar { position: static; }
  .v2 .side-photo img { width: 100%; }
  .v2 .full img { width: 100%; max-height: none; }
  .v2 .page-title-wrap { padding: calc(var(--nav-h) + 30px) 22px 0; }
  .v2 .gallery { padding-top: calc(var(--nav-h) + 20px); }
  .v2 .gallery { padding-bottom: 56px; }   /* last photo to footer: double the 28px gap between photos */
  .screen img:nth-child(even) { margin-left: auto; }
  .screen img.wide-m { width: 100% !important; }
  .full { margin-bottom: 28px; }

  footer { padding: 40px 20px 14px; }   /* same height, contact info and logo sit near the bottom */
  /* phones: contact left, logo right, side by side */
  .footer-content { flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .footer-logo img { height: 64px; }
  .footer-logo .wordmark { font-size: 22px; }
  .footer-links { text-align: left; font-size: 12.5px; }
  .footer-links a { justify-content: flex-start; }
  /* anchor + smaller rows: keep a gap between the stacked photos */
  .v2 .screen.tall { gap: 28px; }
  .projects-page footer, .v2 footer, .about-page footer { padding-left: 20px; padding-right: 20px; }
  /* anchor + smaller rows: first photo on the left edge, second on the right (not centred) */
  .screen.tall { align-items: flex-start; }
  .screen.tall > :nth-child(even) { margin-left: auto; }
  /* photos with a before/after button keep the same left/right rhythm */
  .v2 .side-photo.ba .ba-frame, .v2 .side-photo.ba .ba-bar { width: 100%; }
  .v2 .screen.pair .ba, .v2 .screen.duo .ba { position: static; width: 82%; }
  .v2 .screen.pair .ba .ba-bar { position: static; }
  .ba-bar { padding: 5px 18px 0; }   /* phones: further in, so it never touches the screen edge */
  .v2 .screen .ba.p2, .v2 .screen .ba.d2 { margin-left: auto; }
  .v2 .screen.duo { padding: 0; display: flex; flex-direction: column; }
  .v2 .screen.duo .d1, .v2 .screen.duo .d2 { width: 82%; margin-top: 0; }
  .v2 .screen.duo .d2 { margin-left: auto; }
}

/* ---------- Selected Works on phones ----------
   Less text: no big two-line title.  The project name takes the place of the
   word LOCATION, in the same font (Averta Regular, capitals). */
@media (max-width: 820px) {
  .projects-page .project-title { display: none; }
  .projects-page .location-label .ll-word { display: none; }
  .projects-page .location-label .ll-name { display: inline; }
  .projects-page a.ll-name { color: inherit; text-decoration: none; }   /* the name is a link to the project page */
  .projects-page .location-label { font-size: 24px; }
  /* all the text left-aligned on phones */
  .projects-page .hero-text { align-items: flex-start; text-align: left; }
}

/* Vineyard View's square photo on Selected Works: centred once the photo
   stacks above the text (phones and narrow windows); left next to the line on desktop */
@media (max-width: 1050px) {
  .project-hero.contain .hero-image img { object-position: center center; }
}
