.performance-main-section { padding: 28px 0 56px; background: #fafbfd; font-family: Nunito, sans-serif; }
.performance-main-section > .container { max-width: 1240px; }
.performance-main-section .tab-pane { display: none; }
.performance-main-section .tab-pane.active { display: block; }
.performance-main-section .performance-title { position: relative; width: fit-content; font-weight: 900; }
.performance-main-section .performance-title::after { content: ''; display: block; margin-top: 10px; }
.performance-main-section .tab-event-list { display: grid; }
.performance-main-section .tab-event-item { display: grid; align-items: center; }
.performance-main-section .tab-event-ticket { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; font-weight: 800; }
.performance-main-section .other-performances-card { padding: clamp(16px, 3vw, 32px); }
.performance-main-section .other-title { position: relative; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 24px; padding-bottom: 14px; }
.performance-main-section .other-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 72px; height: 5px; background: #ffd21b; border-radius: 50%; transform: rotate(-3deg); }
.related-plays-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.related-play-link { color: inherit; text-decoration: none; }
.related-play-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.related-play-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-play-copy { position: absolute; inset: auto 0 0; padding: 52px 12px 12px; color: #fff; }
.related-play-copy h4 { font-size: 16px; line-height: 1.2; font-weight: 900; color: #fff; margin: 0 0 8px; }
.related-play-action { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 800; padding: 7px 9px; }
.performance-main-section .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.performance-main-section .gallery-item { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: #eef3f9; }
.performance-main-section .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.performance-main-section .story-content, .performance-main-section .credits-text { overflow-wrap: anywhere; line-height: 1.75; }
.performance-main-section .story-content img, .performance-main-section .credits-text img { max-width: 100%; height: auto; }
.performance-main-section .video-wrapper iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.performance-main-section .testimonials-list { display: grid; gap: 12px; }
.performance-main-section .testimonial-item { padding: 16px; }
.performance-main-section .testimonial-name { font-weight: 900; color: #102b48; }
.performance-main-section .testimonial-position { font-size: 12px; margin: 4px 0 8px; color: #60758c; }
.performance-main-section .reviews-placeholder, .performance-main-section .tab-event-empty { padding: 20px; color: #60758c; }
.performance-main-section :is(button, a):focus-visible { outline: 3px solid #075cd4; outline-offset: 3px; }
@media (max-width: 991px) { .related-plays-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 540px) {
    .related-plays-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .related-play-copy h4 { font-size: 14px; }
    .performance-main-section .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
/* The shared cover supplies the artwork, actions and breadcrumb. */
.play-cover .header-overlay {
    background: linear-gradient(90deg, #0b2546f5 0%, #102e53df 30%, #13345765 61%, #142c4010 100%) !important;
}
.play-cover .header-title { font: 900 clamp(2.5rem, 5vw, 4.8rem)/1.02 Nunito, sans-serif !important; letter-spacing: -.045em; }
.play-cover .header-description { color: #f1f5fa !important; font-size: clamp(.94rem, 1.3vw, 1.12rem) !important; }
.play-cover .header-action { border-radius: 12px !important; transform: none !important; box-shadow: none !important; font-size: .86rem !important; }
.play-cover .header-action-primary { background: #ffd21b !important; border-color: #ffd21b !important; color: #102b48 !important; }
.play-cover .header-action-secondary { background: #102b48c9 !important; }
.performance-main-section {
    --play-navy: #102b48; --play-blue: #075cd4; --play-ice: #f1f5fa; --play-yellow: #ffd21b;
    color: var(--play-navy);
}
.performance-main-section :is(.performance-main-card,.other-performances-card) {
    background: #fff; border: 1px solid #d9e2ec; border-radius: 22px; box-shadow: 0 8px 28px #122c4810;
}
.performance-main-section .performance-info-content { background: white; }
.performance-main-section :is(.performance-title,.other-title) {
    color: var(--play-navy); font-family: Nunito,sans-serif; font-weight: 900; letter-spacing: -.035em; text-shadow: none;
}
.performance-main-section .performance-title::after {
    width: 55px; height: 5px; border-radius: 8px; background: var(--play-yellow); opacity: 1;
}
.performance-main-section .tab-nav {
    padding: 5px; gap: 4px; border: 1px solid #e1e7ed; border-radius: 14px; background: #f2f5f9;
}
.performance-main-section .tab-btn {
    padding: 7px 12px; min-height: 36px; border: 1px solid transparent; border-radius: 9px;
    background: transparent; color: #3e5670; box-shadow: none; transform: none;
}
.performance-main-section .tab-btn:hover { background: white; color: var(--play-navy); }
.performance-main-section .tab-btn.active { background: var(--play-navy); color: white; box-shadow: inset 0 -3px var(--play-yellow); }
.performance-main-section .tab-content { background: #fff; border-color: #e1e7ed; border-radius: 14px; box-shadow: none; }
.performance-main-section :is(.story-content,.credits-content,.testimonial-comment) { color: #364e66; line-height: 1.7; }
.performance-main-section :is(.tab-event-empty) {
    border: 1px solid #d7e2ef; border-left: 4px solid var(--play-yellow); border-radius: 12px;
    background: #f5f8fc; color: #3c546b; box-shadow: none;
}
.performance-main-section .testimonial-item { border: 1px solid #dce4ec; border-radius: 14px; background: white; }
.performance-main-section .related-play-card .related-play-media {
    border: 1px solid #d7e1eb; border-radius: 16px; box-shadow: 0 4px 12px #102b480c;
}
.performance-main-section .related-play-copy { border-radius: 0; background: linear-gradient(transparent,#0b2342ec 55%,#0b2342); }
.performance-main-section .related-play-action { border: none; border-radius: 7px; background: #ffdc52; color: #102b48; }
.performance-main-section :is(.related-play-link,.tab-btn,.btn):focus-visible { outline: 3px solid #075cd4; outline-offset: 3px; }
@media (max-width: 640px) {
    .play-cover .header-overlay { background: linear-gradient(90deg,#0b2546ee,#102e539e 67%,#102e5329) !important; }
    .performance-main-section .tab-btn { padding: 6px 9px; font-size: .8rem; }
}


/* Poster and sessions share the main information card. */
.performance-main-section { padding-top: 20px; }
.performance-main-section > .container > .tab-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    overflow: visible; width: 100%; max-width: 100%; margin: 0 0 24px; gap: 6px;
    padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.performance-main-section > .container > .tab-nav .tab-btn {
    position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px;
    min-width: 0; width: 100%; min-height: 58px; padding: 12px 6px;
    border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: #294866;
    font: 900 16px/1.3 Nunito, sans-serif;
}
.performance-main-section > .container > .tab-nav .tab-btn i {
    display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
    background: #eaf0f7; border-radius: 6px; font-size: 15px;
}
.performance-main-section > .container > .tab-nav .tab-btn:hover { background: #f0f5fb; }
.performance-main-section > .container > .tab-nav .tab-btn.active {
    color: #075cd4; background: #eaf3ff; box-shadow: none;
}
.performance-main-section > .container > .tab-nav .tab-btn.active i { background: #075cd4; color: white; }
.performance-main-section > .container > .tab-nav .tab-btn.active::after {
    content: ''; position: absolute; bottom: 0; left: calc(50% - 18px);
    width: 36px; height: 4px; background: #ffd21b; border-radius: 2px;
}
.performance-main-section .performance-main-card {
    background: #fff; border: 1px solid #d9e2ec; border-radius: 22px; box-shadow: 0 8px 28px #122c4810; padding: clamp(16px, 3vw, 32px); margin-bottom: 28px;
}
.performance-main-section .performance-main-card::before { display: none; }
.performance-main-section .performance-main-card > .row { align-items: flex-start; }
.performance-main-section .performance-info-content {
    height: auto; min-height: 0; overflow: visible; padding: 0; background: transparent;
}
.performance-main-section .performance-title {
    font-size: clamp(26px, 3.1vw, 42px); line-height: 1.12; margin-bottom: 22px;
}
.detail-facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 0 0 24px; }
.detail-facts span { display: inline-flex; align-items: center; gap: 10px; color: #102b48; font-weight: 800; padding: 0; font-size: 14px; }
.detail-facts i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dbe7f5; border-radius: 9px; background: #edf5ff; color: #075cd4; }
.detail-facts span:first-child i { background: #fff4cc; border-color: #f4df8c; color: #926500; }
.performance-main-section .tab-content { height: auto; max-height: none; overflow: visible; padding: 0; border: 0; background: transparent; }
.performance-main-section .tab-event-list { gap: 8px; }
.performance-main-section .tab-event-item {
    grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 8px;
    background: #fff; border: 1px solid #dce4ec; border-radius: 18px; box-shadow: 0 4px 12px #102b480c;
}
.performance-main-section .tab-event-date {
    display: grid; justify-items: center; align-content: center; gap: 2px;
    background: #e0f2ff; border-radius: 12px; padding: 6px 4px; min-height: 54px;
}
.performance-main-section .tab-event-date strong { color: #102b48; font-size: 23px; line-height: 1; }
.performance-main-section .tab-event-date span { text-transform: uppercase; font-size: 11px; color: #102b48; }
.detail-session-copy { min-width: 0; }
.detail-session-copy time { display: block; color: #102b48; font-size: 14px; font-weight: 800; line-height: 1.5; }
.detail-session-copy time b { white-space: nowrap; }
.performance-main-section .tab-event-venue { font-size: 12px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.tab-event-venue i { color: #075cd4; margin-right: 7px; }
.performance-main-section .tab-event-ticket { grid-column: auto; grid-row: auto; padding: 6px 9px; min-height: 34px; font-size: 12px; gap: 4px; }
.performance-main-section .tab-event-ticket svg { width: 14px; height: 14px; flex-shrink: 0; }
.detail-session-status { color: #64758a; font-size: 11px; white-space: nowrap; padding: 0 4px; }
@media (max-width: 991px) {
    .performance-main-section .performance-info-content { padding: 0; }
}

@media (max-width: 540px) {
    .performance-main-section > .container > .tab-nav { margin-bottom: 20px; }
    .performance-main-section > .container > .tab-nav .tab-btn { flex-direction: column; padding: 8px 1px; min-height: 52px; gap: 5px; font-size: clamp(9px, 2.6vw, 12px); white-space: nowrap; }
    .detail-facts { gap: 6px; }
    .detail-facts span { font-size: 11px; gap: 6px; }
    .performance-main-section .tab-event-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 7px; border-radius: 12px; padding: 8px; }
    .performance-main-section .tab-event-date { grid-row: auto; min-height: 48px; border-radius: 8px; }
    .performance-main-section .tab-event-date strong { font-size: 21px; }
    .performance-main-section .tab-event-date span { font-size: 9px; }
    .detail-session-copy time { font-size: 12px; }
    .performance-main-section .tab-event-venue { grid-column: auto; font-size: 10px; line-height: 1.4; }
    .performance-main-section .tab-event-ticket { grid-column: auto; grid-row: auto; padding: 5px 7px; min-height: 32px; font-size: 11px; }
    .detail-session-status { font-size: 9px; padding: 0; white-space: normal; max-width: 48px; text-align: center; }
}

.story-credits { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce4ec; }
.story-credits h2 { font: 900 22px/1.3 Nunito, sans-serif; color: #102b48; margin-bottom: 14px; }

.schedule-with-poster { display: flex; align-items: flex-start; gap: 24px; }
.schedule-poster { flex: 0 0 22%; max-width: 220px; overflow: hidden; border-radius: 16px; border: 1px solid #d9e2ec; }
.schedule-poster img { display: block; width: 100%; height: auto; }
.schedule-content { flex: 1; min-width: 0; }
.poster-facts { display: none; }
@media (max-width: 767px) {
    .performance-info-content:has(#events.active) > .detail-facts { display: none; }
    .schedule-with-poster { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 16px; }
    .schedule-poster { width: 100%; max-width: none; align-self: start; border-radius: 12px; }
    .poster-facts { display: grid; gap: 7px; min-width: 0; }
    .poster-facts span { display: flex; align-items: center; gap: 8px; color: #102b48; font-size: 12px; line-height: 1.3; font-weight: 800; }
    .poster-facts i { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; color: #075cd4; background: #edf5ff; font-size: 12px; }
    .poster-facts span:first-child i { color: #926500; background: #fff0bc; }
    .schedule-content { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 360px) {
    .schedule-with-poster { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
    .poster-facts span { font-size: 11px; gap: 6px; }
}

/* Native gallery dialog keeps navigation and previews in view. */
.photo-viewer {
    inset: 0; margin: auto; width: min(1120px, calc(100vw - 32px));
    max-width: none; max-height: none; padding: 0; border: 1px solid #dce4ec;
    border-radius: 18px; overflow: hidden; color: #102b48; background: #fff;
    box-shadow: 0 24px 80px #081b334a; font-family: Nunito, sans-serif;
}
.photo-viewer::backdrop { background: #081b33c4; }
.photo-viewer-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: min(850px, 90dvh); }
.photo-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid #dce4ec; }
.photo-viewer-header h2 { font: 900 18px/1.3 Nunito, sans-serif; margin: 0; color: #102b48; }
.photo-viewer-header small { display: block; color: #63768d; font-size: 12px; font-weight: 600; margin-top: 3px; }
.photo-viewer-header form { flex-shrink: 0; }
.photo-viewer-header button { border: 0; border-radius: 10px; width: 40px; height: 40px; font-size: 26px; display: grid; place-items: center; cursor: pointer; }
.photo-viewer-header button { background: #eef3f9; color: #102b48; }
.photo-viewer-stage { position: relative; min-height: 0; display: grid; place-items: center; background: #edf2f8; padding: 12px 64px; touch-action: pan-y pinch-zoom; }
.photo-viewer-image { min-width: 0; max-width: 100%; display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-viewer .photo-viewer-footer { display: grid; gap: 10px; padding: 12px 18px; background: #fff; color: #102b48; border-top: 1px solid #dce4ec; }
.photo-viewer-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.photo-viewer-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 116px; min-height: 40px; padding: 8px 16px; border: 1px solid #d8e4f1; border-radius: 10px; background: #edf5ff; color: #075cd4; font: 800 13px/1.3 Nunito,sans-serif; cursor: pointer; }
.photo-viewer-controls button:hover { background: #075cd4; color: white; border-color: #075cd4; }
.photo-viewer-controls button span { font-size: 19px; }
.photo-viewer-count { font-weight: 900; min-width: 48px; text-align: center; white-space: nowrap; font-size: 13px; }
.photo-viewer-thumbs { width: 100%; position: relative; display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; padding: 3px; }
.photo-viewer-thumbs button { flex: 0 0 72px; width: 72px; height: 56px; padding: 2px; border: 2px solid transparent; border-radius: 8px; background: #edf2f8; overflow: hidden; cursor: pointer; }
.photo-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.photo-viewer-thumbs button[aria-current="true"] { border-color: #075cd4; box-shadow: 0 0 0 2px #ffda49; }
.photo-viewer button:focus-visible { outline: 3px solid #ffda49; outline-offset: 2px; }
.photo-viewer [hidden] { display: none; }
.photo-viewer-open { overflow: hidden; }
.photo-viewer-error { position: absolute; margin: 0; color: #63768d; }
@media (max-width: 600px) {
    .photo-viewer { width: calc(100vw - 16px); border-radius: 14px; }
    .photo-viewer-shell { height: 88dvh; }
    .photo-viewer-header { padding: 10px 12px; }
    .photo-viewer-header h2 { font-size: 14px; }
    .photo-viewer-stage { padding: 8px 4px; }
    .photo-viewer .photo-viewer-footer { gap: 8px; padding: 8px 10px; }
    .photo-viewer-thumbs button { flex-basis: 54px; width: 54px; height: 44px; }
}

.performance-main-section .tab-event-ticket { background: #075cd4; color: #fff; border-radius: 9px; }
.performance-main-section .tab-event-ticket:hover { background: #064bb5; color: #fff; }

@media (max-width: 600px) {
    .photo-viewer-controls { gap: 10px; }
    .photo-viewer-controls button { min-width: 98px; padding: 7px 12px; min-height: 38px; }
}
