/* ========================================
   GZ Team Carousel
   ======================================== */

.gz-tc-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 40px 0 0;
    overflow: hidden;
}

/* Viewport */
.gz-tc-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 40px;
}

/* Track */
.gz-tc-track {
    display: flex;
    will-change: transform;
}

/* Cards — sized to match col-4 inside col-12 of container-fluid (max-width: 1560px) */
.gz-tc-card {
    flex: 0 0 calc(min(1560px, 100vw) / 3);
    max-width: calc(min(1560px, 100vw) / 3);
    margin-right: -1px;
    padding: 0;
    box-sizing: border-box;
    perspective: 1000px;
}

.gz-tc-card-inner {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.gz-tc-card:hover .gz-tc-card-inner {
    transform: rotateY(180deg);
}

/* Card faces */
.gz-tc-card-front,
.gz-tc-card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gz-tc-card-front {
    transform: rotateY(0deg);
    background-color: var(--gz-tc-card-bg, #00d9ff);
    position: relative;
}

.gz-tc-card-front::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleY(0.175);
    transform-origin: top;
    background-color: #fff;
    pointer-events: none;
    z-index: -1;
}

.gz-tc-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
    z-index: 0;
}

@media (min-width: 1200px) {
    .gz-tc-card-back {
        padding: 30px 60px;
    }
}

/* --- ARCHIVED (kept for possible client revert) ---
   Previously the back face mirrored the front's white overlay strip and
   reserved space for it via extra top padding.

.gz-tc-card-back {
    padding: calc(17.5% + 30px) 30px 30px;
}
@media (min-width: 1200px) {
    .gz-tc-card-back {
        padding: calc(17.5% + 30px) 60px 30px;
    }
}
.gz-tc-card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleY(0.175);
    transform-origin: top;
    background-color: #fff;
    pointer-events: none;
    z-index: -1;
}
--- end archived --- */

.gz-tc-card-back .gz-tc-name {
    font-family: "Swiss721MediumBT", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .gz-tc-card-back .gz-tc-name {
        font-size: 22px;
    }
}

.gz-tc-card-back .gz-tc-role {
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    color: #6d6e71;
    margin-bottom: 20px;
}

@media (min-width: 1200px) {
    .gz-tc-card-back .gz-tc-role {
        font-size: 18px;
        margin-bottom: 30px;
    }
}

.gz-tc-card-back .gz-tc-bio-text {
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #6d6e71;
    margin-bottom: 0;
}

.gz-tc-card-back .gz-tc-bio-text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .gz-tc-card-back .gz-tc-bio-text {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .gz-tc-card-back .gz-tc-bio-text {
        font-size: 16px;
    }
}

/* Headshot */
.gz-tc-headshot {
    text-align: center;
}

.gz-tc-headshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Info section */
.gz-tc-info {
    background-color: var(--gz-tc-bio-bg, #f8f8f8);
    padding: 40px 20px;
    text-align: center;
}

.gz-tc-info .staff-name {
    font-family: "Swiss721MediumBT", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    color: var(--gz-tc-card-text, #6d6e71);
}

@media (min-width: 1200px) {
    .gz-tc-info .staff-name {
        font-size: 22px;
    }
}

.gz-tc-info .staff-title {
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    color: var(--gz-tc-card-text, #6d6e71);
    margin: 0;
}

@media (min-width: 1200px) {
    .gz-tc-info .staff-title {
        font-size: 18px;
    }
}

.gz-tc-info .bio-separator {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00d9ff;
    margin: 20px auto;
}

.gz-tc-info .bio-btn {
    background-color: #fff !important;
    color: #6d6e71 !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    margin: 0 auto;
    cursor: pointer;
}

/* Arrows container */
.gz-tc-arrows {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-top: 0;
    padding-left: 60px;
}

/* Arrows */
.gz-tc-arrow {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gz-tc-arrow img {
    width: 38px;
    height: auto;
    transition: opacity 0.3s ease;
}

.gz-tc-arrow:hover img {
    opacity: 0.6;
}

/* Bio Modal */
.gz-tc-modal .modal-content {
    border: none;
    border-radius: 0;
}

.gz-tc-modal .modal-header {
    border-bottom: 2px solid #00d9ff;
    padding: 20px 30px;
    align-items: flex-start;
}

.gz-tc-modal .modal-title {
    color: #6d6e71;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.gz-tc-modal-jobtitle {
    color: #999;
    font-size: 14px;
    display: block;
    margin-top: 2px;
}

.gz-tc-modal .modal-body {
    padding: 30px;
    color: #6d6e71;
    font-size: 16px;
    line-height: 1.6;
}

.gz-tc-modal-headshot {
    margin-bottom: 20px;
    width: 100%;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .gz-tc-wrapper {
        padding: 30px 0;
    }

    .gz-tc-card {
        flex: 0 0 calc(100vw / 2);
        max-width: calc(100vw / 2);
    }
}

@media (max-width: 575px) {
    .gz-tc-wrapper {
        padding: 20px 0;
    }

    .gz-tc-card {
        flex: 0 0 100vw;
        max-width: 100vw;
    }

    .gz-tc-arrow img {
        width: 28px;
    }

    .gz-tc-arrows {
        padding-left: 20px;
        gap: 20px;
    }

    .gz-tc-modal .modal-body .row {
        flex-direction: column;
    }

    .gz-tc-modal .modal-body .col-md-4,
    .gz-tc-modal .modal-body .col-md-8 {
        width: 100%;
    }
}
