/* =====================================================================
   EMA Engineering — event page tweaks
   Loaded only on /events/ pages via rlCustom tplHeader hook.
   Items: (1) larger event description/content box, (2) small gray "Free".
   Reversible: delete this file + the events tplHeader hook in rlCustom.
   ===================================================================== */

/* --- Item 1: enlarge the event description / content box (~2x) --- */
.listing-fields .table-cell.textarea {
    width: 100%;
    float: none;
}
.listing-fields .table-cell.textarea .value {
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 1.15em 1.35em;
    margin-top: 0.35em;
    min-height: 190px;              /* roughly double a short box */
    background: #f6f9fb;
    border: 1px solid #e2e9ee;
    border-radius: 10px;
}
.listing-fields .table-cell.textarea .name {
    font-size: 1.02rem;
    font-weight: 600;
}

/* --- Larger event list thumbnails, whole image visible (not cropped) --- */
/* Fewer, wider cards on desktop => bigger picture. Source thumb is 480x320. */
@media (min-width: 768px) {
    section#listings article.item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
/* Landscape 3:2 box (matches the source thumb) + show the whole image */
section#listings article.item div.picture {
    padding-bottom: 62%;
}
section#listings article.item div.picture img {
    object-fit: cover !important;      /* fill edge-to-edge */
    object-position: top center;       /* anchor to upper part of the image */
}

/* --- Item 2: "Free" price tag — small + gray (tagged .ev-free by script) --- */
.price-tag.ev-free,
.price-tag.ev-free > span,
.price-tag.ev-free > span > *,
li.price_tag.ev-free,
li.price_tag.ev-free > div > span,
li.price_tag.ev-free > div > span > * {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: #8a97a0 !important;
    letter-spacing: 0;
}
