/* Bio-only portfolio layout. The homepage and its shared styles stay unchanged. */
.bio-page .bio-section,
.bio-page .bio-section.photo-right {
  --gallery-height: min(740px, max(360px, calc(100svh - 240px)));
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  max-width: 1480px;
  gap: clamp(40px, 6.2vw, 100px);
  padding-top: 90px;
  padding-bottom: 120px;
}
.bio-page .bio-section.photo-right { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.bio-page .bio-section:first-of-type { padding-top: 150px; }
.bio-page .bio-section .owner-portrait,
.bio-page .bio-section .owner-copy { align-self: center; position: relative; top: auto; }
.bio-page .bio-section .bio-copy { max-width: 640px; padding: 0; min-width: 0; }
.bio-page .bio-copy .eyebrow { font-size: 14px; line-height: 1.6; letter-spacing: .09em; margin: 0 0 20px; }
.bio-page .bio-copy .owner-deck { font-size: clamp(44px, 4.25vw, 66px); line-height: 1.05; margin: 0 0 32px; text-wrap: initial; }
.bio-page .bio-section .bio-gallery { width: 100%; margin: 0; }
.bio-page .bio-gallery .bio-gallery-window {
  position: relative;
  width: min(100%, calc(var(--gallery-height) * .6666667));
  max-width: none;
  aspect-ratio: 2 / 3;
  margin-inline: auto;
  background: #b9b9b7;
  box-shadow: 0 12px 35px #0f0f0e12;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  isolation: isolate;
}
.bio-page .bio-gallery-window:active { cursor: grabbing; }
.bio-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; transition: opacity .55s cubic-bezier(.22,.61,.36,1), visibility .55s; }
.bio-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.bio-page .bio-gallery-window .bio-slide img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  transform: none !important; will-change: auto;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
/* The rider is cropped within the frame, keeping the original source pixels. */
.bio-page .bio-gallery-window .bio-slide.is-portrait-crop img { object-fit: cover; object-position: 60% 50%; }
.bio-page #dating .bio-gallery-window .bio-slide img { object-fit: cover; }
.bio-page .bio-gallery-controls {
  width: min(100%, calc(var(--gallery-height) * .6666667));
  display: flex; align-items: center; gap: 20px; min-height: 64px; margin: 5px auto 0;
}
.bio-gallery-count { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.bio-gallery-divider { opacity: .4; font-weight: 400; }
.bio-gallery-progress { height: 1px; flex: 1; background: #0f0f0e30; overflow: hidden; }
.bio-gallery-progress > span { display: block; width: var(--gallery-progress); height: 100%; background: var(--ink); transition: width .45s ease; }
.bio-gallery-buttons { display: flex; gap: 8px; }
.bio-gallery-buttons button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #0f0f0e40; border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
.bio-gallery-buttons button:hover { opacity: 1; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bio-gallery-buttons button:focus-visible { outline-offset: 3px; }
.bio-gallery:focus-visible { outline: 1px solid var(--ink); outline-offset: 10px; }
.bio-gallery-error { margin: 4px auto 0; max-width: 420px; font-size: 14px; line-height: 1.5; }
.bio-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bio-roster { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.bio-roster li { display: flex; align-items: center; min-width: 0; min-height: 44px; border-top: 1px solid #0f0f0e29; padding: 9px 0; font-size: 18px; line-height: 1.45; letter-spacing: -.02em; }
.bio-credentials { list-style: none; margin: 0; padding: 0; }
.bio-credentials li { border-top: 1px solid #0f0f0e29; padding: 17px 0 18px; }
.bio-credentials li:last-child { padding-bottom: 0; }
.credential-name { display: block; font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
.credential-body, .credential-focus { display: block; font-size: 16px; line-height: 1.5; letter-spacing: -.015em; color: #41413f; }
.credential-body { margin-top: 7px; }
.credential-focus { margin-top: 2px; }
@media (min-width: 1101px) {
  .bio-page .chapter-nav.bio-nav { left: var(--gutter); right: var(--gutter); width: auto; max-width: none; justify-content: center; gap: clamp(34px, 4vw, 64px); overflow: visible; }
  .bio-page .chapter-nav.bio-nav a:first-child { position: absolute; left: 0; margin: 0; }
}
@media (max-width: 1100px) {
  .bio-page .bio-section, .bio-page .bio-section.photo-right {
    --gallery-height: min(680px, max(310px, calc(100svh - 260px)));
    display: flex; flex-direction: column; align-items: stretch;
    max-width: 780px; gap: 34px; padding: 70px var(--gutter) 80px;
  }
  .bio-page .bio-section:first-of-type { padding-top: 138px; }
  .bio-page .bio-section .bio-gallery { max-width: 560px; order: 0; align-self: center; }
  .bio-page .bio-section .bio-copy { max-width: 640px; width: 100%; order: 1; align-self: center; }
  .bio-page .bio-copy .owner-deck { font-size: clamp(42px, 6.2vw, 60px); }
  .bio-page .chapter-nav.bio-nav a { justify-content: center; text-align: center; }
  .bio-page .chapter-nav.bio-nav a::after { left: 15%; right: 15%; }
}
@media (max-width: 600px) {
  .bio-page .bio-section, .bio-page .bio-section.photo-right { --gallery-height: min(570px, max(300px, calc(100svh - 240px))); gap: 28px; padding-top: 48px; padding-bottom: 65px; }
  .bio-page .bio-section:first-of-type { padding-top: 128px; }
  .bio-page .bio-copy .eyebrow { font-size: 13px; letter-spacing: .065em; margin-bottom: 18px; }
  .bio-page .bio-copy .owner-deck { font-size: clamp(38px, 10vw, 50px); margin-bottom: 28px; }
  .bio-roster { gap: 0 22px; }
  .bio-roster li { font-size: 17px; padding-block: 11px; min-height: 48px; }
  .credential-name { font-size: 18px; }
  .credential-body, .credential-focus { font-size: 16px; }
  .bio-page .bio-gallery-controls { gap: 14px; min-height: 60px; }
  .bio-gallery-buttons { gap: 6px; }
  .bio-page .bio-closing { padding-top: 30px; }
}
@media (max-width: 350px) { .bio-roster { grid-template-columns: 1fr; } }
@media (max-height: 560px) and (max-width: 1100px) and (orientation: landscape) {
  .bio-page .bio-section, .bio-page .bio-section.photo-right { --gallery-height: max(180px, calc(100svh - 180px)); }
}
.motion-off .bio-slide, .motion-off .bio-gallery-progress > span { transition: none; }
@media (prefers-reduced-motion: reduce) { .bio-slide, .bio-gallery-progress > span, .bio-gallery-buttons button { transition: none; } }

/* Counseling is a single portrait, with the same framing as the galleries. */
.bio-page .bio-static-portrait .bio-gallery-window { cursor: default; touch-action: auto; }
.bio-page .bio-static-portrait .bio-gallery-window img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
