/* ==========================================================================
   components.css - every reusable piece of the site.

   Naming: .block, .block__element, .block--modifier
   Mobile-first: the rules here are the 390px layout; responsive.css adds
   the desktop layout. Measurements quoted in comments are Pixieset's, at
   1440px unless stated.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Wordmark: two stacked lines, Fraunces uppercase.
   -------------------------------------------------------------------------- */

.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-wordmark);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wordmark);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent);
}

.wordmark__line {
  display: block;
}

.wordmark:hover {
  color: var(--color-accent-strong);
}

/* --------------------------------------------------------------------------
   Site header. Not sticky: Pixieset's scrolls away with the page.
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: var(--z-header);
  background-color: var(--color-bg);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: var(--header-height);
}

/* --------------------------------------------------------------------------
   Primary navigation
   Mobile: full-screen --color-bg-alt panel opened by .nav-toggle, items
   centered in Fraunces, sub-menus expand in place with a chevron.
   Desktop rules (split nav around the wordmark, hover dropdowns) live in
   responsive.css. Without JavaScript, noscript.css shows the mobile nav
   as a static list instead of a panel.
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav-panel);
  display: flex;
  flex-direction: column;
  padding: var(--header-height) var(--container-pad) var(--space-xl);
  background-color: var(--color-bg-alt);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out),
    visibility 0s linear var(--duration);
}

.nav.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--duration) var(--ease-out), visibility 0s;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__item {
  position: relative;
  text-align: center;
}

/* Mobile item: Fraunces 21.4px, 51px rows (Pixieset mobile menu). */
.nav__link {
  display: inline-block;
  padding-block: 12px;
  font-family: var(--font-display);
  font-size: var(--text-menu);
  font-weight: var(--weight-regular);
  letter-spacing: -0.02em;
  line-height: 27px;
  text-decoration: none;
  color: var(--color-accent);
  cursor: pointer;
}

.nav__link:hover,
.nav__link[aria-current] {
  color: var(--color-accent-strong);
}

/* INFO is a button (it has no page of its own). Make it look like the
   links and give it the full row, so the chevron sits at the right edge. */
.nav__trigger {
  inline-size: 100%;
}

/* Chevron: on INFO it is part of the button; on GALLERIES it is a
   separate button, because the word itself links to /galleries/. */
.nav__trigger::after,
.nav__expand::before {
  content: "";
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 21px;
  inline-size: 9px;
  block-size: 9px;
  border-inline-end: 1.2px solid var(--color-cta-line);
  border-block-end: 1.2px solid var(--color-cta-line);
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__item.is-open > .nav__trigger::after,
.nav__item.is-open > .nav__expand::before {
  inset-block-start: 26px;
  transform: rotate(-135deg);
}

.nav__expand {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  inline-size: 51px;
  block-size: 51px;
}

/* Sub-menu: hidden until its item is open. On mobile it opens in place
   between two hairlines, items in small Lato capitals. */
ul.nav__submenu {
  display: none;
  flex-direction: column;
  margin-block: var(--space-xs);
  padding-block: 18px;
  border-block: var(--border-width) solid var(--color-rule);
}

.nav__item.is-open > .nav__submenu {
  display: flex;
}

.nav__sublink {
  display: block;
  padding-block: 11px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-nav);
  line-height: 22px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent);
}

.nav__sublink:hover,
.nav__sublink[aria-current] {
  color: var(--color-accent-strong);
}

.nav__sublink[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent-soft);
  text-underline-offset: 0.5em;
}

/* Hamburger: three thin lines; becomes a thin X above the open panel. */
.nav-toggle {
  position: relative;
  z-index: var(--z-nav-toggle);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  inline-size: 44px;
  block-size: 44px;
  margin-inline-end: -8px;
  color: var(--color-accent);
}

.nav-toggle__bar {
  display: block;
  inline-size: 27px;
  block-size: 1px;
  background-color: currentColor;
  transition: transform var(--duration) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg) scaleX(0.75);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg) scaleX(0.75);
}

/* --------------------------------------------------------------------------
   Underlined CTA ("Learn More", "View Portfolio", "More About Me").
   Fraunces 20px, 20px side padding, 1px underline across the padded box.
   -------------------------------------------------------------------------- */

.cta-link {
  display: inline-block;
  padding: 12px 20px;
  border-block-end: var(--border-width) solid var(--color-cta-line);
  font-family: var(--font-display);
  font-size: var(--text-cta);
  font-weight: var(--weight-regular);
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--color-accent);
  transition: color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.cta-link:hover {
  color: var(--color-accent-strong);
  border-block-end-color: var(--color-accent-strong);
}

/* --------------------------------------------------------------------------
   Media: every photo slot. width/height attributes reserve the space; the
   wrapper can force a crop with aspect-ratio + object-fit.
   -------------------------------------------------------------------------- */

.media {
  margin: 0;
  background-color: var(--color-bg-alt);
}

.media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.media--square {
  aspect-ratio: 1;
}

/* --------------------------------------------------------------------------
   Hero (home)
   Phone: headline, then one square photo per slide with "1 --- 3",
   arrows either side and the slide's CTA underneath.
   Desktop (responsive.css): small photo low left, large centre, small
   photo high right; tagline and counter top left; arrows and CTA bottom
   right. Each slide carries its own counter, so the numbers are right
   without JavaScript; main.js only switches slides and reveals arrows.
   -------------------------------------------------------------------------- */

.hero {
  /* 80px under the collage at 1440, nothing on phones (the next block's
     own padding is the whole gap there). */
  padding-block: 30px clamp(0px, 7.62vw - 29.7px, 80px);
}

.hero__title {
  /* Narrow enough on phones to break "Capturing / Memories / One /
     Photograph / At A Time" as Pixieset does. */
  max-inline-size: min(830px, max(290px, 60vw));
  margin-inline: auto;
  margin-block-end: 20px;
  text-align: center;
  text-transform: capitalize;
}

.hero-slide {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  grid-template-areas:
    "tag    tag    tag"
    "center center center"
    "prev   count  next"
    "cta    cta    cta";
  align-items: center;
}

.hero-slide__tagline {
  grid-area: tag;
  max-inline-size: 300px;
  margin: 0 auto 40px;
  font-family: var(--font-label);
  font-size: var(--text-tagline);
  letter-spacing: var(--tracking-tagline);
  line-height: var(--leading-tagline);
  text-align: center;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-slide__center {
  grid-area: center;
  justify-self: center;
  inline-size: 86%;
  margin-block-end: 28px;
}

.hero-slide__left,
.hero-slide__right {
  display: none;
}

/* "1 ------- 3" */
.hero-slide__count {
  grid-area: count;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-counter);
  line-height: 16px;
  color: var(--color-muted);
}

.hero-slide__count-line {
  display: block;
  inline-size: 70px;
  block-size: 1px;
  background-color: currentColor;
}

.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--color-cta-line);
}

.hero-slide__btn[hidden] {
  display: none;
}

.hero-slide__btn:hover {
  color: var(--color-accent);
}

.hero-slide__btn svg {
  inline-size: 18px;
  block-size: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.hero-slide__btn--prev {
  grid-area: prev;
  justify-self: end;
}

.hero-slide__btn--next {
  grid-area: next;
  justify-self: start;
}

.hero-slide__cta {
  grid-area: cta;
  justify-self: center;
  margin-block-start: 38px;
}

/* --------------------------------------------------------------------------
   Split: text beside a framed photo ("Why should you choose me").
   Phone: frame first, then text.
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.split__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.split__body > h1,
.split__body > h2 {
  /* 264px on phones (Pixieset wraps "Outdoor Family / Sessions"), 517px
     at 1440. */
  max-inline-size: max(264px, 36vw);
}

.split__body > p {
  margin-block-start: var(--space-lg);
}

.split__body > .cta-link {
  margin-block-start: var(--space-md);
}

/* Square --color-bg-alt frame with the photo centred inside it. */
.frame {
  order: -1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background-color: var(--color-bg-alt);
}

.frame .media {
  inline-size: 64%;
}

/* --------------------------------------------------------------------------
   Photo grids
   .photo-grid  3 x 3 squares, 16px gaps
   .mosaic      3 x 2 squares, hairline gaps
   One column on phones.
   -------------------------------------------------------------------------- */

.photo-grid {
  display: grid;
  gap: var(--gap-grid);
}

.mosaic {
  display: grid;
  gap: 0;
}

/* --------------------------------------------------------------------------
   Services ("What I do")
   -------------------------------------------------------------------------- */

.services__title {
  margin-block-end: 28px;
}

.services {
  display: grid;
  gap: 156px;
  /* Phones only (reset in responsive.css): Pixieset leaves extra room
     under the last service before "View Portfolio". */
  padding-block-end: 53px;
}

.service__number {
  margin: 0;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: 24px;
  color: var(--color-accent);
}

.service__title {
  margin-block-start: 26px;
}

/* The fourth service has no list; Pixieset centres its title and sets it
   straight under the number. */
.service--plain .service__title {
  margin-block-start: 0;
  text-align: center;
}

.service__list {
  font-size: var(--text-list);
  line-height: var(--leading-body);
}

.services__cta {
  padding-block: var(--space-block) 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.quote {
  margin: 0 auto;
  max-inline-size: 861px;
  text-align: center;
}

.quote p {
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Feature card ("Focusing on the bigger picture")
   A --color-bg-alt panel that bleeds 40px past the content edges, an
   eyebrow, then the photo beside a --color-bg text panel.
   -------------------------------------------------------------------------- */

.feature {
  --feature-bleed: clamp(10px, 2.78vw, 40px);
  margin-inline: calc(-1 * var(--feature-bleed));
  padding: 67px var(--feature-bleed);
  background-color: var(--color-bg-alt);
}

.feature__eyebrow {
  margin-block-end: var(--space-feature-gap);
}

.feature__grid {
  display: grid;
}

.feature__media {
  aspect-ratio: 330 / 350;
}

.feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 84px 0;
}

/* Inside the bg-alt card the text sits on a --color-bg panel on desktop
   only; on phones it sits on bg-alt, where --color-muted fails contrast. */
.feature__body p {
  margin-block-start: var(--space-feature-gap);
  color: var(--color-text);
}

.feature__body .cta-link {
  margin-block-start: 72px;
}

/* --------------------------------------------------------------------------
   Footer: copyright centred, social icons under it, back-to-top arrow at
   the right on desktop.
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-block);
}

.site-footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.site-footer__legal {
  margin: 0;
  font-size: var(--text-small);
  line-height: 25px;
  color: var(--color-muted);
}

.social-list {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--color-cta-line);
}

.social-link:hover {
  color: var(--color-accent);
}

.social-link svg {
  inline-size: 16px;
  block-size: 16px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--color-cta-line);
}

.back-to-top:hover {
  color: var(--color-accent);
}

.back-to-top svg {
  inline-size: 20px;
  block-size: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

/* --------------------------------------------------------------------------
   Split, intro variant (pricing): eyebrow between heading and paragraph,
   and Pixieset's tighter desktop / looser phone spacing.
   -------------------------------------------------------------------------- */

.split--intro .split__body > .eyebrow {
  margin-block-start: 32px;
}

.split--intro .split__body > p {
  margin-block-start: clamp(27px, 72.3px - 3.14vw, 60px);
}

.split--intro .split__body > .cta-link {
  margin-block-start: clamp(16px, 76.3px - 4.19vw, 60px);
}

/* --------------------------------------------------------------------------
   Pricing packages
   Phone: title, square photo, then the price label and the includes list
   pushed to the right. Desktop (responsive.css): photo on one side, title
   top-left and label top-right of the text column, includes at the bottom
   right; rows alternate sides. Hairlines between packages.
   -------------------------------------------------------------------------- */

.packages {
  margin-block-start: clamp(39px, 9.29px + 7.62vw, 119px);
}

.package {
  --package-gap: clamp(60px, 52.57px + 1.905vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "media"
    "label"
    "incl";
}

.package + .package {
  margin-block-start: var(--package-gap);
  padding-block-start: var(--package-gap);
  border-block-start: var(--border-width) solid var(--color-rule);
}

.package__title {
  grid-area: title;
  max-inline-size: 407px;
  margin-block-end: 40px;
  font-size: clamp(30.63px, 16px + 3.75vw, 70px);
  line-height: var(--leading-display);
}

.package__media {
  grid-area: media;
}

.package__label {
  grid-area: label;
  justify-self: end;
  margin: 40px 0 0;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-counter);
  line-height: 22px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.package__includes {
  grid-area: incl;
  justify-self: end;
  margin-block-start: 30px;
}

/* --------------------------------------------------------------------------
   FAQ: every answer visible, three columns on desktop (Pixieset is not an
   accordion).
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 57px 80px;
  margin-block-start: clamp(29px, 14.5px + 3.71vw, 68px);
}

.faq__question {
  font-size: clamp(19.51px, 16px + 0.9vw, 28.96px);
  line-height: var(--leading-md);
}

.faq__answer {
  margin-block-start: clamp(21px, 17.66px + 0.857vw, 30px);
  font-size: clamp(13.98px, 17.12px - 0.218vw, 16.27px);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Reviews intro: heading, hairline and CTA centred; square photo beside
   them on desktop (left), under them on phones. No top padding: the photo
   starts right under the header.
   -------------------------------------------------------------------------- */

.reviews-intro {
  display: grid;
  gap: 36px;
}

.reviews-intro__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reviews-intro__title {
  max-inline-size: max(270px, 31vw);
}

.reviews-intro__rule {
  inline-size: min(100%, max(270px, 48vw));
  block-size: 1px;
  margin: clamp(39px, 27.49px + 2.952vw, 70px) 0 clamp(37px, 26.97px + 2.571vw, 64px);
  border: 0;
  background-color: var(--color-rule);
}

/* --------------------------------------------------------------------------
   Panel: a --color-bg-alt band that bleeds 40px past the content edges
   (10px on phones), like the home "bigger picture" card.
   -------------------------------------------------------------------------- */

.panel {
  --panel-bleed: clamp(10px, 2.78vw, 40px);
  margin-inline: calc(-1 * var(--panel-bleed));
  padding: var(--space-block) var(--panel-bleed) clamp(65px, 52px + 3.33vw, 100px);
  background-color: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   Testimonials: --color-bg cards on the panel. Photo top-left, ".01"
   top-right, the review, then the name in light italic Fraunces, right.
   -------------------------------------------------------------------------- */

.testimonials {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-block-start: clamp(52px, 44.2px + 2vw, 73px);
}

.testimonial {
  --testimonial-gap: clamp(38px, 46.23px - 0.571vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
  padding: clamp(20px, 1.8px + 4.667vw, 69px);
  /* Pixieset leaves a little more under the name than above the photo. */
  padding-block-end: clamp(28px, 12px + 4.1vw, 71px);
  background-color: var(--color-bg);
}

.testimonial__media {
  inline-size: clamp(210px, 264.86px - 3.81vw, 250px);
}

.testimonial__number {
  justify-self: end;
  margin: 0;
  font-family: var(--font-label);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-nav);
  line-height: 1.6;
  color: var(--color-muted);
}

.testimonial__quote {
  grid-column: 1 / -1;
  margin: var(--testimonial-gap) 0 0;
  font-size: var(--text-list);
  line-height: var(--leading-body);
}

.testimonial__name {
  grid-column: 1 / -1;
  justify-self: end;
  margin-block-start: var(--testimonial-gap);
  font-family: var(--font-display);
  font-size: clamp(21.42px, 16px + 1.389vw, 36px);
  font-style: italic;
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-md);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Banner (portfolio): full-bleed photo with an eyebrow and title centred
   on it in white. Pixieset's tint is 20% black; ours is 50% so the white
   text keeps at least 4.5:1 over light photos (4.9:1 over the placeholder).
   Re-check against the real photo when it arrives (phase2-backlog).
   -------------------------------------------------------------------------- */

.banner {
  --banner-bleed: clamp(10px, 2.78vw, 40px);
  position: relative;
  margin-inline: calc(-1 * var(--banner-bleed));
  aspect-ratio: 350 / 540;
  overflow: hidden;
}

.banner__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.banner__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.banner__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  block-size: 100%;
  /* Pixieset's text block sits 16px above centre. */
  padding: 0 var(--container-pad) 32px;
  text-align: center;
  color: #ffffff;
}

.banner__eyebrow {
  color: #ffffff;
}

.banner__title {
  max-inline-size: max(270px, 29vw);
  margin-block-start: 24px;
  font-size: clamp(30.63px, 16px + 3.75vw, 70px);
  line-height: var(--leading-display);
  text-transform: capitalize;
  color: #ffffff;
}

/* Statement heading beside a long paragraph (portfolio). */
.columns {
  display: grid;
  gap: 44px;
  align-items: start;
}

.columns p {
  max-width: none;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Gallery slideshow sets (gallery pages)
   Each set: a stage showing one photo contained in a square, thumbnails,
   and arrows. Phone: 330x328 stage, then a four-up thumbnail strip between
   left/right arrows. Desktop (responsive.css): 680px square stage centred,
   vertical thumbnail rail on the left, up/down arrows on the right.
   Without JavaScript (noscript.css) every photo is shown stacked and the
   thumbnails and arrows stay hidden.
   -------------------------------------------------------------------------- */

.slideshow {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  grid-template-areas:
    "stage stage  stage"
    "prev  thumbs next";
  align-items: center;
}

.slideshow + .slideshow {
  margin-block-start: clamp(90px, 71.06px + 4.857vw, 141px);
}

.slideshow__stage {
  grid-area: stage;
  position: relative;
  aspect-ratio: 330 / 328;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.slideshow__slide:not(.is-active) {
  display: none;
}

.slideshow__slide img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

/* ul.-qualified: reset.css zeroes ul[class] margins at higher specificity. */
ul.slideshow__thumbs {
  grid-area: thumbs;
  display: flex;
  gap: 20px;
  margin-block-start: 25px;
  overflow-x: auto;
  scrollbar-width: none;
}

.slideshow__thumbs[hidden],
.slideshow__nav [hidden] {
  display: none;
}

.slideshow__thumbs::-webkit-scrollbar {
  display: none;
}

.slideshow__thumbs li {
  display: flex;
  flex: none;
}

.slideshow__thumb {
  flex: none;
  inline-size: 40px;
  block-size: 40px;
  opacity: 0.55;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.slideshow__thumb:hover,
.slideshow__thumb[aria-current="true"] {
  opacity: 1;
}

.slideshow__thumb img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* The arrows sit in their own grid cells on phones. */
.slideshow__nav {
  display: contents;
}

.slideshow__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  margin-block-start: 25px;
  color: var(--color-cta-line);
}

.slideshow__btn:hover {
  color: var(--color-accent);
}

.slideshow__btn svg {
  inline-size: 18px;
  block-size: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.slideshow__btn--prev {
  grid-area: prev;
  justify-self: end;
}

.slideshow__btn--next {
  grid-area: next;
  justify-self: start;
}

/* --------------------------------------------------------------------------
   Contact form (Pixieset /contact/): form left, 2:3 photo right; photo
   under the form on phones. Labels are Lato 11px capitals; fields are
   hairline boxes. The border uses --color-cta-line (3.4:1) rather than
   Pixieset's fainter line, so the controls meet WCAG 1.4.11 (3:1).
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(67px, 2px + 16.67vw, 129px);
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.field {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.field + .field {
  margin-block-start: 45px;
}

.field__label {
  font-family: var(--font-label);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: 15px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.field__control {
  inline-size: 100%;
  block-size: 35px;
  margin-block-start: 14px;
  padding: 0 var(--space-sm);
  border: var(--border-width) solid var(--color-cta-line);
  border-radius: 0;
  background-color: transparent;
  color: var(--color-text);
  font-size: var(--text-body);
}

textarea.field__control {
  block-size: 100px;
  padding-block: var(--space-2xs);
  resize: vertical;
}

select.field__control {
  block-size: 50px;
  appearance: none;
  padding-inline-end: var(--space-xl);
  color: var(--color-muted);
  font-size: 15px;
  /* Thin chevron like Pixieset's, inline so it costs no request (the CSP
     allows data: images). Stroke is --color-cta-line. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23967f78' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: calc(100% - 20px) 50%;
  background-size: 14px 8px;
  background-repeat: no-repeat;
}

select.field__control:has(option:checked:not([value=""])) {
  color: var(--color-text);
}

.field__error {
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-small);
  color: var(--color-danger);
}

.field__error:empty {
  display: none;
}

.field.has-error .field__control {
  border-color: var(--color-danger);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.form__trap {
  position: absolute;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

.form__submit {
  margin-block-start: 46px;
  cursor: pointer;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form__status {
  margin: var(--space-sm) 0 0;
  font-size: var(--text-small);
}

.form__status:empty {
  display: none;
}

.form__status[data-state="error"] {
  color: var(--color-danger);
}

.form__status[data-state="success"] {
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   Notice: a short centred message page (404, and the contact Worker's
   reply when the form is posted without JavaScript).
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-2xl);
  text-align: center;
}

.notice p {
  margin-inline: auto;
}

.notice__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  margin-block-start: var(--space-sm);
}

/* Package prices link straight to that session on Session (booking_*_url
   in tools/site.json). Underlined so they read as links. */
.package__price-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-cta-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.package__price-link:hover {
  text-decoration-color: currentColor;
}
