/* teacher card */
.teacher-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.teacher-about {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.added-phone-email {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.added-phone-email .line {
  height: 1px;
  width: 100%;
  background: var(--blue-2);
}
.added-phone-email .phone-email-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.added-phone-email .phone-email-inner .caption-2:first-child {
  color: var(--grey-1);
}
.teacher-about-r {
  height: 24px;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
}
.teacher-about-r a {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.teacher-about-r img {
  height: 24px;
  width: 24px;
  transition: height 0.3s ease, width 0.3s ease;
}
.teacher-about-r a:hover {
  content: url("../../icons/linkedIn-hover.svg");
  height: 24px;
  width: 24px;
  transition: height 0.3s ease, width 0.3s ease;
}
.teacher-about-l .caption-2 {
  padding-top: 6px;
  color: var(--grey-1);
}
.teacher-img {
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #d0d9e2;
  transition: height 0.3s ease;
}
.teacher-img img {
  border-radius: 8px;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
}

.teacher-img picture {
  border-radius: 8px;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
}

.teacher-img .empty-photo {
  height: 240px;
  width: 240px;
}
@media (max-width: 1100px) {
  .teacher-about-r {
    align-self: start;
  }
}
@media (max-width: 767px) {
  .teacher-about-r img {
    height: 20px;
    width: 20px;
  }
  .teacher-about-r {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
  .teacher-about-r a:hover {
    content: url("../../icons/linkedIn-hover.svg");
    height: 20px;
    width: 20px;
  }
  .teacher-img {
    height: 180px;
  }
  .teacher-img img {
    height: 100%;
    width: 100%;
  }
  .destytojai-archive .teacher-card {
    flex-direction: row;
    align-items: center;
  }
  .destytojai-archive .teacher-img {
    height: 100px;
    width: 100px;
    min-width: 100px;
  }
  .destytojai-archive .teacher-img .empty-photo {
    height: 100px;
    width: 100px;
    min-width: 100px;
  }
  .destytojai-archive .teacher-about {
    flex-direction: column;
  }
  .admin-section .teacher-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
  }
  .admin-section .teacher-card:has(.added-phone-email) {
    grid-template-columns: 70px 1fr; 
  }
  .admin-section .teacher-card .added-phone-email {
    grid-column: span 2;
  }
  .admin-section .teacher-card:has(.added-phone-email) .teacher-img,
  .admin-section .teacher-card:has(.added-phone-email) .empty-photo {
    height: 70px;
    width: 70px;
  }
  .admin-section .teacher-card .teacher-img,
  .admin-section .teacher-card .empty-photo {
    height: 100px;
    width: 100px;
  }
}
