.webp #teachers-container {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url(../img/weston-mackinnon-3pCRW_JRKM8-unsplash_2500x1667.webp) center center no-repeat fixed;
  background-size: cover;
}
.no-webp #teachers-container {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url(../img/weston-mackinnon-3pCRW_JRKM8-unsplash_2500x1667.jpg) center center no-repeat fixed;
  background-size: cover;
}

#teachers-container {
  display: flex;
  flex-flow: row wrap;
}

/* FILTERING BY INSTRUMENT */

#teacher-filter-container {
  width: 100%;
}

#teacher-filter {
  background: white;
  padding: 20px;
  margin: 20px auto;
  box-shadow: var(--box-shadow);
  max-width: 1000px;
}

#filter-header {
  font-size: 26px;
}

#instrument-filter {
  max-width: 800px;
  margin: auto;
}

#teacher-filter .instrument-button {
  padding: 5px;
  margin: 5px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  line-height: 20px;
  color: black;
  -webkit-appearance: none;
  background: #eee;
  box-shadow: 2px 2px 2px #ccc;
}

#teacher-filter .instrument-button:hover {
  cursor: pointer;
  background: var(--color-purple-light);
  box-shadow: 5px 5px 5px #ccc;
  transition: 0.3s all;
}

#teacher-filter .instrument-button::before {
  content: '\1D11E  ';
  font-size: 20px;
}

#teacher-filter .instrument-button.selected {
  background: var(--color-purple);
  color: white;
  box-shadow: 5px 5px 5px #ccc;
}

/* TEACHER BLOCKS */

.teacher-block {
  flex: 1;
  padding: 20px;
}

.teacher-inner-block {
  box-shadow: var(--box-shadow);
  margin: auto;
  transition: 0.5s all;
  padding: 0;
  border: none;
}

.teacher-inner-block:hover {
  transform: scale(1.05);
  cursor: pointer;
  box-shadow: 10px 10px 25px black;
}

.teacher-block p {
  background: black;
  color: white;
  margin: 0;
  padding: 10px;
}

.teacher-block img {
  width: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}

.teacher-name {
  font-size: 26px;
}

@media only screen and (max-width: 349px) {
  .teacher-inner-block { max-width: 300px; }
}

@media only screen and (min-width: 350px) {
  .teacher-inner-block { width: 300px; }
}

/* INFO ABOUT ALL TEACHERS */

.webp #teacher-info {
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url(../img/caleb-george-pH88tHG-1yw-unsplash_2500x1667.webp) center bottom no-repeat;
  background-size: cover;
}
.no-webp #teacher-info {
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url(../img/caleb-george-pH88tHG-1yw-unsplash_2500x1667.jpg) center bottom no-repeat;
  background-size: cover;
}

#teacher-info a:link, #teacher-info a:visited {
  text-decoration: none;
  color: black;
}

#teacher-info a:hover, #teacher-info a:active {
  color: var(--color-orange-dark);
  text-decoration: underline;
}

#teacher-info a {
  color: black;

}

#teacher-info-details {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

#teacher-info-details picture { flex: 0 0 calc(300px + 4vw); }

#teacher-info-details img {
  width: calc(300px + 4vw);
  height: calc(300px + 4vw);
  object-fit: cover;
}

#teacher-info-details ul { flex: 1; }

@media only screen and (max-width: 749px) {
  #teacher-info-details ul {
    min-width: 200px;
  }
}

@media only screen and (min-width: 750px) {
  #teacher-info-details ul {
    min-width: 600px;
    padding-left: 60px;
  }
}

/* TEACHING OPPORTUNITIES */

.webp #about-teaching-opportunities-container {
  background: url(../img/elia-pellegrini-SaXnOrym6xU-unsplash_1500x1000.webp) center center no-repeat;
  background-size: cover;
}
.no-webp #about-teaching-opportunities-container {
  background: url(../img/elia-pellegrini-SaXnOrym6xU-unsplash_1500x1000.jpg) center center no-repeat;
  background-size: cover;
}

#about-teaching-opportunities {
  color: black;
  background: rgba(255,255,255,0.8);
  padding: 10px 20px;
  max-width: 800px;
}

@media only screen and (max-width: 499px) {
  #about-teaching-opportunities {
    margin: 20px auto;
    width: 100%;
  }
}

@media only screen and (min-width: 500px) {
  #about-teaching-opportunities {
    margin: 20px auto 20px 20px;
    width: 50vw;
  }
}

/* MODAL */

#teacher-modal .modal-content {
  max-height: calc(100vh - 20px);
  height: fit-content;
}

#teacher-modal-details {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#teacher-modal-picture img {
  height: calc(200px + 3vw);
  width: calc(200px + 3vw);
}

#teacher-modal-picture img {
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin: 0 auto 10px;
}

#teacher-modal-instruments { font-size: var(--font-size-p-large); }

#teacher-modal-description {
  overflow: auto;
  padding: 10px;
  margin: 0;
  min-height: 200px;
}

@media only screen and (max-width: 749px) {

  #teacher-modal-instruments {
    font-size: var(--font-size-p);
  }
}

