/* Theatre Manager Shortcode Styles */

.tm-shortcode-wrapper {
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
    box-sizing: border-box;
}

/* Testimonials */
.tm-testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tm-testimonial {
    padding: 20px;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    box-shadow: none;
    background-color: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
}

.tm-testimonial .tm-rating {
    font-size: 3em;
    margin-bottom: 10px;
}

.tm-testimonial .tm-comment {
    font-size: 1em;
    margin-bottom: 10px;
}
.tm-rating  {
		text-align: center;
}
.tm-comment {
	text-align: center;
}
.tm-testimonial .tm-author {
    font-style: italic;
    font-size: 0.9em;
    color: #555555;
}
.tm-author {
	width: 100%;
	text-align: right;
}

.tm-symbol-filled {
    color: #f5b301; /* Gold or primary color */
    opacity: 1;
}

.emoji path{
	fill: #222;
}
.tm-symbol-empty {
    color: #333;
    opacity: 0.3;
}


/* Fix Slick Slider height issue */
.tm-testimonials-slider .slick-slide {
	margin-top: 10px;
    height: auto !important;
	top: 10px;
}


/* Slick Slider Arrow Customization */
.tm-testimonials-slider .slick-prev,
.tm-testimonials-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 0px;
    text-align: center;
    cursor: pointer;
}

.tm-testimonials-slider .slick-prev {
    left: -50px;
}

.tm-testimonials-slider .slick-next {
    right: -50px;
}

.tm-testimonials-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.tm-testimonials-slider .slick-dots li {
    margin: 0 0px;
}

.tm-testimonials-slider .slick-dots li button {
    font-size: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
	line-height: 10px;
}
.tm-testimonials-slider .slick-dots li button::before {
	line-height: 13px;
	left:-4px;
}
.tm-testimonials-slider .slick-dots li.slick-active button {
    background-color: #333;
}
/* Hide default text and show Font Awesome icons for arrows */
.tm-testimonials-slider .slick-prev,
.tm-testimonials-slider .slick-next {
    font-size: 0; /* Hides the default text */
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
}

.tm-testimonials-slider .slick-prev::before,
.tm-testimonials-slider .slick-next::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: white;
    opacity: 1;
	line-height:10px;
}

.tm-testimonials-slider .slick-prev::before {
    content: '\f104'; /* fa-chevron-left */
}

.tm-testimonials-slider .slick-next::before {
    content: '\f105'; /* fa-chevron-right */
}

/* Board Members */
.tm-board_member-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tm-board_member-entry {
    flex: 1 1 250px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    color: #333;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Advertiser Grid Layout */
.tm-advertiser-wrapper {
  display: grid;
  justify-content: center;
  gap: 20px;
    width: 100%;
    max-width: 100%;
}

.tm-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.tm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tm-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.tm-advertiser-entry {
  text-align: center;
    padding: clamp(10px, 1.1vw, 15px);
    min-height: clamp(96px, 14vw, 160px);
    aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.3s ease;
    min-width: 0;
}

.tm-advertiser-entry a {
    display: block;
    width: 100%;
    min-width: 0;
}

.tm-advertiser-entry:hover {
  transform: scale(1.05);
}

.tm-advertiser-entry img {
    width: 100%;
    max-width: 100%;
    max-height: clamp(58px, 8vw, 95px);
  height: auto;
    object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Footer/widget placement tends to be narrower; keep cards visually compact. */
.site-footer .tm-advertiser-entry,
.tm-footer-widget .tm-advertiser-entry,
.widget .tm-advertiser-entry {
    min-height: clamp(78px, 9vw, 120px);
    aspect-ratio: 5 / 2;
    padding: clamp(8px, 0.8vw, 11px);
}

/* In narrow widget columns, force safe track sizing to prevent overflow. */
.site-footer .tm-advertiser-wrapper,
.tm-footer-widget .tm-advertiser-wrapper,
.widget .tm-advertiser-wrapper {
    width: 100%;
    justify-content: stretch;
    gap: 12px;
}

.site-footer .tm-advertiser-wrapper:not(.tm-adv-lock-cols),
.tm-footer-widget .tm-advertiser-wrapper:not(.tm-adv-lock-cols),
.widget .tm-advertiser-wrapper:not(.tm-adv-lock-cols) {
    grid-template-columns: 1fr !important;
}

.site-footer .tm-advertiser-wrapper.tm-adv-lock-cols,
.tm-footer-widget .tm-advertiser-wrapper.tm-adv-lock-cols,
.widget .tm-advertiser-wrapper.tm-adv-lock-cols {
    grid-template-columns: repeat(var(--tm-adv-force-cols, 2), minmax(0, 1fr)) !important;
}

.site-footer .tm-advertiser-entry,
.tm-footer-widget .tm-advertiser-entry,
.widget .tm-advertiser-entry {
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
}

.site-footer .tm-advertiser-entry img,
.tm-footer-widget .tm-advertiser-entry img,
.widget .tm-advertiser-entry img {
    max-height: clamp(42px, 5.8vw, 70px);
}

.tm-advertiser-wrapper.tm-adv-mini-logos .tm-advertiser-entry {
    min-height: clamp(64px, 8vw, 96px) !important;
    padding: clamp(6px, 0.6vw, 9px) !important;
}

.tm-advertiser-wrapper.tm-adv-mini-logos .tm-advertiser-entry img {
    max-height: clamp(34px, 4.2vw, 54px) !important;
}

@media (max-width: 900px) {
    .tm-advertiser-entry {
        min-height: 112px;
        padding: 12px;
    }
    .tm-advertiser-entry img {
        max-height: 78px;
    }
}

@media (max-width: 600px) {
    .tm-advertiser-entry {
        min-height: 92px;
        padding: 10px;
    }
    .tm-advertiser-entry img {
        max-height: 64px;
    }
    .tm-advertiser-entry:hover {
        transform: none;
    }
}

/* Advertiser Slider */
.tm-advertiser-slider {
  width: 100%;
  margin: 0 auto;
}

.tm-advertiser-slider .slick-slide{
	    height: auto !important;
}
.tm-advertiser-slide {
  text-align: center;
}

.tm-advertiser-slide img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

/* Sponsors */
.tm-sponsor-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tm-sponsor-entry {
    flex: 1 1 250px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    color: #333;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Contributors */
.tm-contributor-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tm-contributor-entry {
    flex: 1 1 250px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    color: #333;
    box-shadow: none;
    transition: all 0.3s ease;
}

.tm-sponsor-slider .slick-slide{
	    height: auto !important;
}
.tm-sponsor-slide {
  text-align: center;
}

.tm-sponsor-slide img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

.tm-show-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.tm-show-card {
    border: 1px solid #ccc;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: left;
}

.tm-show-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tm-season-cast {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tm-show-card {
    border: 1px solid #ccc;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
	text-align: center;
}

.tm-show-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tm-season-cast {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tm-show-card {
    border: 1px solid #ccc;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tm-show-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tm-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tm-cast-card {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
}

.tm-cast-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tm_show_synopsis {
	text-align: left;
}


.tm-season-banner {
	text-align: center;
	width:100%;
}

/* Programs/gallery tweaks */
.tm-programs-gallery .tm-program-item {
    padding: 12px;
}
.tm-programs-gallery .tm-program-item img,
.tm-programs-gallery .tm-program-item canvas {
    display: block;
    margin: 0 auto 12px auto;
    max-width: 100%;
    width: 100%;
    height: auto;
}
.tm-program-preview img,
.tm-program-preview canvas,
.tm-program-preview .tm-program-preview-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Season-cast: make program previews small thumbnails and responsive */
.tm-season-cast .tm-program-preview img,
.tm-season-cast .tm-program-preview canvas,
.tm-season-cast .tm-program-preview .tm-program-preview-img {
    max-width: 120px; /* thumbnail size */
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Small screens: allow previews to use full width of their container */
@media (max-width: 768px) {
    .tm-program-preview img,
    .tm-program-preview canvas,
    .tm-program-preview .tm-program-preview-img,
    .tm-season-cast .tm-program-preview img,
    .tm-season-cast .tm-program-preview canvas,
    .tm-season-cast .tm-program-preview .tm-program-preview-img {
        max-width: 100%;
        width: 100%;
    }
}
.tm-programs-gallery .tm-program-item h4 {
    margin-top: 0;
}

/* Shows Shortcode Styles */
.tm-season-section {
    margin-bottom: 40px;
}

.tm-season-title {
    font-size: 2em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.tm-slot-title {
    font-size: 1.5em;
    margin: 30px 0 20px 0;
    padding-left: 15px;
    border-left: 3px solid rgba(0,0,0,0.1);
}

.tm-shows-entry {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid;
    border-radius: 8px;
}

.tm-program-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tm-program-header {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    text-align: center;
}

.tm-shows-entry h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.tm-shows-entry p {
    margin: 8px 0;
    line-height: 1.5;
}

/* Show images and program previews */
.tm-shows-entry .tm-show-image {
    margin: 15px 0;
    text-align: center;
}

.tm-shows-entry .tm-show-image img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.tm-shows-entry .tm-program-preview {
    margin: 15px 0;
    text-align: center;
}

.tm-shows-entry .tm-program-preview img,
.tm-shows-entry .tm-program-preview canvas {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.tm-shows-entry .tm-program-link:hover img,
.tm-shows-entry .tm-program-link:hover canvas {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tm-shows-entry {
        padding: 15px;
    }

    .tm-shows-entry .tm-show-image img,
    .tm-shows-entry .tm-program-preview img,
    .tm-shows-entry .tm-program-preview canvas {
        max-width: 100%;
        height: auto;
    }
}

/* Landing Page Shortcode Styles */
.tm-landingpage-wrapper,
.tm-landingpage {
    /* Inherit alignment from parent container */
    text-align: inherit;
    width: 100%;
}

/* Image-only shortcodes with hard_breaks=false - stays inline with text */
.tm-landingpage-image-inline {
    display: inline-block;
    text-align: center;
}

.tm-landingpage-image-inline img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Mixed content container - centers both text and images */
.tm-landingpage-mixed {
    text-align: center;
    width: 100%;
}

.tm-landingpage-mixed img {
    /* Images in mixed content display as block and center */
    display: block;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.tm-landingpage-field {
    /* Inherit alignment from parent */
    text-align: inherit;
    margin: 0;
    padding: 0;
}

/* Images in landing page wrapper when hard_breaks=true */
.tm-landingpage-wrapper > img,
.tm-landingpage-field img {
    /* Center images but maintain parent text alignment for text */
    display: block;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.tm-landingpage-field br {
    display: none;
}

/* Cast with Bio - Responsive Grid Layout */
.tm-landingpage-castwithbio {
    display: grid;
    grid-template-columns: repeat(var(--cast-cols, 3), 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.tm-cast-column {
    display: flex;
    flex-direction: column;
    background-color: var(--tm-lp-meta-bg, #f9f9f9);
    border: 1px solid var(--tm-lp-border, #ddd);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: var(--tm-lp-cast-size, 1rem);
    font-style: var(--tm-lp-cast-style, normal);
    font-weight: var(--tm-lp-cast-weight, normal);
    font-family: var(--tm-lp-cast-font, var(--tm-lp-font));
}

.tm-cast-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tm-cast-image {
    display: block;
    width: 100%;
    /* Scale image height inversely with number of columns */
    /* 1 col = 300px, 2 col = 270px, 3 col = 240px, 4+ col = 210px minimum */
    height: max(210px, calc(300px - (var(--cast-cols, 3) * 15px)));
    object-fit: contain;
    background-color: var(--tm-lp-meta-bg, #f0f0f0);
    border-radius: 6px;
    margin-bottom: 12px;
    aspect-ratio: 3/4;
}

.tm-cast-character {
    font-size: 1.1em;
    font-weight: bold;
    font-family: var(--tm-lp-cast-font, var(--tm-lp-font));
    margin: 8px 0 4px 0;
    color: var(--tm-lp-heading, #333);
}

.tm-cast-actor {
    font-size: 0.9em;
    font-style: italic;
    font-family: var(--tm-lp-cast-font, var(--tm-lp-font));
    color: var(--tm-lp-text, #666);
    margin: 4px 0 10px 0;
    opacity: 0.8;
}

.tm-cast-bio {
    /* Bio uses --tm-lp-cast-bio-size (separate, typically smaller than card text) */
    font-size: var(--tm-lp-cast-bio-size, 0.85em);
    font-family: var(--tm-lp-cast-font, var(--tm-lp-font));
    line-height: 1.5;
    color: var(--tm-lp-text, #555);
    margin: 0;
    flex-grow: 1;
}

/* -----------------------------------------------------------------------
   Cast grid responsive breakpoints
   The grid uses repeat(var(--cast-cols,3), 1fr) at full width.
   At each breakpoint we override with explicit column counts so that
   cards always have enough room regardless of the castcols= attr.
   ----------------------------------------------------------------------- */

/* Landscape tablet / small desktop (≤ 1024px): max 3 columns */
@media (max-width: 1024px) {
    .tm-landingpage-castwithbio {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .tm-cast-column { padding: 12px; }
    .tm-cast-image { height: auto; aspect-ratio: 3/4; }
}

/* Portrait tablet (≤ 768px): max 2 columns */
@media (max-width: 768px) {
    .tm-landingpage-castwithbio {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .tm-cast-column { padding: 12px; }
    .tm-cast-image { height: auto; aspect-ratio: 3/4; margin-bottom: 10px; }
    .tm-cast-character { margin: 8px 0 4px; }
    .tm-cast-actor    { margin: 0 0 8px; }
}

/* Small mobile (≤ 480px): 1 column - full width cards */
@media (max-width: 480px) {
    .tm-landingpage-castwithbio {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tm-cast-column { padding: 10px; }
    .tm-cast-image {
        height: auto;
        aspect-ratio: 3/4;
        max-height: 260px;   /* cap portrait image height on phone */
        object-fit: cover;
        margin-bottom: 8px;
    }
}

/* URL Button Styles */
.tm-url-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Default Button Format */
.tm-button-default {
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 4px;
}

.tm-button-default:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tm-button-default:active {
    transform: translateY(0);
}

/* Modern Rounded Button Format */
.tm-button-modern {
    background-color: #2c3e50;
    color: #ffffff;
    border-radius: 25px;
    padding: 12px 32px;
}

.tm-button-modern:hover {
    background-color: #1a252f;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.tm-button-modern:active {
    transform: scale(0.98);
}

/* Minimal Border Button */
.tm-button-minimal {
    background-color: transparent;
    color: #0073aa;
    border: 2px solid #0073aa;
    border-radius: 4px;
    padding: 10px 22px;
}

.tm-button-minimal:hover {
    background-color: #0073aa;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

/* Outline Button */
.tm-button-outline {
    background-color: transparent;
    color: #333333;
    border: 2px solid #333333;
    border-radius: 6px;
}

.tm-button-outline:hover {
    background-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Gradient Button */
.tm-button-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 8px;
}

.tm-button-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

/* Prominent/Call-to-Action Button */
.tm-button-prominent {
    background-color: #e74c3c;
    color: #ffffff;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tm-button-prominent:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

/* Success/Green Button */
.tm-button-success {
    background-color: #27ae60;
    color: #ffffff;
    border-radius: 6px;
}

.tm-button-success:hover {
    background-color: #229954;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Ghost Button with hover underline */
.tm-button-ghost {
    background-color: transparent;
    color: #0073aa;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

.tm-button-ghost:hover {
    border-bottom-color: #0073aa;
}

/* Glass/Frosted effect button */
.tm-button-glass {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.tm-button-glass:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Landing Page Wrapper - Inherit all text settings from surrounding context */
.tm-landingpage-wrapper,
.tm-landingpage-wrapper.tm-landingpage {
    /* Inherit text properties from parent/surrounding context */
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
    text-decoration: inherit;
    text-transform: inherit;
    direction: inherit;

    /* Default alignment, overridden by context below */
    text-align: left;
}

/* Field containers inherit all styling from wrapper */
.tm-landingpage-field {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
    text-decoration: inherit;
    text-transform: inherit;
    direction: inherit;
    text-align: inherit;
}

/* Ensure nested elements (lists, divs) fully inherit alignment */
.tm-landingpage-field > *,
.tm-landingpage-wrapper > * {
    text-align: inherit;
}

.tm-landingpage-cast-list,
.tm-landingpage-cast-item,
.tm-landingpage-castwithbio,
.tm-landingpage-venue {
    text-align: inherit;
}

/* Images should center naturally when wrapper is centered */
.tm-landingpage-field img,
.tm-landingpage-wrapper img,
.tm-cast-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Center alignment - detect from preceding Gutenberg/Beaver Builder blocks */
.has-text-align-center + .tm-landingpage-wrapper,
.has-text-align-center + hr + .tm-landingpage-wrapper,
.has-text-align-center + hr + hr + .tm-landingpage-wrapper,
.wp-block-paragraph.has-text-align-center + .tm-landingpage-wrapper,
.wp-block-paragraph.has-text-align-center + hr + .tm-landingpage-wrapper,
.fl-col.fl-col-text-center + .tm-landingpage-wrapper,
.bb-align-center + .tm-landingpage-wrapper {
    text-align: center;
}

/* Left alignment - explicit left-align setting */
.has-text-align-left + .tm-landingpage-wrapper,
.has-text-align-left + hr + .tm-landingpage-wrapper,
.wp-block-paragraph.has-text-align-left + .tm-landingpage-wrapper,
.wp-block-paragraph.has-text-align-left + hr + .tm-landingpage-wrapper,
.fl-col.fl-col-text-left + .tm-landingpage-wrapper,
.bb-align-left + .tm-landingpage-wrapper {
    text-align: left;
}

/* Right alignment - explicit right-align setting */
.has-text-align-right + .tm-landingpage-wrapper,
.has-text-align-right + hr + .tm-landingpage-wrapper,
.wp-block-paragraph.has-text-align-right + .tm-landingpage-wrapper,
.wp-block-paragraph.has-text-align-right + hr + .tm-landingpage-wrapper,
.fl-col.fl-col-text-right + .tm-landingpage-wrapper,
.bb-align-right + .tm-landingpage-wrapper {
    text-align: right;
}

/* Justify alignment - for blocks set to justified */
.has-text-align-justify + .tm-landingpage-wrapper,
.has-text-align-justify + hr + .tm-landingpage-wrapper {
    text-align: justify;
}

/* Support for theme-specific centering classes */
.wp-has-text-align-center + .tm-landingpage-wrapper,
.entry-content .text-center + .tm-landingpage-wrapper,
.centered + .tm-landingpage-wrapper,
.center + .tm-landingpage-wrapper {
    text-align: center;
}

/* Cast with bio grid - inherit alignment and respect castcols */
.tm-landingpage-castwithbio {
    display: grid;
    grid-template-columns: repeat(var(--cast-cols, 3), 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: inherit;
}

.tm-cast-column {
    text-align: center;
}

/* Ensure lists display as block elements and center content appropriately */
.tm-landingpage-cast-list {
    display: block;
}

.tm-landingpage-cast-item {
    display: block;
}

/* Mixed content (image + text) should maintain wrapper alignment */
.tm-landingpage-mixed {
    text-align: inherit;
}

/* Non-hard-breaks inline image should inherit wrapper alignment */
.tm-landingpage-image-inline {
    display: inline-block;
    text-align: inherit;
}

/* Responsive button adjustments */
@media (max-width: 768px) {
    .tm-url-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .tm-button-prominent {
        padding: 12px 24px;
        font-size: 1em;
    }
}

/* ==========================================================================
   [tm_tickets] - Banner layout
   ========================================================================== */
.tm-tickets-block { margin: 20px 0; }
.tm-tickets-empty { padding: 20px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; text-align: center; color: #666; }

.tm-ticket-btn-wrap { margin-bottom: 12px; }
.tm-ticket-btn-wrap:last-child { margin-bottom: 0; }
.tm-ticket-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    text-decoration: none !important;
    border-radius: 6px;
    gap: 4px;
    text-align: center;
    line-height: 1.3;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tm-ticket-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.tm-ticket-btn-label {
    display: block !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: .82;
}
.tm-ticket-btn-title {
    display: block !important;
    font-size: 20px;
    font-weight: 700;
}
.tm-ticket-btn-dates {
    display: block !important;
    font-size: 12px;
    font-weight: 400;
    opacity: .72;
}

/* ==========================================================================
   [tm_tickets] - Cards layout
   ========================================================================== */
.tm-tickets-cards { display: flex !important; flex-wrap: wrap; gap: 20px; }
/* Card is now a <div> so it can hold multiple <a> children without nesting violations */
.tm-ticket-card {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 320px;
    background: var(--tm-tk-bg, #fff);
    border: 1px solid var(--tm-tk-border, #e0e0e0);
    border-radius: 6px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tm-ticket-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
/* Poster image link fills the image area */
.tm-ticket-card-img-link { display: block; line-height: 0; }
.tm-ticket-card-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.tm-ticket-card-img-ph { width: 100%; aspect-ratio: 2/3; background: #e8f4fb; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.tm-ticket-card-body { padding: 16px; display: flex !important; flex-direction: column !important; gap: 6px; flex: 1; }
.tm-ticket-card-label { display: block !important; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tm-ticket-card-title { display: block !important; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tm-ticket-card-meta { display: block !important; font-size: 12px; opacity: .68; }
.tm-ticket-card-genre { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
/* Footer holds Get Tickets + optional Get Info side by side */
.tm-ticket-card-footer { padding: 0 16px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tm-ticket-card-cta {
    flex: 1 1 auto;
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--tm-tk-btn, #0073aa);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    transition: filter .2s ease;
}
.tm-ticket-card-cta:hover { filter: brightness(1.14); }

/* ==========================================================================
   [tm_tickets] - Table layout
   ========================================================================== */
.tm-tickets-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tm-tickets-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-tickets-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}
.tm-tickets-table tbody td { padding: 12px 14px; border-bottom: 1px solid #e0e0e0; vertical-align: middle; }
.tm-tickets-table tbody tr:last-child td { border-bottom: none; }
.tm-ticket-table-name { font-weight: 600; }
.tm-ticket-table-tag,
.tm-ticket-table-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
    margin-left: 4px;
}
.tm-ticket-table-badge { background: #f0f0f0; color: #555; }
.tm-ticket-season-row td { font-weight: 600; }
.tm-ticket-table-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    background: #0073aa;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .2s ease;
}
.tm-ticket-table-link:hover { filter: brightness(1.14); }

/* ==========================================================================
   [tm_tickets] - Minimal layout
   ========================================================================== */
.tm-tickets-minimal { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tm-tickets-minimal li { border-bottom: 1px solid #e0e0e0; }
.tm-tickets-minimal li:first-child { border-top: 1px solid #e0e0e0; }
.tm-ticket-min-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    text-decoration: none !important;
    color: inherit;
    transition: opacity .15s ease;
}
.tm-ticket-min-row:hover { opacity: .8; }
.tm-ticket-min-info { display: flex !important; flex-direction: column !important; gap: 3px; }
.tm-ticket-min-type { display: block !important; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tm-ticket-min-title { display: block !important; font-size: 17px; font-weight: 700; }
.tm-ticket-min-dates { display: block !important; font-size: 12px; opacity: .65; }
.tm-ticket-min-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.tm-ticket-min-row:hover .tm-ticket-min-arrow { transform: translateX(3px); }

/* ==========================================================================
   [tm_tickets] - Spotlight layout
   ========================================================================== */
.tm-tickets-spotlight { display: flex; flex-direction: column; gap: 20px; }
.tm-ticket-spotlight-hero {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 280px;
    display: flex !important;
    align-items: flex-end;
    text-decoration: none !important;
    color: #fff;
}
.tm-ticket-spotlight-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-ticket-spotlight-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%); }
.tm-ticket-spotlight-hero-body { position: relative; z-index: 1; padding: 28px; width: 100%; }
.tm-ticket-spotlight-hero-label { display: block !important; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; opacity: .85; margin-bottom: 6px; }
.tm-ticket-spotlight-hero-title { display: block !important; font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.tm-ticket-spotlight-cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .2s ease;
}
.tm-ticket-spotlight-cta:hover { opacity: .88; }
/* Grid: equal columns matching the full banner width.
   PHP sets --tm-spotlight-count on the element (e.g. 3 shows = 3 equal cols). */
.tm-ticket-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(var(--tm-spotlight-count, 3), 1fr);
    gap: 16px;
    width: 100%;
}
/* Wrapper: flex column so Get Info link sits flush below each tile */
.tm-ticket-spotlight-tile-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
/* Tile <a>: vertical card — 4:3 image on top, text body below */
.tm-ticket-spotlight-tile {
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--tm-tk-border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--tm-tk-text, inherit);
    transition: box-shadow .2s ease, transform .2s ease;
    background: var(--tm-tk-bg, #fff);
    height: 100%;   /* stretch to match tallest tile in the row */
}
.tm-ticket-spotlight-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
/* Image — 4:3 landscape across the full tile width */
.tm-ticket-spotlight-tile-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tm-tk-border, #eee);
}
.tm-ticket-spotlight-tile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}
.tm-ticket-spotlight-tile:hover .tm-ticket-spotlight-tile-img { transform: scale(1.04); }
/* Placeholder when no image */
.tm-ticket-spotlight-tile-img-ph {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--tm-tk-btn, #0073aa);
    background: color-mix(in srgb, var(--tm-tk-btn, #0073aa) 10%, transparent);
}
/* Text body below the image */
.tm-ticket-spotlight-tile-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px 16px;
    flex: 1 1 auto;
}
.tm-ticket-spotlight-tile-label { display: block !important; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--tm-tk-btn, #0073aa) !important; }
.tm-ticket-spotlight-tile-title { display: block !important; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--tm-tk-text, inherit) !important; }
.tm-ticket-spotlight-tile-dates { display: block !important; font-size: 11px; opacity: .68; }
/* CTA pinned to bottom of body */
.tm-ticket-spotlight-tile-cta {
    display: block;
    margin-top: auto;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    background: var(--tm-tk-btn, #0073aa);
    color: #fff !important;
    text-decoration: none !important;
    transition: filter .2s ease;
}
.tm-ticket-spotlight-tile-cta:hover { filter: brightness(1.14); }

/* ==========================================================================
   [tm_tickets] - Get Info link (shared across all layouts)
   ========================================================================== */
/* Shared "Get Info" link style - appears beside ticket buttons/links in all layouts */
.tm-ticket-info-link {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--tm-tk-text, #333) !important;
    border: 1px solid var(--tm-tk-border, #ccc);
    background: transparent;
    transition: background .18s ease, color .18s ease;
    white-space: nowrap;
}
.tm-ticket-info-link:hover {
    background: var(--tm-tk-border, #e0e0e0);
    color: var(--tm-tk-text, #111) !important;
}

/* Minimal layout: each item is a flex column (row + info button below) */
.tm-ticket-min-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tm-ticket-min-item .tm-ticket-info-link {
    align-self: flex-start;
    margin-left: 16px;   /* indent to align under the title text */
    font-size: 11px;
}

/* Banner layout: info link appears below each button */
.tm-ticket-btn-wrap .tm-ticket-info-link {
    display: block;
    margin-top: 6px;
    text-align: center;
    font-size: 12px;
    border: none;
    text-decoration: underline !important;
    padding: 2px 0;
    opacity: .75;
}
.tm-ticket-btn-wrap .tm-ticket-info-link:hover { opacity: 1; background: transparent; }

/* Spotlight tiles: info link sits below each tile */
.tm-ticket-spotlight-tile-wrap .tm-ticket-info-link {
    display: block;
    text-align: center;
    padding: 5px 10px;
}

/* Table: actions cell holds Get Tickets + Get Info inline */
.tm-ticket-table-actions {
    white-space: nowrap;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.tm-ticket-table-actions .tm-ticket-info-link {
    font-size: 11px;
    padding: 3px 8px;
}

/* Card footer: Get Tickets takes remaining space, Get Info is compact */
.tm-ticket-card-footer .tm-ticket-info-link {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
}

/* ==========================================================================
   [tm_tickets] - Responsive
   ========================================================================== */
@media (max-width: 700px) {
    /* Spotlight: collapse to 2 equal columns on portrait tablet / large phone */
    .tm-ticket-spotlight-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}
@media (max-width: 600px) {
    .tm-ticket-btn { padding: 16px 20px; }
    .tm-ticket-btn-title { font-size: 17px; }
    .tm-tickets-cards { flex-direction: column; }
    .tm-ticket-card { max-width: 100%; }
    .tm-ticket-spotlight-hero-title { font-size: 20px; }
}
@media (max-width: 400px) {
    /* Spotlight: single column on very small phones */
    .tm-ticket-spotlight-grid { grid-template-columns: 1fr !important; }
}