/* Hero at the top of every page (template-parts/hero.php). */

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.75) 0%, transparent 55%, rgb(0 0 0 / 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Clear the fixed header, also when a long title wraps. */
    padding: calc(var(--header-height) + var(--space-md)) var(--gutter) var(--space-xl);
    max-width: 900px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-display);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-xl);
}

.hero-section-single {
    /* Grows with a long title instead of clipping it. */
    min-height: max(28rem, 55vh);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-content .post-date {
    color: var(--gold);
}

/* Pages (contact, privacy, 404): the same curtain, a little lower. */
.hero-section--page {
    min-height: max(24rem, 45vh);
}

/* Dates and venue under a show's title, white like the title (gold does not
   read on a light photo); the button to the tickets follows. */
.date-highlight-box {
    margin-top: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0.75rem rgb(0 0 0 / 0.5);
}

.date-highlight-box + .btn {
    margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: var(--text-xl);
    }
}

/* Several photos side by side (archive): a contact sheet of past shows. */
.hero-strip {
    display: flex;
    gap: 3px;
    height: 100%;
}

.hero-strip-img {
    flex: 1;
    min-width: 0;
}

.hero-strip-img:nth-child(n + 4) {
    display: none;
}

@media (min-width: 1024px) {
    .hero-strip-img:nth-child(n + 4) {
        display: block;
    }
}

/* Archive: on desktop the gold thread starts under the title and runs out of
   the hero into the timeline (archive.css), so curtain and stage are one line.
   The title sits low, on the thread. A phone has no thread. */
.hero-thread {
    display: none;
}

@media (min-width: 1024px) {
    .hero-section-single:has(.hero-thread) {
        align-items: flex-end;
    }

    .hero-content:has(.hero-thread) {
        padding-bottom: 0;
    }

    .hero-content:has(.hero-thread) .hero-title {
        margin-bottom: var(--space-md);
    }

    .hero-thread {
        display: block;
        width: 2px;
        height: var(--space-3xl);
        margin-inline: auto;
        background-color: var(--gold);
    }
}
