/* ═══════════════════════════════════════════════════════════
   HKB Artists — Dancer & Leadership pages
   ═══════════════════════════════════════════════════════════ */

/* ── Container (mirrors event-detail .include-container) ── */
.hkb-dancer-nav .include-container {
    padding: 0 80px;
    margin: 0 auto;
    max-width: 1480px;
}

.hkb-artist-page .include-container {
    margin: 0 auto;
}

/* ── Sticky nav (stays in flow, sticks to top on scroll) ──
   `top` is set by JS (assets/js/artists.js) to the measured header
   height (+ admin bar) so it's accurate on every breakpoint. The 0
   here is only a base before JS runs. */
.hkb-dancer-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 44;
}

.hkb-dancer-nav .secondary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    gap: 0;
    overflow: hidden;
}

.hkb-dancer-nav .secondary-nav__menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding-right: 20px;
}

.hkb-dancer-nav .secondary-nav__menu::-webkit-scrollbar {
    display: none;
}

.hkb-dancer-nav .secondary-nav__menu.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.hkb-dancer-nav .secondary-nav__menu a {
    position: relative;
    flex: 0 0 auto;
    font-size: var(--fs-18);
    line-height: var(--lh-252);
    font-weight: 300;
    color: var(--clr-blue-60);
    text-decoration: none;
    transition: var(--transition);
}

.hkb-dancer-nav .secondary-nav__menu a:hover {
    color: var(--clr-blue-100);
}

.hkb-dancer-nav .secondary-nav__menu a.active {
    color: var(--clr-blue-100);
    font-weight: 400;
}

/* ── Rank section ── */
.hkb-rank-section {
    padding: 80px 0;
}

.hkb-rank-section:last-child{
    padding-bottom: 0;
}

.hkb-rank-heading {
    margin-bottom: 40px;
}

.hkb-rank-heading .hyphen {
    width: 32px;
    height: 2px;
    background: #211650;
    margin-bottom: 12px;
}

.hkb-rank-heading h2 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 300;
    color: #211650;
    margin: 0;
    text-align: center;
}

/* ── Grid ── */
.hkb-artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* ── Card ── */
.hkb-artist-card {
    display: flex;
    flex-direction: column;
}

.hkb-artist-card__img-wrap {
    display: block;
    overflow: hidden;
    background: transparent;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
}

.hkb-artist-card__img-wrap img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
    transition: all 0.5s;
}

.hkb-artist-card__link:hover .hkb-artist-card__img-wrap img {
    transform: scale(1.1);
}

/* ── Hover video (crossfade photo → clip, as on the old site) ──
   The <video> sits on top of the photo; JS adds .show-video on
   mouseenter once playback starts, and both layers crossfade. */
.hkb-artist-card__img-wrap {
    position: relative;
}

.hkb-artist-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s;
}

.hkb-artist-card__img-wrap.has-video img {
    transition: opacity 1.2s;
}

/* No zoom on video cards — the photo fades out instead */
.hkb-artist-card__link:hover .hkb-artist-card__img-wrap.has-video img {
    transform: none;
}

.hkb-artist-card__img-wrap.show-video img {
    opacity: 0;
}

.hkb-artist-card__img-wrap.show-video .hkb-artist-card__video {
    opacity: 1;
}

/* Same crossfade on the single template, where the Elementor image
   widget's output is wrapped in .hkb-artist-single-media (artists.php) */
.hkb-artist-single-media {
    position: relative;
    display: block;
}

.hkb-artist-single-media img {
    transition: opacity 1.2s;
}

.hkb-artist-single-media.show-video img {
    opacity: 0;
}

.hkb-artist-single-media.show-video .hkb-artist-card__video {
    opacity: 1;
}

.hkb-artist-card__info {
    text-align: center;
}

.hkb-artist-card__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: var(--fs-18);
    line-height: var(--lh-252);
    font-weight: 400;
    color: var(--clr-blue-100);
    text-decoration: none;
    margin-bottom: 8px;
    /*margin-top: 8px;*/
    transition: var(--transition);
}


.hkb-artist-card__name .hkb-arrow {
    display: flex;
    align-items: center;
}

.hkb-artist-card__name .hkb-arrow svg {
    width: 20px;
    height: 20px;
}

.hkb-artist-card__link:hover .hkb-artist-card__name {
    color: var(--clr-blue-60);
}

.hkb-artist-card__name .hkb-arrow svg path {
    transition: var(--transition);
}

.hkb-artist-card__link:hover svg path {
    fill: var(--clr-blue-60);
}

.hkb-artist-card__role {
    font-size: var(--fs-14);
    line-height: var(--lh-182);
    color: var(--clr-blue-100);
    font-weight: 300;
}

.hkb-artist-card__sponsor {
    font-size: 11px;
    color: #7A7396;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.hkb-artist-card__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 1279px) {

    .hkb-dancer-nav .include-container {
        width: 100%;
        padding-left: 40px;
        padding-right: 0px;
    }
}

@media (max-width: 1024px) {
    .hkb-artist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
}

@media (max-width: 767px) {
    .hkb-artist-grid {
        gap: 20px 10px;
    }

    .hkb-dancer-nav .include-container{
        padding-left: 20px;
        padding-right: 0;
    }
    .hkb-artist-page .include-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hkb-dancer-nav .secondary-nav {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 15.5px 0;
        overflow: hidden;
        min-height: auto;
    }

    .hkb-dancer-nav .secondary-nav__menu {
        gap: 20px;
    }

    .hkb-dancer-nav .secondary-nav__menu a {
        font-size: 14px;
    }

    .hkb-artist-card__name .hkb-arrow svg {
        width: 16px;
        height: 16px;
    }

    .hkb-rank-heading {
        margin-bottom: 20px;
    }

    .hkb-rank-heading h2 {
        font-size: 20px;
        line-height: 26px;
        text-align: left;
    }

    .hkb-artist-card__link {
        gap: 4x;
    }

    .hkb-artist-card__name {
        font-size: 14px;
        line-height: 18.2px;
        margin-bottom: 4px;
        /*margin-top: 8px;*/
    }

    .hkb-rank-section {
        padding: 40px 0;
    }

    .hkb-rank-section:first-child {
        padding-top: 20px;
    }

    .hkb-artist-card__role{
        font-size: 12px;
        line-height: 16.8px;
    }
}