/* =====================
    Hero
   ===================== */

.hero-artwork {
    background-image: url("../imgs/heroes/hero-data-flag-collection.webp");
}

.hero-text h1 {
    font-size: 2.6rem;
}

@media (max-height: 900px) {
    .hero-text h1 {
        font-size: 2.1rem;
    }
}

@media (min-width: 1536px) {
    .hero-text h1 {
        max-width: 530px;
    }

    .hero-text p {
        max-width: 510px;
    }
}

/* =====================
    Exhibition Rows
   ===================== */

.artifact-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    padding-block: 8px 40px;
}

.artifact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 714px;
    background: var(--panel);
    border: 1px solid var(--border-color);
    transform: translateX(-60px);
}

/* Rows alternate direction (set per-row in the generator) so the initial
   translateX offset - and thus which side the row appears to enter from -
   flips, instead of every row sliding in from the same side. */
.artifact-row.reverse {
    transform: translateX(60px);
}

.artifact-panel,
.artifact-info {
    aspect-ratio: 1 / 1;
    min-width: 0;
}

.artifact-panel {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    overflow: hidden;
    cursor: pointer;
}

.artifact-panel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Applied by the generator for artifacts with no cover image on file, showing
   a placeholder state instead of a broken/empty image. */
.artifact-panel.missing {
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FAFAF8;
    color: var(--text-muted);
}

.artifact-panel.missing > i {
    width: 30px;
    height: 30px;
    stroke-width: 1.3;
}

.artifact-panel-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.artifact-panel-cta {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--text-muted);
    transition: color .2s ease;
}

.artifact-panel-cta:hover {
    color: var(--accent);
}

.artifact-panel-cta i {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
}

.artifact-panel:not(.missing) img {
    transition: transform .3s ease;
}

.artifact-panel:not(.missing):hover img {
    transform: scale(1.05);
}

/* Central divider — always between the two panels, regardless of side */
.artifact-row .artifact-panel:first-child {
    border-right: 1px solid var(--border-color);
}

.artifact-row .artifact-panel:last-child {
    border-left: 1px solid var(--border-color);
}

.artifact-info {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
}

.artifact-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artifact-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.artifact-eyebrow-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-faint);
}

.artifact-date {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.artifact-info h2 {
    font-family: "Newsreader", serif;
    font-size: clamp(1.3rem, 1.6vw, 1.6rem);
    font-weight: 500;
    line-height: 1.2;
    margin-top: 8px;
}

.artifact-info p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Artifact Modal language-toggle variant styles live in style-common.css
   since script-common.js now wires up main/language-toggle-modal on any
   page that includes it, not just this collection page. */
