/* A family clinic number is a direct call on every device. */
.ogh #main #new .ogh-plan-clinics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.ogh #main #new .ogh-plan-clinics > li,
.ogh.ogh-patient-resources #main #forms .g3 > .c26,
.ogh #main:has(.ogh-plan-clinics) #forms .g3 > .c26 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .7rem;
	min-width: 0;
}
.ogh #main .ogh-plan-clinics h3,
.ogh #main:has(.ogh-plan-clinics) #forms .g3 :is(h3, p) { margin: 0; }
.ogh #main #new .ogh-plan-location { color: #002c7f; text-underline-offset: .17em; }
.ogh #main #new .ogh-plan-clinics .b26,
.ogh #main:has(.ogh-plan-clinics) #forms .g3 .b26 { margin-block: auto 0; }
.ogh #main:has(.ogh-plan-clinics) #bring .ogh-visit-photo-story { gap: clamp(1rem, 3vw, 2.5rem); }
.ogh #main:has(.ogh-plan-clinics) #bring .ogh-visit-photo-copy > h2 { margin-bottom: .45em; }
.ogh #main:has(.ogh-plan-clinics) #bring .p-list { margin-block: 0; padding-inline-start: 1.35em; }
.ogh #main:has(.ogh-plan-clinics) #bring .p-list li + li { margin-top: .38em; }

.ogh #main .ogh-visit-photo-story {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
}

.ogh #main .ogh-visit-photo-copy > h2 {
  margin-block: 0 .65em;
}

.ogh #main .ogh-visit-photo-copy .p-body,
.ogh #main .ogh-visit-photo-frame {
  margin: 0;
}

.ogh #main .ogh-visit-photo-copy .g2:has(> .p-list:only-child) {
  display: block;
}

.ogh #main .ogh-visit-photo-frame > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep the actual proportions even when another WordPress filter adds lazy auto-sizes. */
.ogh #main #pt figure.sph-f > img.ogh-portrait-framed,
.ogh #main :is(#bring, #visiting) .ogh-visit-photo-frame > img {
  contain-intrinsic-size: none;
  height: auto !important;
  aspect-ratio: var(--ogh-inner-photo-ratio) !important;
  object-fit: contain;
}
.ogh #main #pt { --ogh-inner-photo-ratio: 2 / 3; }
.ogh #main #bring { --ogh-inner-photo-ratio: 25 / 19; }
.ogh #main #visiting { --ogh-inner-photo-ratio: 3 / 2; }

.ogh #providers .tm91-all:has(.ogh-team-invite-photo) {
  container-type: inline-size;
  overflow: hidden;
}
.ogh #providers .tm91-all > a:has(.ogh-team-invite-photo) {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}
.ogh #providers .ogh-team-invite-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .65rem;
  padding: clamp(1.25rem, 4cqw, 2.5rem);
  color: white;
}
.ogh #providers .tm91-all img.ogh-team-invite-photo {
  order: -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
  object-fit: cover;
  object-position: 50% 52%;
  border-radius: 0;
}
@media (min-width: 760px) {
  .ogh #providers .tm91-p > .tm91-all:nth-child(2):last-child {
    grid-column: 2 / -1;
  }
}
@container (min-width: 29rem) {
  .ogh #providers .tm91-all > a:has(.ogh-team-invite-photo) {
    grid-template: 1fr / minmax(0, .84fr) minmax(0, 1.16fr);
  }
  .ogh #providers .tm91-all img.ogh-team-invite-photo {
    order: 0;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

.ogh #main .ogh-visit-photo-story + .pmo-h {
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 48rem) {
  .ogh #main .ogh-visit-photo-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
