/* =============================================================
   F.A.M.E. — proposed redesign of the auction page
   Everything is scoped under .fame so the rest of the site is untouched.
   ============================================================= */

.fame {
    --ink: #1f1916;
    --ink-soft: #5d5049;
    --ivory: #fbf6ee;
    --paper: #f3eadc;
    --line: #e2d5c1;
    --red: #8e1b1b;
    --red-deep: #5c0f12;
    --gold: #c9a24a;
    --gold-light: #ecd59a;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    display: block;
    width: 100%;
    max-width: 970px;
    margin: 16px auto 0;
    box-sizing: border-box;
    background: var(--ivory);
    color: var(--ink);
    font: 400 1rem/1.65 var(--sans);
    text-align: left;
    overflow: hidden;
}

.fame *, .fame *::before, .fame *::after { box-sizing: border-box; }
.fame h1, .fame h2, .fame h3, .fame p { margin: 0; text-shadow: none; letter-spacing: normal; text-transform: none; }
.fame p { color: inherit; font-size: inherit; }
.fame img { max-width: 100%; display: block; }
.fame svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Preview-only note, floating at the bottom of the screen */
.fame-preview-note {
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    background: var(--gold-light);
    color: var(--red-deep);
    font: 500 0.8125rem/1.4 var(--sans);
    text-align: center;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.fame-preview-note a { color: var(--red-deep); font-weight: 600; white-space: nowrap; }

/* ---------- Hero ---------- */
.fame-hero {
    position: relative;
    color: var(--ivory);
    text-align: center;
    padding: 56px 24px 52px;
    background: var(--red-deep);
    isolation: isolate;
    overflow: hidden;
}
.fame-hero::before {
    content: "";
    position: absolute;
    inset: -30px;
    z-index: -2;
    background: var(--hero-img, none) center 30% / cover no-repeat;
    filter: blur(3px) saturate(1.15) brightness(0.9);
    transform: scale(1.6);
    animation: fame-drift 30s ease-in-out infinite alternate;
    will-change: transform;
}
/* The flyer behind the banner: zoomed in and slowly drifting */
@keyframes fame-drift {
    0%   { transform: scale(1.6) translate(-9%, -7%); }
    50%  { transform: scale(1.9) translate(8%, 3%); }
    100% { transform: scale(1.65) translate(-4%, 8%); }
}
@media (prefers-reduced-motion: reduce) {
    .fame-hero::before { animation: none; }
}
.fame-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 45%, rgba(20, 8, 8, 0.45), rgba(20, 8, 8, 0.72) 80%);
}
.fame-hero-inner { max-width: 720px; margin: 0 auto; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65); }

/* The site logo oval hangs below the desktop nav bar and overlaps the hero's top edge */
@media (min-width: 901px) {
    .fame-hero { padding-top: 100px; }
}

.fame-eyebrow {
    font: 600 0.75rem/1 var(--sans);
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    color: var(--gold-light);
}
.fame-title {
    font: 800 clamp(3.5rem, 11vw, 6.75rem)/0.95 var(--serif);
    letter-spacing: 0.02em !important;
    margin-top: 12px !important;
    color: var(--ivory);
}
.fame-title.is-long { font-size: clamp(2.25rem, 6.5vw, 3.75rem); line-height: 1.05; letter-spacing: 0 !important; }
.fame-subtitle {
    font: italic 500 clamp(1.125rem, 2.6vw, 1.5rem)/1.3 var(--serif);
    color: var(--gold-light);
    margin-top: 8px !important;
}
.fame-date {
    display: inline-block;
    margin-top: 22px !important;
    padding: 6px 16px;
    border-top: 1px solid rgba(236, 213, 154, 0.5);
    border-bottom: 1px solid rgba(236, 213, 154, 0.5);
    font: 600 1.0625rem/1.4 var(--sans);
    letter-spacing: 0.04em !important;
}

/* Sale status: live or closed */
.fame-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px !important;
    padding: 8px 18px;
    border-radius: 999px;
    font: 600 0.9375rem/1.2 var(--sans);
}
.fame-status.is-live { background: rgba(46, 160, 67, 0.18); border: 1px solid rgba(110, 220, 130, 0.5); color: #c9f5d2; }
.fame-status.is-past { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.fame-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5ee07a;
    box-shadow: 0 0 0 0 rgba(94, 224, 122, 0.7);
    animation: fame-pulse 1.8s infinite;
}
@keyframes fame-pulse {
    70%  { box-shadow: 0 0 0 10px rgba(94, 224, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 224, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .fame-live-dot { animation: none; } }

.fame-facts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
}
.fame-facts li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font: 500 0.875rem/1.2 var(--sans);
    backdrop-filter: blur(4px);
}
.fame-facts svg { color: var(--gold-light); }

.fame-countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}
.fame-countdown div {
    min-width: 76px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(236, 213, 154, 0.25);
}
.fame-countdown span {
    display: block;
    font: 700 2rem/1 var(--serif);
    font-variant-numeric: tabular-nums;
    color: var(--ivory);
}
.fame-countdown small {
    display: block;
    margin-top: 4px;
    font: 600 0.625rem/1 var(--sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ---------- Buttons ---------- */
.fame-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.fame-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font: 600 0.9375rem/1 var(--sans);
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.fame-btn:hover { transform: translateY(-1px); }
.fame-btn-primary {
    background: linear-gradient(180deg, #e2bf6a, var(--gold));
    color: var(--red-deep);
    box-shadow: 0 6px 18px rgba(201, 162, 74, 0.35);
}
.fame-btn-primary:hover { box-shadow: 0 8px 24px rgba(201, 162, 74, 0.5); }
.fame-btn-ghost {
    color: var(--ivory);
    border: 1px solid rgba(251, 246, 238, 0.45);
}
.fame-btn-ghost:hover { background: rgba(251, 246, 238, 0.12); }
.fame-btn-outline {
    color: var(--red);
    border: 1px solid var(--red);
}
.fame-btn-outline:hover { background: var(--red); color: var(--ivory); }
.fame-btn-light { background: var(--ivory); color: var(--red-deep); }

.fame-powered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px !important;
    font: 500 0.8125rem/1 var(--sans);
    color: rgba(251, 246, 238, 0.75);
}
.fame-powered img { height: 30px; width: auto; border-radius: 4px; }

/* ---------- Sections ---------- */
.fame-section { padding: 64px 48px; }
.fame-section + .fame-section { border-top: 1px solid var(--line); }
.fame-section-head { text-align: center; margin-bottom: 32px; }
.fame-kicker {
    font: 600 0.75rem/1 var(--sans);
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: var(--red);
    margin-bottom: 10px !important;
}
.fame h2 {
    font: 700 clamp(1.75rem, 4vw, 2.5rem)/1.15 var(--serif);
    color: var(--ink);
}

/* Intro */
.fame-intro .fame-kicker { text-align: center; }
.fame-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 14px;
}
.fame-intro-grid.is-single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.fame-pullquote {
    font: italic 700 clamp(1.75rem, 4.2vw, 2.625rem)/1.15 var(--serif) !important;
    color: var(--red) !important;
    padding-left: 22px;
    border-left: 4px solid var(--gold);
}
.fame-intro-copy p, .fame-intro-copy em {
    font-style: normal;
    font-size: 1.0625rem;
    color: var(--ink-soft);
}
.fame-intro-copy p + p { margin-top: 14px !important; }

/* Featured grid */
.fame-featured { background: var(--paper); }
.fame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.fame-tile {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(31, 25, 22, 0.08);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
}
.fame-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31, 25, 22, 0.16); }
/* The whole piece shows, on white, so wide or tall pieces never get cropped */
.fame-tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background: #fff;
}
.fame-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.fame-tile:hover .fame-tile-img img { transform: scale(1.04); }
.fame-tile-caption {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font: 600 0.8125rem/1.3 var(--sans);
    text-align: center;
}
.fame-sample-note {
    margin-top: 16px !important;
    text-align: center;
    font: italic 0.8125rem/1.5 var(--sans);
    color: var(--ink-soft);
}

/* Schedule */
.fame-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    counter-reset: step;
}
.fame-timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.fame-timeline li.is-main {
    background: var(--red-deep);
    border-color: var(--red-deep);
    color: var(--ivory);
}
.fame-when { font: 500 0.875rem/1.4 var(--sans); color: var(--ink-soft); }
.fame-when b { font: 700 1.25rem/1.4 var(--serif); color: var(--ink); }
.is-main .fame-when, .is-main .fame-when b { color: var(--gold-light); }
.fame-what { font: 700 1.125rem/1.2 var(--serif); }
.fame-note { font-size: 0.9375rem; color: var(--ink-soft); }
.is-main .fame-note { color: rgba(251, 246, 238, 0.8); }

/* Plan your visit */
.fame-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.fame-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}
.fame-card-media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 0; }
.fame-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--paper), #eadcc4);
    color: var(--red);
}
.fame-card-icon svg { width: 56px; height: 56px; stroke-width: 1.4; }
.fame-card-body { padding: 18px 20px 20px; }
.fame-card h3 {
    font: 700 1.1875rem/1.2 var(--serif);
    color: var(--red);
    margin-bottom: 8px !important;
}
.fame-card p { font-size: 0.9375rem; color: var(--ink-soft); }
.fame-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}
.fame-link:hover { text-decoration: underline; }
.fame-map {
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.fame-map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Can't make it band */
.fame-band {
    padding: 56px 32px;
    text-align: center;
    color: var(--ivory);
    background: linear-gradient(120deg, var(--red-deep), var(--red));
}
.fame-band h2 { color: var(--ivory); }
.fame-band p {
    max-width: 520px;
    margin: 10px auto 24px !important;
    font-size: 1.0625rem;
    color: rgba(251, 246, 238, 0.85);
}

/* The sale: flyer + highlights */
.fame-sale-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.fame-sale-grid.no-flyer { grid-template-columns: minmax(0, 640px); justify-content: center; }
.fame-sale-flyer { margin: 0; }
.fame-flyer {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(31, 25, 22, 0.25);
    cursor: zoom-in;
    transition: transform 0.25s, box-shadow 0.25s;
}
.fame-flyer:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(31, 25, 22, 0.3); }
.fame-flyer img { width: 100%; height: auto; }
.fame-flyer-hint {
    margin-top: 12px;
    text-align: center;
    font: italic 0.8125rem/1.5 var(--sans);
    color: var(--ink-soft);
}
.fame-sale-copy h2 { margin-bottom: 18px !important; }
.fame-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.fame-highlights li {
    position: relative;
    padding: 11px 0 11px 26px;
    border-bottom: 1px solid var(--line);
    font: 500 1.0625rem/1.4 var(--serif);
    color: var(--ink);
}
.fame-highlights li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: translateY(-50%) rotate(45deg);
}
.fame-sale-copy .fame-sample-note { text-align: left; }
.fame-ctas-start { justify-content: flex-start; margin-top: 24px; }

/* First-timer questions */
.fame-faq { background: var(--paper); }
.fame-faq-list { max-width: 760px; margin: 0 auto; }
.fame-faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.fame-faq-item summary {
    position: relative;
    padding: 16px 52px 16px 20px;
    cursor: pointer;
    list-style: none;
    font: 600 1.0625rem/1.35 var(--serif);
    color: var(--ink);
    background: none;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
}
.fame-faq-item summary::-webkit-details-marker { display: none; }
.fame-faq-item summary::before { content: none; } /* site styles.css adds a "+" to every summary */
.fame-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font: 400 1.5rem/1 var(--sans);
    color: var(--red);
    transition: transform 0.2s;
}
.fame-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fame-faq-item summary:hover { background: #fdf9f2; }
.fame-faq-answer { padding: 0 20px 18px; color: var(--ink-soft); }
.fame-faq-answer p + p { margin-top: 10px !important; }
.fame-faq-answer a { color: var(--red); font-weight: 600; }

/* Prices realized table (past sales) */
.fame-prices { width: 100%; max-width: 820px; margin: 0 auto; border-collapse: collapse; font-size: 0.9375rem; }
.fame-prices th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--red); color: var(--red); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.fame-prices td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.fame-prices .num { text-align: right; white-space: nowrap; font-weight: 600; }

/* Updates */
.fame-updates { max-width: 640px; margin: 0 auto; text-align: center; }
.fame-updates p:not(.fame-kicker) { margin-top: 10px !important; color: var(--ink-soft); font-size: 1.0625rem; }

/* Lightbox (GLightbox is appended to <body>, outside .fame) */
.glightbox-container .gslide-media { border-radius: 14px; overflow: hidden; }
.glightbox-container .gslide-image img { border-radius: 14px; }
/* Photo size comes from fitSlide in fame-page.php as --fit-w / --fit-h on the slide. !important because
   GLightbox rewrites the image's inline style; the viewport-unit limits are the fallback until it runs. */
.glightbox-container .gslide-image img {
    width: var(--fit-w, auto) !important;
    height: var(--fit-h, auto) !important;
    max-width: 86vw !important;
    max-height: calc(100vh - 144px) !important;
    object-fit: contain;
}
.glightbox-container .gslide.zoomed .gslide-image img { width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; } /* let click-to-zoom show full size */
/* A Close button people can actually find: white pill centered above the photo */
.glightbox-clean .gclose,
.glightbox-clean .gclose:hover {
    width: auto;
    height: 42px;
    top: 16px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    white-space: nowrap;
    padding: 0 16px 0 18px;
    gap: 8px;
    opacity: 1;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    color: #1a1a1a;
    font: 600 0.9375rem/1 Inter, system-ui, sans-serif;
}
.glightbox-clean .gclose::before { content: "Close"; }
.glightbox-clean .gclose:hover { background: #f3ece0; }
.glightbox-clean .gclose svg { width: 13px; }
.glightbox-clean .gclose path { fill: #1a1a1a; }

/* Scroll reveal (fame-page.php adds .fame-reveal only to below-the-fold elements, never for reduced motion).
   Uses translate, not transform, so it doesn't fight the tiles' hover lift. */
.fame .fame-reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}
.fame .fame-reveal.is-in { opacity: 1; translate: 0 0; }

/* Mobile Register bar */
.fame-bidbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .fame-section { padding: 48px 24px; }
    .fame-grid { grid-template-columns: repeat(2, 1fr); }
    .fame-intro-grid,
    .fame-timeline,
    .fame-cards { grid-template-columns: 1fr; }
    .fame-sale-grid { grid-template-columns: 1fr; gap: 32px; }
    .fame-sale-flyer { max-width: 440px; margin: 0 auto; }
    .fame-sale-copy { text-align: center; }
    .fame-sale-copy .fame-sample-note { text-align: center; }
    .fame-highlights { text-align: left; }
    .fame-ctas-start { justify-content: center; }
    .fame-intro-grid { gap: 24px; }
}

@media (max-width: 800px) {
    .fame-bidbar {
        display: flex;
        position: fixed;
        z-index: 9000;
        left: 0;
        right: 0;
        bottom: 0;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--red-deep);
        color: var(--ivory);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
        transition: translate 0.3s ease, visibility 0.3s;
    }
    .fame-bidbar.is-hidden { translate: 0 110%; visibility: hidden; }
    .fame-bidbar-when { display: flex; align-items: center; gap: 8px; font: 600 0.875rem/1.3 var(--sans); }
    .fame-bidbar .fame-btn { width: auto; flex: none; padding: 11px 20px; }
    body.fame-has-bidbar { padding-bottom: 72px; }
    .fame-has-bidbar .fame-preview-note { bottom: 84px; }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
    .fame-bidbar { transition: none; }
}

@media (max-width: 520px) {
    .fame { margin-top: 10px; }
    .fame-hero { padding: 40px 18px 40px; }
    .fame-countdown { gap: 6px; }
    .fame-countdown div { min-width: 64px; }
    .fame-countdown span { font-size: 1.625rem; }
    .fame-btn { width: 100%; justify-content: center; }
    .fame-section { padding: 40px 18px; }
    .fame-grid { gap: 10px; }
    .fame-map iframe { height: 240px; }
}
