/* Entry images on cards + detail pages. Lazy-loaded everywhere.
   Load after the other stylesheets. */

/* Country page + maker mini-cards: image sits on top */
.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid #3a281d;
    margin-bottom: 10px;
    background: #150e0a;
}

.country-card .card-thumb,
.mini-card .card-thumb {
    box-shadow: inset 0 0 0 1px rgba(198,146,75,0.2);
}

/* Event / newest rows: small square thumb beside the text */
.event-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 1px solid #6d4a27;
    flex-shrink: 0;
    background: #150e0a;
}

/* Entity detail hero image */
.entity-hero-image {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border: 1px solid #3a281d;
    box-shadow: inset 0 0 0 1px rgba(198,146,75,0.15);
    margin: 6px 0 20px;
}

/* Make sure event cards lay out as a row with the thumb */
.event-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* appended to main.css or its own file */
.search-page-box {
    display: flex;
    max-width: 640px;
    margin: 4px 0 24px;
    border: 1px solid #6d4a27;
    background: #150f0b;
}
.search-page-box input {
    flex: 1;
    background: transparent;
    border: 0;
    color: #f5ead6;
    padding: 12px 14px;
    font-size: 1rem;
}
.search-page-box button {
    background: linear-gradient(180deg, #d6a961, #b5843f);
    border: 0;
    color: #201406;
    font-weight: bold;
    padding: 0 20px;
    cursor: pointer;
}
.search-hint, .search-count {
    color: #cdb388;
    margin: 0 0 22px;
}
.search-count { font-size: 0.95rem; letter-spacing: 0.02em; }

/* ── Festival / event hero: image at natural size, name overlaid ──── */

.festival-hero {
    position: relative;
    margin: 6px 0 22px;
    border: 1px solid #3a281d;
    line-height: 0;              /* kill inline-image gap */
    background: #0e0a07;
}

.festival-hero img {
    display: block;
    width: 100%;
    height: auto;               /* natural aspect ratio, no crop */
    /* To cap very tall images, add e.g.  max-height: 520px; object-fit: cover;
       — removed per request so the image grows to its full size. */
}

/* the festival name, bottom-left, on a soft dark gradient so it reads
   over any part of the image */
.festival-hero figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 22px 16px;
    line-height: 1.05;
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 0.02em;
    font-size: clamp(1.6rem, 4vw, 3rem);
    color: #fdeeb6;
    text-align: left;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.9),
        0 1px 2px rgba(0,0,0,0.9);
    background: linear-gradient(to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* if the image fails to load, don't show an empty black box —
   fall back to a plain heading look */
.festival-hero.no-image {
    border: 0;
    background: transparent;
}
.festival-hero.no-image img { display: none; }
.festival-hero.no-image figcaption {
    position: static;
    padding: 0 0 10px;
    background: none;
    text-shadow: none;
    color: transparent;
    background: linear-gradient(180deg, #fdeeb6, #d9a94e 60%, #b5843f);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 600px) {
    .festival-hero figcaption {
        padding: 30px 14px 12px;
        font-size: 1.5rem;
    }
}
