@import url("https://fonts.googleapis.com/css2?family=Gilda+Display&family=Jost:ital,wght@0,400..600;1,400&display=swap");


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --ah-stage: #141013;        /* page: theatre-curtain black */
  --ah-wing: #1f181d;         /* menus and panels */
  --ah-line: rgba(239, 232, 228, 0.14);
  --ah-text: #efe8e4;
  --ah-text-soft: #b7aeb0;
  --ah-pointe: #e8b4b8;       /* ballet-pink accent */
  --ah-pointe-wash: rgba(232, 180, 184, 0.09);

  --ah-font-display: "Gilda Display", Didot, "Bodoni 72", Georgia, serif;
  --ah-font-ui: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --ah-container: 1120px;
  --ah-gutter: clamp(16px, 4vw, 32px);
  --ah-hero-photo: 580px;     /* width of the homepage photo file (…-3.jpg) */
  --ah-radius: 2px;
  --ah-shadow-panel: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--ah-stage);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ah-font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ah-text);
  background-color: var(--ah-stage);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--ah-pointe);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ah-text);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--ah-font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ah-text);
}

p {
  margin: 0 0 1em;
}

::selection {
  color: var(--ah-stage);
  background: var(--ah-pointe);
}


/* ==========================================================================
   3. Zenfolio parts that can't work in a restored copy
   ========================================================================== */

#mat-frame-height,          /* decorative frame pieces drawn by script */
.pv-border,
.pv-wait,                   /* "loading" spinner */
.prefetch,
.scrapbook-popup,           /* login dialog; Zenfolio login is gone */
.splitter-clear,
.homemenu-left,
.homemenu-right,
.homemenu .sep,
.menu-submenu-top-item,     /* duplicate of the parent link inside each dropdown */
.welcome-bg,
.ftr-top-item > .footer-color5 {   /* the "|" separators */
  display: none !important;
}

.hdr-right-holder:empty,
.ftr-left-holder:empty,
.ftr-right-holder:empty,
.home-btns:empty,
.splitter-left-fixed:not(:has(img, a, input, p)) {
  display: none !important;
}


/* ==========================================================================
   4. Page frame
   ========================================================================== */

#page-frame,
.mat-frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-frame {
  flex: 1 0 auto;
  width: 100%;
}

/* A soft pool of light behind the photo, like a stage spotlight */
.layout-content {
  width: 100%;
  background-image: radial-gradient(ellipse 70% 560px at 50% 340px, var(--ah-pointe-wash), transparent 70%);
}

.layout {
  max-width: var(--ah-container);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--ah-gutter) clamp(2.5rem, 5vw, 4rem);
}

.column > .portfolio-section + .portfolio-section {
  margin-top: clamp(2rem, 4vw, 3rem);
}


/* ==========================================================================
   5. Header bar (inner pages) and the big homepage logo
   ========================================================================== */

.hdr-outer {
  height: auto !important;
  background-color: var(--ah-stage);
  border-bottom: 1px solid var(--ah-line);
}

/* The homepage shows the large logo, so the small bar would repeat it */
body:has(.homelogo) .hdr-outer {
  display: none;
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--ah-container);
  height: auto !important;
  margin-inline: auto;
  padding: 0.9rem var(--ah-gutter);
}

.hdr-logo {
  display: block;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: min(364px, 72vw);
}

.hdr-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.homelogo {
  text-align: center;
}

.homelogo-logo {
  width: auto !important;
  height: auto !important;
  margin: 0 auto;
  line-height: 0;
}

.homelogo-logo img {
  display: block;
  width: min(910px, 100%);
  height: auto;
  margin-inline: auto;
}


/* ==========================================================================
   6. Main menu and dropdowns
   ========================================================================== */

.homemenu {
  position: relative;
}

.homemenu-middle {
  border-top: 1px solid var(--ah-line);
  border-bottom: 1px solid var(--ah-line);
}

.homemenu-inner,
.ftr-menu > ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.homemenu-inner {
  padding-block: 0.25rem;
}

.homemenu-top-item,
.ftr-top-item {
  position: relative;
}

.menu-top-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.8rem 0.7rem;
  font-family: var(--ah-font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ah-text);
  text-decoration: none;
  white-space: nowrap;
}

.homemenu-top-item:hover > .menu-top-item > a,
.homemenu-top-item:focus-within > .menu-top-item > a {
  color: var(--ah-pointe);
}

.menu-item-dda {
  font-size: 0.55em;
  opacity: 0.6;
}

/* Dropdown panels (main menu opens down, footer menu opens up) */
.homemenu-submenu,
.ftr-submenu {
  position: absolute;
  left: 50%;
  z-index: 40;
  min-width: 15rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.homemenu-submenu {
  top: 100%;
  padding-top: 0.35rem;
  transform: translate(-50%, 6px);
}

.ftr-submenu {
  bottom: 100%;
  padding-bottom: 0.35rem;
  transform: translate(-50%, -6px);
}

.homemenu-top-item:hover > .homemenu-submenu,
.homemenu-top-item:focus-within > .homemenu-submenu,
.ftr-top-item:hover > .ftr-submenu,
.ftr-top-item:focus-within > .ftr-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.menu-submenu-middle {
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 0;
  text-align: left;
  background-color: var(--ah-wing);
  border: 1px solid var(--ah-line);
  border-top: 2px solid var(--ah-pointe);
  box-shadow: var(--ah-shadow-panel);
  scrollbar-width: thin;
  scrollbar-color: var(--ah-text-soft) transparent;
}

.menu-submenu-middle ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-submenu-middle li {
  break-inside: avoid;
}

.menu-submenu-middle a {
  display: block;
  padding: 0.45rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ah-text-soft);
  text-decoration: none;
  white-space: nowrap;
}

.menu-submenu-middle a:hover,
.menu-submenu-middle a:focus-visible {
  color: var(--ah-text);
  background-color: var(--ah-pointe-wash);
}

/* Long lists such as "View Your Photos" open in columns, centred under the
   whole menu instead of under one item */
.homemenu-top-item:has(.menu-submenu-middle li:nth-child(13)),
.ftr-top-item:has(.menu-submenu-middle li:nth-child(13)) {
  position: static;
}

@media (min-width: 761px) {
  :is(.homemenu-top-item, .ftr-top-item):has(.menu-submenu-middle li:nth-child(13)) > .menu-submenu {
    width: min(46rem, calc(100vw - 2 * var(--ah-gutter)));
  }

  .menu-submenu-middle ul:has(> li:nth-child(13)) {
    columns: 3 13rem;
    column-gap: 0;
  }
}

/* Phones: every panel spans the menu's width */
@media (max-width: 760px) {
  .menu-top-item > a {
    padding: 0.65rem 0.7rem;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .homemenu-top-item,
  .ftr-top-item {
    position: static;
  }

  .homemenu-submenu,
  .ftr-submenu {
    left: 0;
    right: 0;
    min-width: 0;
    transform: translateY(6px);
  }

  .ftr-submenu {
    transform: translateY(-6px);
  }

  .homemenu-top-item:hover > .homemenu-submenu,
  .homemenu-top-item:focus-within > .homemenu-submenu,
  .ftr-top-item:hover > .ftr-submenu,
  .ftr-top-item:focus-within > .ftr-submenu {
    transform: none;
  }

  .menu-submenu-middle a {
    white-space: normal;
  }

  .menu-submenu-middle ul:has(> li:nth-child(10)) {
    columns: 2;
    column-gap: 0;
  }
}


/* ==========================================================================
   7. Homepage photo
   ========================================================================== */

.stretcher {
  display: flex;
  justify-content: center;
}

.zb-player {
  width: min(var(--ah-hero-photo), 100%) !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.zbp-holder,
.zbp-holder > div {
  position: relative;
  width: 100% !important;
  height: auto !important;
}

.pv,
.pv-outer,
.pv-inner {
  display: block;
  position: static !important;
  width: 100% !important;
  height: auto !important;
}

.pv-img {
  display: block;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(239, 232, 228, 0.08);
}


/* ==========================================================================
   8. Welcome statement and copyright
   ========================================================================== */

.splitter,
.splitter-right-wide,
.splitter-ie6fix {
  display: block;
  float: none;
  width: auto;
  margin: 0 !important;
}

.welcome-inner {
  text-align: center;
}

h2.welcome,
.welcome-text {
  max-width: 30ch;
  margin: 0 auto;
  font-family: var(--ah-font-display);
  font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ah-text);
  text-align: center !important;
  text-wrap: balance;
}

.welcome :is(strong, b, em, i, span) {
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

.copyright {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ah-text-soft);
}


/* ==========================================================================
   9. Footer
   ========================================================================== */

.ftr-outer {
  background-color: var(--ah-stage);
  border-top: 1px solid var(--ah-line);
}

.ftr {
  max-width: var(--ah-container);
  height: auto !important;
  margin-inline: auto;
  padding: 1.5rem var(--ah-gutter) 0.75rem;
}

.ftr-menu {
  max-height: none !important;
}

.ftr-menu > ul {
  gap: 0.25rem 1.5rem;
}

.ftr-top-item > a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--ah-text-soft);
  text-decoration: none;
}

.ftr-top-item > a:hover,
.ftr-top-item:focus-within > a {
  color: var(--ah-pointe);
}

.bottom-links {
  padding: 0.5rem var(--ah-gutter) 1.75rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--ah-text-soft);
}

.bottom-links .logo {
  letter-spacing: 0.12em;
}

.bottom-links a {
  margin-left: 0.75rem;
  color: var(--ah-text-soft);
}


/* ==========================================================================
   10. Shared pieces for other pages
   ========================================================================== */

/* Zenfolio buttons (built from left/right/middle pieces) */
.button {
  display: inline-block;
  cursor: pointer;
}

.button .left,
.button .right,
.button .icon {
  display: none;
}

.button .middle {
  padding: 0.7rem 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ah-text);
  border: 1px solid var(--ah-pointe);
  border-radius: var(--ah-radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover .middle {
  color: var(--ah-stage);
  background-color: var(--ah-pointe);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--ah-line);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ah-text);
  background-color: var(--ah-wing);
  border: 1px solid rgba(239, 232, 228, 0.35);
  border-radius: var(--ah-radius);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ah-pointe);
  box-shadow: 0 0 0 3px var(--ah-pointe-wash);
}


/* ==========================================================================
   11. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--ah-pointe);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}