.clinic-gallery {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.2rem, 8vw, 8rem);
  background: var(--cream);
}

.clinic-gallery-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.clinic-gallery-heading p {
  color: #57716e;
  max-width: 620px;
}

.clinic-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.clinic-photo-grid figure {
  margin: 0;
}

.clinic-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 1.25rem;
}

.clinic-photo-grid figcaption {
  padding: .75rem .2rem 0;
  color: #58716e;
  font-size: .82rem;
}

.clinic-gallery-note {
  margin: 1.25rem 0 0;
  color: #78908c;
  font-size: .72rem;
}

.location-grid article {
  display: flex;
  flex-direction: column;
}

.clinic-map {
  width: 100%;
  height: 270px;
  margin: 1.25rem 0 .5rem;
  border: 0;
  border-radius: 1rem;
  background: var(--sage);
}

.clinic-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  border: 1px solid rgba(23, 60, 58, .28);
  border-radius: 999px;
  padding: .82rem 1.15rem;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.map-button:hover,
.map-button:focus-visible {
  background: var(--sage);
}

.maps-privacy-note {
  color: #78908c;
  font-size: .76rem;
}

.home-photo-story {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 7vw, 7rem);
  color: var(--paper);
  background: var(--deep);
}

.home-photo-story-copy {
  max-width: 560px;
}

.home-photo-story-copy h2 {
  margin: .7rem 0 1.25rem;
  color: var(--paper);
}

.home-photo-story-copy p {
  color: rgba(255, 255, 255, .78);
}

.home-photo-story-copy .text-link {
  color: var(--paper);
}

.home-photo-mosaic {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, minmax(135px, 1fr));
  gap: .8rem;
  min-height: 390px;
}

.home-photo-mosaic a {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 1.15rem;
}

.home-photo-mosaic .home-photo-large {
  grid-row: 1 / 3;
}

.home-photo-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.home-photo-mosaic a > span {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  left: .65rem;
  padding: .55rem .65rem;
  color: #fff;
  border-radius: .6rem;
  background: rgba(7, 35, 33, .78);
  backdrop-filter: blur(4px);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-photo-mosaic a:hover img,
.home-photo-mosaic a:focus-visible img {
  transform: scale(1.025);
}

.photo-albums {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 7vw, 7rem);
  background: var(--cream);
  scroll-margin-top: 120px;
}

.photo-albums-heading {
  max-width: 840px;
  margin-bottom: 1.7rem;
}

.photo-albums-heading p {
  max-width: 720px;
  color: #57716e;
}

.album-jump-links {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.album-jump-links a {
  padding: .7rem 1rem;
  color: var(--deep);
  border: 1px solid rgba(23, 60, 58, .22);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.album-jump-links a:hover,
.album-jump-links a:focus-visible {
  background: var(--sage);
}

.photo-album {
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  scroll-margin-top: 120px;
}

.photo-album summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.photo-album summary::-webkit-details-marker {
  display: none;
}

.photo-album summary span {
  display: grid;
  gap: .25rem;
}

.photo-album summary small {
  color: #708985;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.photo-album summary strong {
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.photo-album summary em {
  max-width: 760px;
  color: #607975;
  font-size: .8rem;
  font-style: normal;
}

.photo-album summary b {
  flex: 0 0 auto;
  color: var(--deep);
  font-size: .75rem;
  white-space: nowrap;
}

.photo-album[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(218, 235, 226, .36);
}

.photo-album-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
  padding: .8rem;
}

.album-story-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  grid-row: span 2;
  justify-content: center;
  min-height: 390px;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  color: var(--paper);
  border-radius: .9rem;
  background: var(--deep);
}

.album-story-card > span {
  color: #b9ddd3;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.album-story-card h3 {
  margin: .7rem 0 1rem;
  color: var(--paper);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

.album-story-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  line-height: 1.75;
}

.album-story-card small {
  margin-top: auto;
  padding-top: 1.5rem;
  color: #b9ddd3;
  font-size: .68rem;
}

.photo-album-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--cream);
}

.album-photo-button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #dfe8e3;
  cursor: zoom-in;
}

.album-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
  transform: scale(var(--photo-scale, 1));
  transition: transform .25s ease, filter .25s ease;
}

.album-photo-button:hover img,
.album-photo-button:focus-visible img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(calc(var(--photo-scale, 1) + .025));
}

.photo-album-grid figcaption {
  min-height: 72px;
  padding: .7rem .75rem;
  color: #4d6965;
  font-size: .68rem;
  line-height: 1.45;
}

.archive-note {
  max-width: 900px;
  margin: 1.5rem 0 0;
  color: #78908c;
  font-size: .75rem;
}

.photo-lightbox {
  width: min(94vw, 1120px);
  max-width: none;
  padding: 1rem;
  border: 0;
  border-radius: 1.25rem;
  color: var(--paper);
  background: #0e302e;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .38);
}

.photo-lightbox::backdrop {
  background: rgba(6, 21, 20, .82);
  backdrop-filter: blur(5px);
}

.photo-lightbox[open] {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: .75rem;
  align-items: center;
}

.photo-lightbox figure {
  min-width: 0;
  margin: 0;
}

.photo-lightbox figure img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: .8rem;
  background: #092522;
}

.photo-lightbox figcaption {
  padding: .8rem .25rem 0;
  color: rgba(255, 255, 255, .84);
  font-size: .82rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  font-size: 1.6rem;
}

.lightbox-nav {
  font-size: 2rem;
}

@media (max-width: 950px) {
  .home-photo-story {
    grid-template-columns: 1fr;
  }

  .photo-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-story-card {
    grid-column: span 2;
    min-height: 340px;
  }
}

@media (max-width: 650px) {
  .clinic-photo-grid {
    grid-template-columns: 1fr;
  }

  .home-photo-mosaic {
    grid-template-rows: repeat(2, minmax(105px, 1fr));
    min-height: 310px;
  }

  .home-photo-mosaic a > span {
    right: .4rem;
    bottom: .4rem;
    left: .4rem;
    padding: .45rem .5rem;
    font-size: .6rem;
  }

  .photo-album summary {
    align-items: flex-start;
    gap: .75rem;
    padding: 1.1rem;
  }

  .photo-album summary em {
    font-size: .72rem;
  }

  .photo-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    padding: .55rem;
  }

  .album-story-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    padding: 1.35rem;
  }

  .album-story-card h3 {
    font-size: 1.65rem;
  }

  .album-story-card p {
    font-size: .76rem;
  }

  .album-story-card small {
    margin-top: 1rem;
    padding-top: 0;
  }

  .photo-album-grid figcaption {
    min-height: 70px;
    padding: .65rem;
    font-size: .66rem;
  }

  .photo-lightbox {
    padding: .65rem;
  }

  .photo-lightbox[open] {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: .25rem;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 1.45rem;
  }
}
