/* Responsive embed switcher: show 16:9 on desktop, 9:16 on mobile */
.embed-switch .only-desktop {
    display: block;
}

.embed-switch .only-mobile {
    display: none;
}

#overlayer {
    display: none;
}

@media (max-width: 700px) {
    .embed-switch .only-desktop {
        display: none;
    }

    .embed-switch .only-mobile {
        display: block;
    }
}

.ratio-16x9 {
    padding: 56.25% 0 0 0;
    position: relative;
}

.ratio-9x16 {
    padding: 177.78% 0 0 0;
    position: relative;
}

.ratio-16x9>iframe,
.ratio-9x16>iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Vimeo-lite overlay (safe: preserves layout) */
.vimeo-lite {
    position: relative;
    background: #000;
}

.vimeo-lite::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--poster, #000) center/cover no-repeat;
    transition: opacity .2s ease;
}

.vimeo-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, .6);
    cursor: pointer;
}

.vimeo-play::before {
    content: "";
    display: block;
    margin: 12px 0 0 25px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

.vimeo-lite.is-playing::before,
.vimeo-lite.is-playing .vimeo-play {
    opacity: 0;
    pointer-events: none;
}

.vimeo-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Expandable facts list === */
.expander {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: .75rem;
    position: relative;
    background: #fff;
}

.expander__content {
    overflow: hidden;
    transition: height .3s ease;
}

.expander__fade {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: 2.5rem;
    height: 2.5rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    display: none;
}

.expander.is-collapsed .expander__fade {
    display: block;
}

.expander__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: .5rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-size: 1.1em;
}

.expander__toggle:hover {
    filter: brightness(1.03);
}

.expander__toggle:focus {
    outline: 3px solid rgba(111, 111, 111, 0.35);
    outline-offset: 2px;
}

.two-col-list {
    columns: 2;
    column-gap: 2rem;
    margin: 0;
    padding-left: 1.2rem;
}

.two-col-list li {
    break-inside: avoid;
    margin-bottom: .5rem;
}

body {
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: #222;
    margin: 0;
}

body td.txt {
    background-color: #ddd;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* .hero {
			background: #911;
			color: #fff;
			padding: 2rem 1.25rem;
			border-bottom: 4px solid #600;
		} */

.hero h1 {
    margin: 0 0 .25em;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.hero p {
    margin: 0;
    font-size: clamp(16px, 2.2vw, 20px);
    opacity: .95;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

figcaption {
    font-size: .9em;
    color: #666;
    margin-top: .5rem;
    text-align: right;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.grid>div {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}

.two-col-grid>div {
    flex: 0 0 calc(50% - 1.25rem);
}

/* 3-up on desktop, straight to 1-up on mobile */
.square-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    /* tweak spacing */
}

/* Force consistent square tiles (letterboxed, non-cropping) */
.square-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* force square tile */
    object-fit: contain;
    /* scale to fit without cropping */
    display: block;
    border-radius: 6px;
    /* optional */
    background: #fff;
    /* visible letterbox/pillarbox background */
}

.title {
    font-size: 1.1em;
    text-align: center;
    font-weight: bold;
}

.year {
    font-size: 0.8em;
    text-align: right;
    margin-top: 0;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1em;
}

.cta {
    display: inline-block;
    background: #911;
    color: #fff;
    padding: .7rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.cta:hover {
    filter: brightness(1.08);
}

.fine {
    font-size: .9em;
    color: #444;
}

.list {
    margin: .75rem 0 0;
    padding-left: 1.1rem;
}

.list li {
    margin: .35rem 0;
}

.muted {
    color: #666;
    font-size: .95em;
}

.center {
    text-align: center;
}

img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Thicc mode buttons for flyer actions === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    font-size: 1.125rem;
    line-height: 1.1;
    transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .14);
}

.btn:focus {
    outline: 3px solid rgba(153, 17, 17, .35);
    outline-offset: 2px;
}

.btn--primary {
    background: #911;
    color: #fff;
    cursor: pointer;
}

.btn--secondary {
    background: #fff;
    color: #911;
    border-color: #911;
    cursor: pointer;
}

/* Flyer action buttons layout */
.flyer-actions,
.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem auto 0;
    flex-wrap: wrap;
}

.flyer-actions .cta {
    font-size: 1.12em;
    padding: .9rem 1.15rem;
}

.flyer-actions .btn,
.contact-actions .btn {
    min-width: 260px;
}

.landing-headline {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: #446;
}

/* === Responsive video gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 10px;
    overflow: hidden;
}

/* Collapse gallery to first 16 items by default; toggled via JS */
.gallery-grid.gallery--collapsed .g-item:nth-child(n+17) {
    display: none;
}

@media (min-width:540px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Alternate the order of every second row for the charts/videos grid */
@media (min-width:700px) {
    .flyer-actions .btn {
        /* min-width:300px;  */
        font-size: 1.2rem;
        /* padding:1rem 1.4rem;  */
    }

    .alt-rows {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        grid-auto-flow: dense;
    }

    .alt-rows>div {
        min-width: 0;
    }

    /* grid handles width */
    /* default placement: odd left, even right */
    .alt-rows>div:nth-child(odd) {
        grid-column: 1;
    }

    .alt-rows>div:nth-child(even) {
        grid-column: 2;
    }

    /* flip every even row: items 3&4, 7&8, 11&12, ... */
    .alt-rows>div:nth-child(4n+3) {
        grid-column: 2;
    }

    .alt-rows>div:nth-child(4n+4) {
        grid-column: 1;
    }


}

/* Collapse directly to 1 column on small screens */
@media (max-width:700px) {
    .square-grid {
        grid-template-columns: 1fr;
    }

    .two-col-list {
        columns: 1;
    }

    /* Let media inside cards span edge-to-edge on small screens */
    .card .embed-switch,
    .card .ratio-16x9,
    .card .ratio-9x16 {
        margin-left: -1rem;
        margin-right: -1rem;
    }
}

@media (min-width:880px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.g-item {
    position: relative;
    /* border-radius:10px; */
    overflow: hidden;
    background: #f4f4f4;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    transition: transform .08s ease, box-shadow .15s ease;
    isolation: isolate;
}

.g-item:hover {
    /* transform: translateY(-1px); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    border: 4px solid white;
}

.g-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* Thumbnail captions removed per new design */
.g-hover {
    display: none !important;
}


.note {
    color: orange;
    font-style: italic;
}

.responsiveList {
    font-size: 1.2rem;
    padding: 0 8em;
}

.responsiveList ul {
    padding-top: 0.5em;
}

#TOC .responsiveList {
    font-size: 1.3rem;
}

#TOC .responsiveList li {
    margin-bottom: 0.4rem;
}

#landingHeader {
    width: 80%;
    display: block;
    margin: auto;
}

/* Collapse directly to 1 column on small screens */
@media (max-width:700px) {
    .responsiveList {
        padding: 0 1rem;
    }

    #landingHeader {
        width: 100%;
    }
}