
/* Hide global header on artist page to use custom header */
.page-template-page-artist-archive .site-header {
    display: none;
}

/* Quote styling for quotes in tab content */
.artist-text-content .artist-content-quote {
    color: #7F7E7E;
    font-size: 22px;
    margin: 1.5em 0 1.5em 0;
}
.site {
    padding-top: 0px !important;
}

.artist-text-content .artist-quote-author {
    color: #7F7E7E;
    margin: 0 0 1.5em 0;
    font-size: 22px;
    font-style: normal;
}
/* Image styling for images in tab content */
.artist-text-content .artist-content-image {
    margin: 2em 0;
    text-align: center;
}

.artist-text-content .artist-content-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.artist-text-content .artist-content-image figcaption {
    margin-top: 0.5em;
    font-size: 18px;
    text-align: left;
    padding-left: 20px;
    color: #BDBDBD;
    font-style: italic;
}

/* New Artist Page Header */
.artist-page-header {
   display: grid;
    grid-template-columns: 1fr auto 0.6fr;
    align-items: flex-start;
    padding: 50px 50px 0;
    background-color: #FFFFFF;
    position: relative;
    margin: auto;
    margin-bottom: 8.67vh;
    max-width: 1928px;
}

.header-name {
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-weight: 500;
    font-size: 50px;
    line-height: 33.6px;
    letter-spacing: -0.01em;
    color: #2D1E1E;
    text-align: left;
}

.header-genre {
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-weight: 500;
    font-size: 50px;
    line-height: 33.6px;
    letter-spacing: -0.01em;
    color: #2D1E1E;
    text-align: center;
    padding: 0 20px;
}

.header-year {
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-weight: 500;
    font-size: 50px;
    line-height: 33.6px;
    letter-spacing: -0.01em;
    color: #2D1E1E;
    text-align: right;
}

/* Remove old hamburger styles */

/* Artist Hero Section */
.artist-hero-section {
        display: flex;
    background-color: #FFFFFF;
    padding: 0;
    max-height: 1000px;
    align-items: flex-end;
    max-width: 1928px;
    width: 100%;
    gap: 20%;
    padding: 0 50px;
    margin: auto;
}

.hero-left-image {
   width: 22%;
    height: 418.685px;
    /* margin-left: 50px; */
    margin-bottom: 64px;
    padding-left: 0;
    flex-shrink: 0;
}

.hero-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

.hero-right-image {
    width: 58%;
    height: 600px;
    /* margin-left: 170px; */
    margin-bottom: 126px;
    /* margin-right: 50px; */
    align-self: center;
    flex-shrink: 0;
}

.hero-right-image .artist-carousel {
    height: 574px; /* Slightly less than 600 to allow space for caption */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-right-image .swiper-wrapper {
    height: 100%;
}

.hero-right-image .swiper-slide {
    height: 100%;
}

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

.hero-caption {
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
    color: #2D1E1E;
    font-weight: 300;
}

.hero-carousel-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 13px;
    align-items: flex-start;
}

.carousel-caption {
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #BDBDBD;
    padding-left: 19px;
    flex-grow: 1;
    margin-right: 20px;
    min-height: 1.2em; /* Ensure some height even if empty */
}

.carousel-counter {
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #BDBDBD;
    padding-right: 19px;
    flex-shrink: 0;
}

/* Hide Swiper built-in elements */
.hero-right-image .swiper-pagination,
.hero-right-image .swiper-button-next,
.hero-right-image .swiper-button-prev {
    display: none;
}

/* Mobile Responsiveness for carousel info */
@media (max-width: 1024px) {
    .hero-carousel-info {
        padding: 13px 20px 0;
    }
    .carousel-caption, .carousel-counter {
        font-size: 16px;
        padding: 0;
    }
}

/* Layout Adjustments */
.artist-page-container {
    padding: 0 0px;
    background-color: #FFFFFF; /* Match hero background */
    min-height: 100vh;
}

.artist-layout {
    display: flex;
    padding-top: 100px;
    justify-content: flex-start;
}

/* Mobile Responsiveness for new Hero */
@media (max-width: 1024px) {
    .artist-page-header {
        display: flex;
        flex-direction: column;
        padding: 17px 25px 0;
        margin-bottom: 0;
        background-color: #FFFFFF;
    }

    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .header-name {
        font-size: 30px; /* Half of 60px */
        line-height: 1; /* Half of 33.6px */
        width: auto;
        margin-bottom: 0;
    }

    .mobile-menu-trigger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 27px;
        height: 20px;
        cursor: pointer;
        gap: 6px;
    }

    .mobile-menu-trigger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #2d1e1e;
        transition: all 0.3s ease;
    }

    .header-genre, .header-year {
        display: none; /* Hidden on mobile in the grid, using strip instead */
    }

    .mobile-header-strip {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: calc(100% + 50px);
        margin-left: -25px;
        padding: 10px 25px;
        background-color: #FFFFFF;
        border-bottom: 0.5px solid #EDEDED;
        padding-bottom: 22px;
    }

    .mobile-genre, .mobile-year {
        font-family: 'MNKY Banana Grotesk', sans-serif;
        font-weight: 500;
        font-size: 30px; /* Half of 60px */
        line-height: 16.8px; /* Half of 33.6px */
        letter-spacing: -0.01em;
        color: #2D1E1E;
    }

    .artist-hero-section {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 0;
        border-bottom: none;
    }

    .hero-right-image {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .hero-right-image img {
        width: 100%;
        height: 100vh;
    }

    .hero-carousel-info {
        padding: 10px 25px;
    }

    /* Tabs Section */
    .artist-page-container {
        padding: 40px 25px !important;
    }

    .artist-layout {
        flex-direction: column;
        padding: 0;
    }

    .artist-left-col {
        display: none; /* Hide current-section-title on mobile */
    }

    .artist-tabs-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 20px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .artist-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .artist-tab-btn {
        flex-shrink: 0;
        height: 36px !important;
        min-width: 27px !important;
        padding: 8px 11px !important;
        border: 1px solid #EDEDED;
        border-radius: 50px !important;
        background: #F7F7F7;
        font-size: 12px !important;
        color: #2D1E1E;
    }

    .artist-tab-btn.active {
        background: #EDEDED;
        border-color: #EDEDED;
    }

    .mobile-artist-profile-image {
        width: 100%;
        height: 343px;
        border-radius: 7px;
        overflow: hidden;
        margin-bottom: 36.5px;
    }

    .mobile-artist-profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-top: 0 !important;
    }

    .mobile-tab-heading {
        font-family: 'MNKY Banana Grotesk', sans-serif;
        font-weight: 500;
        font-size: 30px; /* Half of 60px */
        line-height: 16.8px; /* Half of 33.6px */
        letter-spacing: -0.01em;
        color: #2D1E1E;
        margin-bottom: 20px;
    }

    .artist-text-content {
        font-family: 'MNKY Banana Grotesk', sans-serif;
        font-weight: 500;
        font-size: 16px !important; /* Half of 25px */
        line-height: 18.5px !important; /* Half of 37px */
        letter-spacing: -0.01em;
        color: #2D1E1E;
    }

    .artist-text-content p {
        margin-bottom: 1.5em;
    }

    /* Media Section */
    .media-section {
        margin-top: 73.5px !important;
        padding-top: 40px;
        border-top: 0.5px solid #2D1E1E;
    }

    .media-heading {
        font-family: 'MNKY Banana Grotesk', sans-serif;
        font-weight: 500;
        font-size: 30px !important; /* Half of 60px */
        line-height: 16.8px !important; /* Half of 33.6px */
        letter-spacing: -0.01em;
        color: #2D1E1E;
        margin-bottom: 30px !important;
        padding: 0 !important;
    }

    .media-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .media-item {
        width: 100%;
    }

    .media-item img, .media-item video, .media-item .wp-video {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 650 / 403;
        object-fit: cover;
        border-radius: 0px;
    }
}

.artist-page-container {
    padding: 0 0px;
    background-color: #fafafa;
    min-height: 100vh;
    border-top: 0.5px solid #2D1E1E;
}

.artist-layout {
    display: flex;
    padding: 0 50px;
    padding-top: 70px;
    gap: 10.35vw;
    max-width: 1928px;
    margin: auto;
    padding-bottom: 150px; /* Increased gap between sections */
}

.artist-left-col {
   width: 31vw;
}

.current-section-title {
    font-family: 'MNKY Banana Grotesk';
    font-weight: 500;
    font-size: 50px;
    line-height:120%;
    letter-spacing: -0.01em;
    color: #121212;
    position: sticky;
    top: 200px; /* Adjust based on header height */
}

.artist-right-col {
        /* margin-left: 10.35vw; */
    width: 46.5vw;
}

.artist-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    align-items: center;
}

/* Capsule style tabs - similar to homepage */
.artist-tab-btn {
    height: 44px;
    min-width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 25px;
    border-radius: 492.5px;
    border: 1.5px solid #EDEDED;
    background-color: #FFFFFF;
    font-family: 'MNKY Banana Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 33.6px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2D1E1E;
    text-decoration: none;
    white-space: nowrap;
}

.artist-tab-btn:hover {
    border-color: #BDBDBD;
}

.artist-tab-btn.active {
    /* min-width: 131px; */
    background-color: #EDEDED;
    border-color: #EDEDED;
}

.artist-tab-content-area {
    display: flex;
    flex-direction: column;
}

.tab-pane {
    display: none;
    /* padding-bottom: 100px; */ /* Removed to prevent sticky title from lingering beyond content */
}

.tab-pane.active {
    display: block;
}

.artist-text-content {
    font-family: 'MNKY Banana Grotesk';
    font-weight: 500;
    font-size: 22px;
    line-height: 33px;
    letter-spacing: -0.01em;
    color: #121212;
}

/* Ensure Artist Statement flow is sequential, not 2-column */
.statement-entry .artist-page-content {
    display: block;
    width: 100%;
}

.statement-entry .left-content,
.statement-entry .right-content {
    width: 100%;
    margin-bottom: 0;
}

.statement-entry .right-content {
    margin-top: 40px;
}

.artist-text-content p {
    margin-bottom: 30px;
    text-indent: 0px !important;
}

.artist-text-content p:last-child {
    margin-bottom: 0;
}

/* Media Section - used in About tab */
.media-section {
   margin-top: 0;
    width: 100%;
    background: white;
    padding-top: 40px;
    padding-bottom: 80px;
}

.media-section.tab-pane-extra {
    display: none;
}

.media-section.tab-pane-extra.active {
    display: block;
    max-width: 1928px;
    margin: auto;
    padding-bottom: 100px;
}

.media-heading {
    font-family: 'MNKY Banana Grotesk';
    font-weight: 500;
    padding: 0 50px;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -0.01em;
    margin-bottom: 89px;
    color: #121212;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
       padding: 0 50px;
    width: 100%;
    max-width: 1928px;
}

.media-item {
    width: 100%;
}

.media-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 804 / 545;
    object-fit: cover;
    display: block;
}

.media-caption {
    font-family: 'MNKY Banana Grotesk';
    font-size: 16px;
    line-height: 1.4;
    margin-top: 15px;
    color: #BDBDBD;
    font-weight: 300;
    padding-left: 20px;
}

.video-item video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Fix MediaElement.js (mejs) player overflow and responsiveness */
.wp-video,
.mejs-container,
.mejs-embed,
.mejs-embed body {
    width: 100% !important;
    height: auto !important;
    min-width: 1px !important;
}

.mejs-container {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0 !important;
}

.mejs-mediaelement,
.mejs-mediaelement video,
.mejs-overlay,
.mejs-poster,
.mejs-layers {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.mejs-controls {
    bottom: 0 !important;
}

/* Image handling in statement flow */
.artist-text-content img,
.statement-entry img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 60px 0;
}

.artist-text-content img:last-child,
.statement-entry img:last-child {
    margin-bottom: 0;
}

.artist-text-content figure,
.statement-entry figure {
    margin: 60px 0;
    max-width: 100%;
}

.artist-text-content figure:last-child,
.statement-entry figure:last-child {
    margin-bottom: 0;
}

.artist-text-content figure img,
.statement-entry figure img {
    margin: 0;
}

.artist-text-content figcaption {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
    color: #121212;
    font-weight: 300;
}

.external-link {
    text-decoration: underline;
    color: #121212;
}

/* Navigation Section overrides */
.residency-navigation {
    padding: 50px ;
    background-color: #fafafa;
    display: none;
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .artist-layout {
        flex-direction: column;
        padding: 0;
    }
    .wp-video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
    }

    button.artist-tab-btn {
    padding: 0px 12px;
    height: unset;
    min-width: unset;
    font-size: 11.5px !important;
}
    .artist-left-col {
        width: 100%;
        margin-bottom: 30px;
    }
    .tab-pane{
        padding-bottom: 0;
    }
    .current-section-title {
        position: static;
        font-size: 40px;
    }

    .artist-right-col {
        margin-left: 0;
        width: 100%;
    }

    .artist-tabs-nav {
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 13px;
        gap:5px;
        justify-content: space-evenly;
    }

    .media-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .artist-text-content .artist-content-image figcaption{
    margin-top: 0.5em;
    font-size: 12px;
    text-align: left;
    padding-left: 20px;
    color: #BDBDBD;
    font-style: italic;
    }
    .media-caption {
    font-family: 'MNKY Banana Grotesk';
    font-size: 10px;
    line-height: 1.4;
    margin-top: 5px;
    color: #BDBDBD;
    font-weight: 300;
    padding-left: 20px;
}
.artist-text-content .artist-content-quote {
    color: #7F7E7E;
    font-size: 13px;
    line-height: 14px;
    margin: 1.5em 0 1.5em 0;
}
.artist-text-content .artist-quote-author {
    color: #7F7E7E;
    margin: 0 0 1.5em 0;
    font-size: 13px;
    font-style: normal;
}
.media-section.tab-pane-extra.active{
    padding-bottom: 0;
}
}
