/*
 * @package    JEM
 * @subpackage JEM Teaser Module
 * @copyright  (C) 2013-2026 joomlaeventmanager.net
 * @copyright  (C) 2005-2009 Christoph Lukes
 * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
 */

div#jemmoduleteaser {
    width: 100%;
    container-type: inline-size;
}

div#jemmoduleteaser [class^="event_id"]:not(:last-of-type) {
    padding-bottom:0.5em;
    margin-bottom: 0.5em;
    border-bottom: 1px silver solid;
}

div#jemmoduleteaser .teaser-jem a,
div#jemmoduleteaser .venue-title a {
    background-color: transparent;
    /*color:#095197;*/
}

div#jemmoduleteaser .teaser-jem > div:first-child {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#jemmoduleteaser td.event-calendar {
    width: 1%; /* keep it as small as possible */
    vertical-align: top;
    text-align: left;
    padding-top: 0.2rem;
}

#jemmoduleteaser td.event-info {
    vertical-align: top;
}

#jemmoduleteaser [class|="calendar"] {
    background-repeat: no-repeat;
    width: 81px;
    height: 85px;
    text-align: center;
    padding: 5px 1px 0 0;
    margin: 0 10px 10px 0;
    line-height: 24px;
    box-shadow: 3px 4px 4px -3px rgba(0, 0, 0, 0.3), -3px 4px 4px -3px rgba(0, 0, 0, 0.3);
}

#jemmoduleteaser [class|="calendar"] .yearteaser,
#jemmoduleteaser [class|="calendar"] .monthteaser {
    font-size: 13px;
    height: 24px;
}

#jemmoduleteaser [class|="calendar"] .monthteaser,
#jemmoduleteaser [class|="calendar"] .dayteaser,
#jemmoduleteaser [class|="calendar"] .daynumteaser {
    font-weight: bold;
    position: relative;
    z-index: 2;
    display: block;
    padding: 0;
    text-align: center;
}

#jemmoduleteaser [class|="calendar"] .monthteaser {
    padding-top: 2px;
}

#jemmoduleteaser [class|="calendar"] .dayteaser {
    font-size: 12px;
    min-height: 0.8rem;
}

#jemmoduleteaser [class|="calendar"] .daynumteaser {
    font-size: 150%;
}

#jemmoduleteaser span.share {
    margin-left:95px;
}

#jemmoduleteaser [class|="calendar"] .yearteaser {
    font-size: 6px;
    height:5px;
    color: #e1e1e1;
}

div#jemmoduleteaser .eventset {
    width: 100%;
    padding: 5px;
    text-align: left;
}

div#jemmoduleteaser [class^="event_id"] > table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
}

div#jemmoduleteaser .event-datetime {vertical-align: top;}

div#jemmoduleteaser .event-title {
    font-size: medium;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

div#jemmoduleteaser .time {
    padding-top: 2px;
}

div#jemmoduleteaser div.date {
    padding-top: 2px;
}

div#jemmoduleteaser .teaser-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: smaller;
}

div#jemmoduleteaser .teaser-meta .time,
div#jemmoduleteaser .teaser-meta .date,
div#jemmoduleteaser .teaser-meta .category,
div#jemmoduleteaser .teaser-meta .venue-title {
    padding-top: 0;
}

div#jemmoduleteaser .jem-readmore,
div#jemmoduleteaser .jem-more-information {
    clear: both;
    margin-top: 0.35rem;
}

div#jemmoduleteaser .jem-readmore .jem-readmore-link {
    display: inline-flex;
    width: auto;
}

div#jemmoduleteaser .category {
    position: relative;
    font-size: smaller;
    padding-top: 4px;
}

div#jemmoduleteaser .category-link-bgcolor {
    padding:0.15em 0.4em;
    margin-right: 0.4em;
    border-radius:0.25em;
    text-decoration:none;
}

div#jemmoduleteaser .category-link-textcolor {
    text-decoration:none;
}

div#jemmoduleteaser .category-link {
    background-color:transparent;
    padding:0.15em 0.4em;
    text-decoration:none;
}

div#jemmoduleteaser .category-link-bgcolor + .catseparator {display:none;}


div#jemmoduleteaser .venue {
    position: relative;
    font-size: smaller;
    padding-top: 4px;
}

div#jemmoduleteaser .venue-link-bgcolor {
    padding:0.15em 0.4em;
    margin-right: 0.4em;
    text-decoration:none;
}

div#jemmoduleteaser .venue-link-textcolor {
    text-decoration:none;
}

div#jemmoduleteaser .venue-link {
    background-color:transparent;
    padding:0.15em 0.4em;
    border-radius:0.25em;
    text-decoration:none;
}

div#jemmoduleteaser .venue-title {
    position: relative;
    font-size: smaller;
    padding-top: 4px;
}

div#jemmoduleteaser .event-image-cell {
}

div#jemmoduleteaser .venue-image-cell {
}

div#jemmoduleteaser .image-preview {
    height: 35px;
    border: 1px solid #CCCCCC;
    padding: 3px;
    background-color: white;
    margin: 3px;
    max-width: 100%;
}

#jemmoduleteaser .teaser-flyerimage,
#jemmoduleteaser .image-preview {
    float: none !important;
}

#jemmoduleteaser .image-preview {
    display: block;
}

@container (max-width: 420px) {
    #jemmoduleteaser [class^="event_id"] > table,
    #jemmoduleteaser [class^="event_id"] > table > tbody,
    #jemmoduleteaser [class^="event_id"] > table > tbody > tr,
    #jemmoduleteaser [class^="event_id"] > table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    #jemmoduleteaser td.event-calendar {
        padding-top: 0;
    }

    #jemmoduleteaser [class|="calendar"] {
        float: left;
        margin: 0 0.75rem 0.5rem 0;
    }

    #jemmoduleteaser td.event-info {
        display: flow-root;
    }

    #jemmoduleteaser .image-preview {
        margin: 0.25rem auto 0.5rem;
    }
}

@media (max-width: 480px) {
    #jemmoduleteaser [class^="event_id"] > table,
    #jemmoduleteaser [class^="event_id"] > table > tbody,
    #jemmoduleteaser [class^="event_id"] > table > tbody > tr,
    #jemmoduleteaser [class^="event_id"] > table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    #jemmoduleteaser td.event-calendar {
        padding-top: 0;
    }

    #jemmoduleteaser [class|="calendar"] {
        float: left;
        margin: 0 0.75rem 0.5rem 0;
    }

    #jemmoduleteaser td.event-info {
        display: flow-root;
    }

    #jemmoduleteaser .image-preview {
        margin: 0.25rem auto 0.5rem;
    }
}

@media (max-width: 480px) {
    #jemmoduleteaser table,
    #jemmoduleteaser tbody,
    #jemmoduleteaser tr,
    #jemmoduleteaser td {
        display: block;
        width: 100%;
    }

    #jemmoduleteaser td.event-calendar {
        padding-top: 0;
    }

    #jemmoduleteaser [class|="calendar"] {
        float: left;
        margin: 0 0.75rem 0.5rem 0;
    }

    #jemmoduleteaser td.event-info {
        display: flow-root;
    }
}

div#jemmoduleteaser .block-event-vencat {
    display: flex;
    gap: 5px;
}
