/* This page's photography presentation is deliberately isolated from the
   AcademicPages masthead, navigation, sidebar, and footer. */
.apple-gallery {
  --ag-ink: #1d1d1f;
  --ag-muted: #646469;
  --ag-canvas: #f5f5f7;
  --ag-link: #0066cc;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 40px 72px;
  color: var(--ag-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.apple-gallery *, .ag-viewer * { box-sizing: border-box; }
.apple-gallery [hidden] { display: none !important; }
.apple-gallery h1, .apple-gallery h2, .apple-gallery h3,
.apple-gallery p, .apple-gallery figure { margin: 0; }
.apple-gallery figure { display: block; }
.apple-gallery figcaption { width: 100%; margin: 0; font-family: inherit; }
.apple-gallery h1, .apple-gallery h2, .apple-gallery h3 {
  padding: 0;
  border: 0;
  color: var(--ag-ink);
  font-family: inherit;
  font-weight: 650;
}
.apple-gallery a { text-decoration: none; }
.apple-gallery a:hover { text-decoration: none; }
.apple-gallery a:focus-visible, .apple-gallery button:focus-visible,
.apple-gallery [tabindex]:focus-visible,
.ag-viewer button:focus-visible, .ag-viewer a:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 5px;
}
.apple-gallery button, .ag-viewer button {
  margin: 0;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.apple-gallery .ag-intro { max-width: 850px; padding: 0 0 54px; }
.apple-gallery .ag-eyebrow {
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .045em;
  font-weight: 600;
}
.apple-gallery .ag-intro h1 {
  margin: 12px 0 20px;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.apple-gallery .ag-lead {
  max-width: 735px;
  color: var(--ag-muted);
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -.015em;
}
.apple-gallery .ag-text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--ag-link);
  font-size: 16px;
  line-height: 1.5;
}
.apple-gallery .ag-text-link:hover { text-decoration: underline; }
.apple-gallery .ag-text-link span { display: inline-block; margin-left: 7px; }
.apple-gallery .ag-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.apple-gallery .ag-section-heading h2 {
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.apple-gallery .ag-strip-controls { display: flex; gap: 10px; }
.apple-gallery .ag-circle-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8e8ed;
  color: #37373c;
  font-size: 22px;
  line-height: 1;
  transition: background-color 180ms ease;
}
.apple-gallery .ag-circle-button:hover { background: #d8d8df; }
.apple-gallery .ag-circle-button:disabled { opacity: .35; cursor: default; }
.apple-gallery .ag-feature-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: 4px 0 20px;
  border-radius: 24px 24px 0 0;
  scrollbar-width: thin;
  scrollbar-color: #c4c4c9 transparent;
}
.apple-gallery .ag-feature {
  flex: 0 0 84%;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ag-canvas);
  scroll-snap-align: start;
}
.apple-gallery .ag-photo-link { position: relative; display: block; width: 100%; overflow: hidden; color: #fff; background: #09090d; }
.apple-gallery .ag-photo-link img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.apple-gallery .ag-feature .ag-photo-link img { aspect-ratio: 3 / 2; object-fit: contain; }
.apple-gallery .ag-enlarge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(25,25,29,.68);
  backdrop-filter: blur(12px);
  transition: background-color 180ms ease;
}
.apple-gallery .ag-photo-link:hover .ag-enlarge { background: rgba(65,65,70,.9); }
.apple-gallery .ag-enlarge svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.apple-gallery .ag-feature figcaption { padding: 23px 28px 25px; }
.apple-gallery .ag-feature h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.apple-gallery .ag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
  color: #55555c;
  font-size: 14px;
  line-height: 1.5;
}
.apple-gallery .ag-meta span { color: #35353a; font-weight: 550; }
.apple-gallery .ag-credit { margin-top: 7px; color: var(--ag-muted); font-size: 13px; line-height: 1.5; }
.apple-gallery .ag-collection { margin-top: 76px; scroll-margin-top: 40px; }
.apple-gallery .ag-collection-heading { margin-bottom: 25px; }
.apple-gallery .ag-collection-heading .ag-eyebrow { margin-bottom: 9px; }
.apple-gallery .ag-count { color: var(--ag-muted); font-size: 14px; white-space: nowrap; }
.apple-gallery .ag-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.apple-gallery .ag-filters button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #d2d2d7;
  border-radius: 25px;
  color: #414146;
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
  transition: background-color 150ms ease, color 150ms ease;
}
.apple-gallery .ag-filters button:hover { background: var(--ag-canvas); }
.apple-gallery .ag-filters button[aria-pressed="true"] { border-color: var(--ag-ink); color: #fff; background: var(--ag-ink); }
.apple-gallery .ag-grid { columns: 3; column-gap: 24px; }
.apple-gallery .ag-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ag-canvas);
  vertical-align: top;
  break-inside: avoid;
}
.apple-gallery .ag-card figcaption { padding: 20px 21px 22px; }
.apple-gallery .ag-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.018em; }
.apple-gallery .ag-card .ag-meta { flex-direction: column; gap: 3px; margin-top: 11px; font-size: 13px; }
.apple-gallery .ag-card .ag-credit { font-size: 12px; }
.apple-gallery .ag-card .ag-enlarge { width: 31px; height: 31px; right: 12px; bottom: 12px; }
.apple-gallery .ag-note { max-width: 650px; margin-top: 24px; color: var(--ag-muted); font-size: 13px; line-height: 1.6; }
.apple-gallery .ag-signoff { margin-top: 10px; color: var(--ag-muted); font-size: 13px; line-height: 1.6; }

/* Native dialog supplies focus trapping and Escape-key dismissal. */
.ag-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: #101013;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ag-viewer:not([open]) { display: none; }
.ag-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ag-viewer::backdrop { background: #101013; }
.ag-viewer .ag-viewer-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 30px; gap: 20px; }
.ag-viewer .ag-viewer-position { margin: 0; color: #b9b9c0; font-size: 14px; }
.ag-viewer .ag-viewer-close {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 6px 16px;
  border: 0;
  border-radius: 25px;
  background: #2e2e33;
  color: #fff;
  font-size: 14px;
}
.ag-viewer .ag-viewer-close span { font-size: 25px; line-height: 1; }
.ag-viewer .ag-viewer-close:hover { background: #414148; }
.ag-viewer .ag-viewer-stage { display: grid; place-items: center; min-height: 0; padding: 0 30px; }
.ag-viewer .ag-viewer-image { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.ag-viewer .ag-viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 30px 25px; }
.ag-viewer .ag-viewer-caption h2 { margin: 0 0 8px; padding: 0; border: 0; color: #f5f5f7; font-family: inherit; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.ag-viewer #ag-viewer-meta { display: flex; flex-wrap: wrap; gap: 4px 15px; margin: 0; color: #c4c4cc; font-size: 14px; line-height: 1.5; }
.ag-viewer .ag-viewer-credit { margin: 5px 0 0; color: #b9b9c0; font-size: 13px; line-height: 1.5; }
.ag-viewer .ag-viewer-actions { display: flex; align-items: center; flex-shrink: 0; gap: 27px; }
.ag-viewer .ag-viewer-original { color: #a5d0ff; font-size: 13px; text-decoration: none; }
.ag-viewer .ag-viewer-original:hover { text-decoration: underline; }
.ag-viewer .ag-viewer-navigation { display: flex; gap: 10px; }
.ag-viewer .ag-viewer-navigation button { width: 44px; height: 44px; padding: 0; border: 1px solid #505058; border-radius: 50%; color: #f5f5f7; background: #242429; font-size: 23px; }
.ag-viewer .ag-viewer-navigation button:hover { background: #414148; }

@media (max-width: 1000px) {
  .apple-gallery { padding: 45px 28px 60px; }
  .apple-gallery .ag-grid { columns: 2; }
  .apple-gallery .ag-feature { flex-basis: 92%; }
  .ag-viewer .ag-viewer-actions { gap: 18px; }
  .ag-viewer .ag-viewer-original { max-width: 115px; line-height: 1.5; }
}
@media (max-width: 600px) {
  .apple-gallery { padding: 34px 20px 50px; }
  .apple-gallery .ag-intro { padding-bottom: 38px; }
  .apple-gallery .ag-intro h1 { max-width: 360px; margin-top: 14px; margin-bottom: 18px; font-size: 37px; }
  .apple-gallery .ag-lead { font-size: 17px; line-height: 1.6; }
  .apple-gallery .ag-section-heading { gap: 14px; margin-bottom: 18px; }
  .apple-gallery .ag-section-heading h2 { font-size: 25px; }
  .apple-gallery .ag-strip-controls { gap: 7px; }
  .apple-gallery .ag-circle-button { width: 36px; height: 36px; font-size: 20px; }
  .apple-gallery .ag-feature-strip { gap: 14px; border-radius: 16px 16px 0 0; }
  .apple-gallery .ag-feature { flex-basis: 94%; border-radius: 16px; }
  .apple-gallery .ag-feature figcaption { padding: 19px 20px 21px; }
  .apple-gallery .ag-feature h3 { font-size: 21px; }
  .apple-gallery .ag-feature .ag-meta { flex-direction: column; gap: 3px; font-size: 13px; }
  .apple-gallery .ag-feature .ag-credit { font-size: 12px; }
  .apple-gallery .ag-enlarge { right: 12px; bottom: 12px; width: 32px; height: 32px; }
  .apple-gallery .ag-collection { margin-top: 47px; }
  .apple-gallery .ag-collection-heading { align-items: end; }
  .apple-gallery .ag-count { font-size: 12px; }
  .apple-gallery .ag-collection-heading .ag-eyebrow { font-size: 11px; }
  .apple-gallery .ag-filters { gap: 7px; margin-bottom: 23px; }
  .apple-gallery .ag-filters button { padding: 9px 13px; min-height: 40px; font-size: 13px; }
  .apple-gallery .ag-grid { columns: 1; }
  .apple-gallery .ag-card { margin-bottom: 23px; }
  .apple-gallery .ag-card figcaption { padding: 20px; }
  .apple-gallery .ag-card h3 { font-size: 21px; }
  .apple-gallery .ag-card .ag-meta { font-size: 14px; }
  .apple-gallery .ag-card .ag-credit { font-size: 13px; }
  .ag-viewer .ag-viewer-toolbar { padding: 13px 17px; }
  .ag-viewer .ag-viewer-stage { padding: 0 10px; }
  .ag-viewer .ag-viewer-bottom { display: block; padding: 20px 20px 23px; }
  .ag-viewer .ag-viewer-caption h2 { font-size: 20px; }
  .ag-viewer #ag-viewer-meta { gap: 4px 13px; font-size: 13px; }
  .ag-viewer .ag-viewer-credit { font-size: 12px; }
  .ag-viewer .ag-viewer-actions { justify-content: space-between; margin-top: 17px; }
  .ag-viewer .ag-viewer-original { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .apple-gallery *, .ag-viewer * { scroll-behavior: auto !important; transition: none !important; }
}
