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

#vacancies .program-card {
  min-width: 0;
  padding: 0;
  align-items: stretch;
  text-align: center;
}

#vacancies .program-card::before { display: none; }

.specialty-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 62.5% 0 0;
  border: 0;
  background: #cecece;
  cursor: zoom-in;
}
.specialty-photo:focus-visible { outline-offset: -4px; }

.specialty-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#specialty-photo-dialog {
  position: fixed;
  left: 50%;
  right: auto;
  top: 50vh;
  top: 50dvh;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: var(--photo-view-width);
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
}
#specialty-photo-dialog::backdrop { background: rgba(10,10,10,.58); }
.specialty-enlarged-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  margin: auto;
  object-fit: contain;
}
.specialty-photo-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--sand);
  border-radius: 50%;
  background: var(--black);
  color: var(--ivory);
  font-size: 22px;
}
.specialty-photo-close:focus-visible { outline-color: var(--orange-yellow); outline-offset: 2px; }

.specialty-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 16px 18px 14px;
}

.specialty-caption h3 { margin: 0 0 8px; font-size: 22px; }
.specialty-number { color: var(--teal); font-size: 18px; font-weight: 700; line-height: 1.4; }
.specialty-caption .description {
  margin: 7px 0 4px;
  align-self: stretch;
  text-align: left;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .specialty-number { animation: header-phone-pulse 4s ease-in-out infinite; }
}

@media (max-width: 970px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 490px) {
  .program-grid { grid-template-columns: minmax(0, 1fr); }
}
