/* LAST UPDATED: 07.23.2024 - SM */


/* Buttons for the search functions for the directory page are in buttons.css */

.form--search,
.searchbox {
    position: relative;
}

.select-container-directory {
    border-radius: 0;
    border: 1px solid var(--secondary-accent);
    display: inline-block;
    font-size: 1.1em;
    margin: 0 auto;
    padding: 3px;
    position: relative;
    width: 75%;
}

.select-container-directory-all {
    margin-bottom: 15px;
    width: auto;
}

.select-container-directory select {
    appearance: none;
  		-moz-appearance: none;
  		-webkit-appearance: none;
    background-color: var(--primary-neutral-light);
    border: none;
    box-sizing: border-box;
    color: var(--primary-dark);
    font-size: 1em;
    padding: 0.5em;
    padding-right: 2.5em;
}

.select-container-directory .select-indicator {
    background-color: var(--primary-dark);
    /* border-bottom-right-radius: 5px; */
    border-left: 0.75em solid var(--primary-neutral-light);
    /* border-top-right-radius: 5px; */
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
    height: 100%;
    perspective: 1px;
    -webkit-perspective: 1px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    width: 2.5em;
}

.select-container-directory .select-indicator::after,
.select-container-directory .select-indicator::before {
    background-color: var(--primary-neutral-light);
    content: "";
    height: 36%;
    position: absolute;
    top: 35%;
    width: 0.2em;
}

.select-container-directory .select-indicator::after {
    left: 36%;
    transform: translateX(-50%) rotate(125deg);
}

.select-container-directory .select-indicator::before {
    left: 65%;
    transform: translateX(-50%) rotate(55deg);
}

/*added for formatting VHS 6/30/24*/

#search-results {
  display: flex;
  flex-wrap: wrap;
}

.directory-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.directory-list li {
    display: inline-block;
    padding: 0;
}

.directory-list li:first-of-type {
    padding-left: 0;
}

.directory-list li button {
    background: transparent;
    border: none;
    color: var(--primary-accent);
    margin: 0;
    padding: 0;
}

.directory-list li::after {
    content: "|";
    padding: 0 8px;
}

/* Updated 07.08.2024 */
.directory-card {
    /* margin: 1em auto; */ /* Hidden 07.11.2024 because it was causing spacing issues with staff & faculty profile pages where only one or two staff
  members were listed on a row */
    max-width: 375px;
    padding: 1em;
}

/*added for formatting VHS 6/30/24*/
.resultsBar.topBar {
  width: 100%;
}


/* Added 07.11.2024 for main directory page */
.resultsBar ~ .directory-card {
  margin-bottom: 1.5em;
}

.directory-card-inner {
    border: 1px solid var(--primary-neutral-gray);
    border-radius: 0;
    font-size: var(--base-font-size);
    height: 100%;
    padding: 15px;
}

.directory-card-name {
    font-size: 22px;
    font-weight: bold;
}

/*added for formatting VHS 6/30/24*/
.directory-card-inner p {
  margin-bottom: 0;
}

/* From the directory search section on /education */
.directory-search__options {
    text-align: center;
}

.directory-search__sep {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.07px;
    line-height: 2em;
    margin: 1em 3em;
    text-align: center;
}

.faculty-list h2 {
    margin: 1em 0;
}

/* Added 07.11.2022 for resident yearbooks */
.resident-container {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.resident-headshot-img {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.res-img,
.resident-headshot-img img {
    border-radius: 10px;
    box-shadow: 3px 3px 3px var(--secondary-neutral-med-gray);
}

.resident-name {
    max-width: 80%;
    padding-bottom: 2em;
}

.resident-name p {
    font-size: 0.95em;
    text-align: center;
}



@media screen and (max-width: 575px) {
    .form.form--search.form--search--large.directory-search__form {
        width: 85%;
    }

    .select-container-directory {
        display: inline-block;
        margin: 0 auto;
        width: 70%;
    }
  
  	.directory-card {
      max-width: 350px;
    }
}


@media screen and (min-width: 600px) {
    .select-container-directory {
        font-size: 1em;
    }
}

@media screen and (min-width: 768px) {
    .select-container-directory select#department {
        width: 25vw;
        /* Formerly 35vw */
    }
}

/* Added 06.21.2022 */
@media screen and (max-width: 810px) and (orientation: portrait) {
    .select-container {
        width: 80%;
    }
}

/* Added 06.21.2022 */
@media screen and (max-width: 992px) and (orientation: landscape) {
    .form.form--search.form--search--large.directory-search__form {
        margin: 0 1em;
    }

    .select-container {
        width: 85%;
    }
}

@media screen and (min-width: 992px) {
    .select-container-directory-all {
        margin: 0 15px 0 0;
    }
}

@media screen and (min-width: 1000px) {
    .directory-search__form {
        width: 50%;
        /* Formerly 65% */
    }

    /* From /education */
    .directory-search__options {
        align-items: center;
        -ms-flex-align: center;
        display: flex;
        display: -ms-flexbox;
    }

    .directory-search__sep {
        display: inline-block;
    }

    .select-container .select-container-directory {
        width: 66%;
    }
}

@media screen and (min-width: 1200px) {
    .select-container-directory-all {
        width: auto;
    }
}





