/* Full portraits with a caption curtain and no more than three cards in view. */
.home .wp-block-uagb-container:has(> .uagb-container-inner-blocks-wrap > .palmetto-team),
.home .uagb-container-inner-blocks-wrap:has(> .palmetto-team) {
    max-width: 100%; padding: 0; background: var(--palmetto-brand-white);
}
.home .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap:has(> .palmetto-team) {
    width: 100%; max-width: none !important; margin-inline: 0;
}
.palmetto-team {
    --team-gutter: max(24px, calc((100% - 1360px) / 2));
    padding-block: clamp(64px, 6vw, 96px);
    width: 100%;
    color: var(--palmetto-brand-navy);
    background: var(--palmetto-brand-white);
    scroll-margin-top: 112px;
}
.palmetto-team__heading, .palmetto-team__footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin-inline: var(--team-gutter);
}
.palmetto-team__heading { margin-bottom: var(--palmetto-home-heading-gap, 24px); }
.palmetto-team .palmetto-team__heading h2 {
    margin: 0; color: var(--palmetto-brand-black);
    font-size: clamp(32px, 3.5vw, 64px); font-weight: 650;
    letter-spacing: -.035em; line-height: 1.08;
}
.palmetto-team__controls:not([hidden]) {
    position: absolute; z-index: 2; top: 50%;
    inset-inline: calc(-1 * (var(--palmetto-control-size) + 16px));
    display: flex; justify-content: space-between; transform: translateY(-50%);
    pointer-events: none;
}
body .palmetto-team__controls button {
    position: static; width: var(--palmetto-control-size); height: var(--palmetto-control-size);
    padding: 0 !important; pointer-events: auto;
}
.palmetto-team__controls svg { width: 22px; height: 22px; }
.palmetto-team__controls button:disabled { opacity: .35; cursor: default; }
.palmetto-team__gallery {
    position: relative;
    margin-inline: max(var(--team-gutter), calc(var(--palmetto-control-size) + 36px));
}
.palmetto-team .palmetto-team__viewport {
    padding: 0;
    overflow: hidden;
    border-radius: 0 calc(var(--palmetto-control-size, 55px) / 2);
    cursor: default;
}
.palmetto-team__viewport:not(.swiper-initialized) { overflow-x: auto; }
.palmetto-team__viewport:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 16px; }
.palmetto-team .swiper-wrapper { padding: 0; transition-timing-function: var(--palmetto-motion-ease); }
.palmetto-team .palmetto-team__person {
    position: relative; flex-shrink: 0; width: calc((100% - 32px) / 3);
    height: auto; margin: 0; overflow: hidden;
    background: var(--palmetto-brand-gray-100); cursor: default;
}
.palmetto-team__portrait img {
    display: block; width: 100%; height: auto; pointer-events: none;
}
.palmetto-team__caption {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px; background: var(--palmetto-brand-navy);
    opacity: 0; transform: translateY(100%); pointer-events: none;
    transition: opacity 180ms ease-out, transform 240ms var(--palmetto-motion-ease);
}
.palmetto-team .palmetto-team__caption p {
    margin: 0 0 12px; font-size: 14px; font-family: var(--palmetto-font-body);
    line-height: 1.5; color: var(--palmetto-brand-white); text-wrap: pretty;
}
.palmetto-team .palmetto-team__caption h3 {
    margin: 0; font-size: clamp(23px, 1.8vw, 30px); font-weight: 550;
    line-height: 1.2; letter-spacing: -.025em; color: var(--palmetto-brand-white);
}
.palmetto-team__person.is-current .palmetto-team__caption { opacity: 1; transform: none; }
body .palmetto-team .palmetto-team__person .palmetto-team__reveal:not([hidden]) {
    position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
    min-height: 0 !important; display: block; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; cursor: default;
}
body .palmetto-team .palmetto-team__reveal:focus-visible {
    outline: 2px solid var(--palmetto-brand-accent-blue); outline-offset: -4px;
    box-shadow: inset 0 0 0 6px var(--palmetto-brand-white);
}
.palmetto-team__footer { margin-top: 28px; }
.palmetto-team .palmetto-team__hint { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1.5; margin: 0; }
.palmetto-team__hint .palmetto-icon { width: 22px; height: 22px; flex: none; }
@media (max-width: 999px) { .palmetto-team .palmetto-team__person { width: calc((100% - 16px) / 2); } }
@media (max-width: 1000px) { .palmetto-team .palmetto-team__viewport { border-radius: 0 16px; } }
@media (max-width: 639px) {
    .palmetto-team { --team-gutter: 20px; scroll-margin-top: 90px; }
    .palmetto-team__gallery { margin-inline: var(--team-gutter); }
    .palmetto-team__controls:not([hidden]) { display: none; }
    .palmetto-team__heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 24px; }
    .palmetto-team .palmetto-team__person { width: 100%; }
    .palmetto-team__caption { padding: 24px; }
    .palmetto-team__footer { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .palmetto-team *, .palmetto-team .swiper-wrapper { transition-duration: 0ms !important; }
}
