/* ===========================================================
   SHOW ARCHIVE — shared styles for the photos index (shows.html)
   and the individual per-show pages (show-*.html).
   Namespaced .arch- so it can't collide with the main site.
   Reuses the "We the Broken" palette vars from styles.css.
   =========================================================== */
.arch-header {
    position: relative;
    padding: 9rem 0 3rem;
    overflow: hidden;
    border-bottom: 1px solid var(--steel);
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(95,199,232,0.14), transparent 60%),
        linear-gradient(180deg, var(--petrol), var(--void));
}

.arch-header-inner {
    max-width: var(--edge);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.arch-kicker {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--signal);
    margin-bottom: 0.9rem;
}

.arch-title {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.92;
    font-size: clamp(2.8rem, 9vw, 6rem);
    color: var(--cold-white);
}

.arch-lede {
    font-family: var(--font-body);
    max-width: 46ch;
    margin-top: 1.1rem;
    color: var(--slate);
    font-size: 1.02rem;
}

.arch-main {
    max-width: var(--edge);
    margin: 0 auto;
    padding: 3.5rem 2rem 5rem;
}

/* ---- Show meta header (shared: index sub-heads + per-show pages) ---- */
.arch-show-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 1.4rem;
    margin-bottom: 0.4rem;
}

.arch-venue {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    color: var(--cold-white);
}

.arch-date {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--signal);
    white-space: nowrap;
}

.arch-meta {
    font-family: var(--font-body);
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.arch-meta strong { color: var(--cold-white); font-weight: 600; }

.arch-credit {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 1.6rem;
}

/* ===========================================================
   INDEX GRID — cards of shows on shows.html
   =========================================================== */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.arch-card {
    position: relative;
    display: block;
    text-decoration: none;
    border: 1px solid var(--steel);
    background: var(--petrol);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.arch-card:hover,
.arch-card:focus-visible {
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(95, 199, 232, 0.18);
    outline: none;
}

.arch-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.arch-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.arch-card:hover .arch-card-media img,
.arch-card:focus-visible .arch-card-media img {
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.04);
}

.arch-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(3, 5, 7, 0.85));
}

.arch-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem 1.3rem 1.15rem;
    z-index: 1;
}

.arch-card-venue {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.02;
    font-size: 1.7rem;
    color: var(--cold-white);
}

.arch-card-date {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--signal);
    margin-top: 0.35rem;
}

.arch-card-count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--slate);
    margin-top: 0.5rem;
}

.arch-card-count .arch-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.08rem 0.5rem;
    border: 1px solid var(--signal-deep);
    border-radius: 999px;
    color: var(--signal);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.66rem;
    vertical-align: middle;
}

/* ===========================================================
   VIDEO ROW — on per-show pages, above the photo gallery
   =========================================================== */
.arch-video-block { margin-bottom: 2.6rem; }

.arch-subhead {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--signal);
    margin-bottom: 1.1rem;
}

.arch-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.arch-video {
    border: 1px solid var(--steel);
    background: #000;
    overflow: hidden;
}

.arch-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.arch-video-frame iframe,
.arch-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}

/* All video cells share a uniform 16:9 frame; portrait phone clips are
   letterboxed inside it (object-fit: contain) so rows stay even. */

/* ---- Masonry gallery via CSS columns — mixed portrait/landscape ---- */
.arch-gallery {
    column-count: 4;
    column-gap: 0.9rem;
}

@media (max-width: 1100px) { .arch-gallery { column-count: 3; } }
@media (max-width: 760px)  { .arch-gallery { column-count: 2; } }
@media (max-width: 420px)  { .arch-gallery { column-gap: 0.55rem; } }

.arch-item {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 0.9rem;
    border: 1px solid var(--steel);
    background: var(--petrol);
    cursor: pointer;
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.arch-item img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.92) contrast(1.02);
    transition: filter 0.3s ease, transform 0.4s ease;
}

.arch-item:hover,
.arch-item:focus-visible {
    border-color: var(--signal);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(95, 199, 232, 0.18);
    outline: none;
}

.arch-item:hover img,
.arch-item:focus-visible img {
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.03);
}

.arch-back {
    display: inline-block;
    margin-top: 3.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--signal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.arch-back:hover { color: var(--signal-bright); border-color: var(--signal-bright); }

/* ---- Lightbox ---- */
.arch-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: rgba(3, 5, 7, 0.94);
    backdrop-filter: blur(4px);
}

.arch-lightbox.is-open { display: flex; }

.arch-lb-img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.arch-lb-cap {
    position: absolute;
    bottom: 1.1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--slate);
}

.arch-lb-close,
.arch-lb-nav {
    position: absolute;
    background: rgba(11, 26, 36, 0.7);
    border: 1px solid var(--steel);
    color: var(--cold-white);
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.arch-lb-close:hover,
.arch-lb-nav:hover { background: var(--signal-deep); border-color: var(--signal); }

.arch-lb-close { top: 1.1rem; right: 1.1rem; border-radius: 50%; }
.arch-lb-nav { top: 50%; transform: translateY(-50%); }
.arch-lb-prev { left: 1.1rem; }
.arch-lb-next { right: 1.1rem; }

@media (max-width: 600px) {
    .arch-lightbox { padding: 1rem; }
    .arch-lb-nav { width: 40px; height: 40px; }
    .arch-lb-prev { left: 0.4rem; }
    .arch-lb-next { right: 0.4rem; }
}
