﻿/*STAFF BLOCK*/

/*STAFF MEMBER*/

/*ID OF TIM BERNIE*/


.staff-block .center {
    display: flex;
    flex-wrap: wrap;
    column-gap: 25px;
}

.staff-block .center #staff-timbirnie, .staff-block .center #staff-brianscholz {
    width: 100%;
    margin-bottom: 50px; /* Base spacing for managers */
    display: block;
    clear: both;
}

/*HOLDER*/

.staff-block .center #staff-timbirnie .staff-holder, .staff-block .center #staff-brianscholz .staff-holder {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

/*CONTENT*/

.staff-block .center #staff-timbirnie .staff-holder .staff-content, .staff-block .center #staff-brianscholz .staff-holder .staff-content {
    width: calc(75% + 25px);
    padding: 100px;
}

/*TEXT LINK*/

.staff-block .center #staff-timbirnie .staff-holder .staff-content .staff-link, .staff-block .center #staff-brianscholz .staff-holder .staff-content .staff-link {
    cursor: pointer;
    text-decoration: underline;
    color: #ff521f;
}

/*MODAL TRIGGER*/

.staff-block .center #staff-timbirnie .staff-holder .staff-content .modal-trigger, .staff-block .center #staff-brianscholz .staff-holder .staff-content .modal-trigger {
    display: none;
}

/*OTHERWISE (Standard Members)*/

.staff-block .center .staff-member {
    width: calc((100% - 75px) / 4);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    margin-right: 0;
    margin-bottom: 25px;
}

/*HOLDER*/

.staff-block .center .staff-member .staff-holder {
    width: 100%;
}

/*PICTURE*/

.staff-block .center .staff-member .staff-holder .staff-picture {
    width: 100%;
    height: 400px;
}

/*CONTENT*/

.staff-block .center .staff-member .staff-holder .staff-content {
    position: relative;
    width: 100%;
    padding: 25px;
    color: #444;
}

/*HIDE EXCERPT AND TEXT LINK ON ALL STAFF MEMBERS THAT AREN'T FIRST*/

.staff-block .center #staff-timbirnie .staff-holder .staff-content .staff-excerpt,
.staff-block .center #staff-timbirnie .staff-holder .staff-content .staff-link,
.staff-block .center #staff-brianscholz .staff-holder .staff-content .staff-excerpt,
.staff-block .center #staff-brianscholz .staff-holder .staff-content .staff-link {
    display: block;
}

/*UNIFORM STYLES*/

.staff-position {
    font-family: "Heebo", sans-serif;
    font-weight: 400;
    font-size: 12pt;
    margin-bottom: 25px;
}

.staff-excerpt { display: none; }
.staff-link { display: none; margin-top: 25px; }

.modal-trigger {
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 25px;
    height: 18px;
    background: url(./assets/uploads/2021/11/hamburger-orange.png) no-repeat center;
    background-size: contain;
}

/*STAFF MODAL*/

.staff-modal {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 0px;
    height: 100%;
    padding: 0px;
    max-height: 100vh;
    overflow-y: auto;
    background: #F5F1EE;
    z-index: 9997;
    color: #444;
    transition: .25s ease-out;
}

.staff-modal.show-modal {
    width: 400px;
    padding: 50px;
    transition: .25s ease-in;
}

.staff-modal .staff-modal-content {
    opacity: 0;
    visibility: hidden;
    transition: .15s ease-out;
}

.staff-modal.show-modal .staff-modal-content {
    opacity: 1;
    visibility: visible;
    transition: .75s ease-in;
}

.staff-modal.show-modal .staff-modal-content .email,
.staff-modal.show-modal .staff-modal-content .phone {
    margin-top: 20px;
    display: block;
}

.staff-modal::-webkit-scrollbar { width: 10px }
.staff-modal::-webkit-scrollbar-track { background: #fff; border-radius: 0px }
.staff-modal::-webkit-scrollbar-thumb { background:#444; }

.staff-modal .modal-exit {
    cursor: pointer;
    width: 32px;
    height: 32px;
    margin-bottom: 25px;
}

.staff-image-wrapper {
    width: 100%;
    aspect-ratio: 392 / 535;
    overflow: hidden;
    position: relative;
}

.staff-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------------------------------------------------------
   MANAGEMENT SPECIFIC EDITS
   --------------------------------------------------------- */

/* Adds the specific space between the wide manager blocks */
.staff-block.is-management .center #staff-timbirnie,
.staff-block.is-management .center #staff-brianscholz {
    margin-bottom: 80px !important; /* Increased space between managers */
}

/* Management block: regular managers 3 per row */
.staff-block.is-management .center .staff-member:not(#staff-timbirnie):not(#staff-brianscholz) {
    width: calc((100% - 50px) / 3) !important;
    margin-right: 0 !important;
    margin-bottom: 25px !important;
}

/* Scale image wrapper for standard staff in management mode */
.staff-block.is-management .staff-member:not(#staff-timbirnie):not(#staff-brianscholz) .staff-image-wrapper {
    width: 100%; /* Keeps it contained within the new 28.75% width */
}

/* Scaled image size for Tim/Brian specifically in management mode */
.staff-block.is-management #staff-timbirnie .staff-image-wrapper,
.staff-block.is-management #staff-brianscholz .staff-image-wrapper {
    width: calc(25% - 25px + 15%);
    aspect-ratio: 392 / 535;
}

.staff-block.is-management .center {
    display: flex;
    flex-wrap: wrap;
    column-gap: 25px;
}


/*MEDIA QUERIES*/

@media (max-width: 1200px) {
    .staff-block .center .staff-member {
        width: calc((100% - 50px) / 3);
    }

    .staff-block .center .staff-member .staff-holder .staff-picture {
        height: 535px;
    }

    .staff-block .center #staff-timbirnie .staff-holder .staff-content,
    .staff-block .center #staff-brianscholz .staff-holder .staff-content {
        width: 66.66667%;
        padding: 50px;
    }
}

@media (max-width: 600px) {
    .staff-block .center .staff-member {
        width: 100%;
        margin-right: 0;
    }

    .staff-block .center .staff-member:last-of-type {
        margin-bottom: 0;
    }

    .staff-block .center .staff-member .staff-holder .staff-picture {
        height: 550px;
    }

    /* Tim/Brian: make the featured layout stack on mobile */
    .staff-block .center #staff-timbirnie,
    .staff-block .center #staff-brianscholz {
        width: 100%;
        margin-right: 0;
    }

    .staff-block .center #staff-timbirnie .staff-holder,
    .staff-block .center #staff-brianscholz .staff-holder {
        display: flex;
        flex-direction: column;
    }

    .staff-block .center #staff-timbirnie .staff-image-wrapper,
    .staff-block .center #staff-brianscholz .staff-image-wrapper {
        width: 100% !important;
    }

    .staff-block .center #staff-timbirnie .staff-holder .staff-content,
    .staff-block .center #staff-brianscholz .staff-holder .staff-content {
        width: 100%;
        padding: 25px;
    }

    /* Management regular staff: stack on mobile */
    .staff-block.is-management .center .staff-member:not(#staff-timbirnie):not(#staff-brianscholz) {
        width: 100% !important;
        margin-right: 0 !important;
    }
}
