/* begin assets/css/gallery-immersive.css */
@media screen {
  .gallery-page .gallery-section {
    padding-block: clamp(18px, 2.5vw, 32px) clamp(20px, 3vw, 36px);
    background: radial-gradient(ellipse 95% 420px at 42% 60px, #fffaed80, transparent);
  }

  .gallery-page .gallery-section .page-breadcrumb { margin-bottom: 14px; }

  .gallery-intro {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    padding: clamp(20px, 2vw, 28px);
    border: 1px solid var(--museum-edge);
    border-radius: 26px;
    background: var(--museum-glass);
    box-shadow: var(--museum-shadow);
  }

  .gallery-intro h1 {
    font: 500 clamp(2.5rem, 4.6vw, 3.75rem)/1.08 var(--font-display);
    letter-spacing: -.04em;
  }

  .gallery-intro .page-lead {
    margin-top: 10px;
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.5;
  }

  .gallery-page .gallery-section .gallery-period {
    margin: 6px 0 0;
    font-size: .875rem;
    line-height: 1.55;
  }

  .gallery-page .gallery-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin: 16px 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .gallery-page .gallery-filters button {
    padding: 8px 6px;
    border: 1px solid var(--museum-edge);
    border-radius: 13px;
    background: var(--museum-glass);
    color: var(--color-muted);
    font-size: .9375rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .gallery-page .gallery-filters button[aria-pressed="true"] {
    border-color: var(--color-border);
    background: var(--color-selected);
    color: var(--color-action-ink);
    font-weight: 600;
  }

  .gallery-page .gallery-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .gallery-page .gallery-groups { gap: clamp(36px, 4vw, 56px); }
  .gallery-page .gallery-group { padding: 0; }

  .gallery-page .gallery-group__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 18px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
  }

  .gallery-page .gallery-group__heading h2 {
    font: 500 clamp(1.875rem, 3vw, 2.625rem)/1.15 var(--font-display);
  }

  .gallery-page .gallery-operation-link {
    justify-self: end;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .gallery-page .result-grid { gap: clamp(16px, 2vw, 24px); }
  .gallery-page .result-card {
    padding: clamp(10px, 1vw, 12px);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 #fffdf7b3, 0 10px 24px -20px #72411e4d;
  }
  .gallery-page .result-pair { gap: 8px; background: transparent; }
  .gallery-page .result-photo { display: flex; flex-direction: column; background: transparent; }

  .gallery-page .result-photo figcaption {
    order: -1;
    padding: 4px 4px 8px;
    color: var(--color-muted);
    font-size: .875rem;
    font-weight: 600;
  }

  .gallery-page .result-photo a {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface);
  }

  .gallery-page .gallery-section .result-photo a:focus-visible { outline-offset: -3px; }
  .gallery-page .result-card__body { padding: 14px 6px 8px; }
  .gallery-page .result-card h3 { font: 500 clamp(1.375rem, 2vw, 1.75rem)/1.2 var(--font-display); }

  .gallery-page .gallery-section .medical-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: none;
    margin-top: 24px;
    padding: clamp(18px, 2.4vw, 24px);
    font-size: .9375rem;
    line-height: 1.7;
    background: var(--museum-glass);
    border-color: var(--museum-edge);
  }

  .gallery-page .gallery-section .medical-note p + p { margin: 0; }
  .gallery-page .gallery-viewer { border-color: var(--museum-edge); }
  .gallery-page .gallery-viewer::backdrop { background: rgb(46 30 22 / 64%); }
  .gallery-page .gallery-viewer__pair figcaption,
  .gallery-page .gallery-viewer__stage { background: var(--color-paper); }
}

@media print {
  .gallery-page .gallery-section .medical-note p + p { margin-top: .75em; }
}

@media screen and (hover: hover) {
  .gallery-page .gallery-filters button[aria-pressed="true"]:hover {
    background: var(--color-surface);
    color: var(--color-action-ink);
  }
}

@media screen and (max-width: 760px) {
  .gallery-page .result-card { border-radius: 18px; }
  .gallery-page .gallery-section .medical-note { grid-template-columns: 1fr; gap: 14px; }
}

@media screen and (max-width: 900px) {
  .gallery-page .result-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-page .result-card { display: block; grid-row: auto; }
}

@media screen and (min-width: 641px) and (forced-colors: none) {
  .gallery-intro::after {
    content: "";
    align-self: stretch;
    justify-self: center;
    width: min(100%, 320px);
    background: url("/assets/img/gallery/photo-mounts-624.webp") center / contain no-repeat;
    transform: scale(1.14);
  }
}

@media screen and (max-width: 640px) {
  .gallery-intro { display: block; padding: 18px 16px; border-radius: 20px; }
  .gallery-intro h1 { font-size: clamp(1.95rem, 9.3vw, 3.6rem); }
  .gallery-page .gallery-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 20px; }
  .gallery-page .gallery-group__heading { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gallery-page .gallery-operation-link { justify-self: stretch; }
  .gallery-page .result-pair--wide { row-gap: 12px; }
}

@media screen and (forced-colors: active) {
  .gallery-intro { display: block; }
  .gallery-page .gallery-filters button[aria-pressed="true"] {
    border-color: Highlight;
    box-shadow: none;
    text-decoration: underline;
  }
}

/* The shared location component follows the map scene used on Contacts. */
@media screen {
  .gallery-page .clinic-scene--location {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    scroll-margin-top: calc(var(--shared-header-height, 68px) + 20px);
  }

  .gallery-page .clinic-scene__media { position: absolute; inset: 0; }
  .gallery-page .clinic-location-map-link { display: block; height: 100%; }
  .gallery-page .clinic-location-map-link > img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 40% 50%;
    opacity: .82;
    mask-image: linear-gradient(transparent 24px, #000 130px, #000 78%, transparent calc(100% - 24px)), linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-composite: intersect;
  }

  .gallery-page .clinic-location-map-link:focus-visible { outline-offset: -6px; }
  .gallery-page .clinic-scene__inner {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1320px;
    min-height: inherit;
    margin-inline: auto;
    padding-block: 40px;
    display: flex;
    align-items: center;
    pointer-events: none;
  }

  .gallery-page .clinic-location-panel {
    width: min(100%, 590px);
    padding: 32px;
    border: 1px solid #fff8ecc2;
    border-radius: 30px;
    background: linear-gradient(120deg, #fff5e480, #f3e0cb57);
    box-shadow: inset 0 1px 0 #fffdf680, 0 16px 48px -34px #4c28184d;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  .gallery-page .clinic-eyebrow {
    margin-bottom: 14px;
    font-size: .75rem;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-action-ink);
  }

  .gallery-page .clinic-location-panel h2 {
    margin-bottom: 24px;
    font: 500 clamp(2rem, 3.8vw, 3rem)/1.12 var(--font-display);
    letter-spacing: -.03em;
    text-wrap: balance;
  }

  .gallery-page .clinic-location-panel .contact-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 24px;
  }

  .gallery-page .clinic-location-panel .contact-fact {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .gallery-page .clinic-location-panel .contact-fact__icon {
    width: 36px;
    height: 36px;
    margin: 0;
    background: transparent;
  }

  .gallery-page .clinic-location-panel .contact-fact__icon svg { width: 30px; height: 30px; }
  .gallery-page .clinic-location-panel .contact-fact h3 { font-size: .6875rem; line-height: 1.5; letter-spacing: .08em; }
  .gallery-page .clinic-location-panel .contact-fact p { margin-top: 6px; font-size: 1rem; line-height: 1.55; }
  .gallery-page .clinic-location-panel .contact-fact small { margin-top: 4px; font-size: .875rem; line-height: 1.6; }
  .gallery-page .clinic-location-panel > .shared-button { width: 100%; }
}

@media screen and (max-width: 1199px) {
  .gallery-page .clinic-scene__inner { width: calc(100% - 48px); }
}

@media screen and (max-width: 900px) {
  .gallery-page .clinic-scene--location { min-height: 0; }
  .gallery-page .clinic-scene__inner { justify-content: center; padding-block: 170px 32px; }
  .gallery-page .clinic-location-panel { width: 100%; max-width: 640px; padding: 28px; }
  .gallery-page .clinic-scene__media { height: 650px; bottom: auto; }
  .gallery-page .clinic-location-map-link > img { object-position: 47% 35%; }
}

@media screen and (max-width: 700px) {
  .gallery-page .clinic-scene__inner { width: calc(100% - 32px); padding-top: 150px; }
  .gallery-page .clinic-scene__media { height: 520px; }
  .gallery-page .clinic-location-panel { padding: 24px 20px; border-radius: 24px; }
  .gallery-page .clinic-location-panel .contact-fact { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-block: 16px; }
  .gallery-page .clinic-location-panel .contact-fact__icon { width: 28px; height: 32px; }
  .gallery-page .clinic-location-panel .contact-fact__icon svg { width: 28px; height: 28px; }
}

@media screen and (prefers-reduced-transparency: reduce), screen and (forced-colors: active) {
  .gallery-page .clinic-location-panel { background: var(--color-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media print {
  .gallery-page .clinic-scene__media { display: none; }
  .gallery-page .clinic-location-panel .contact-facts { grid-template-columns: 1fr; }
}


/* end assets/css/gallery-immersive.css */
