/* Event Grid Variables */
:root {
    --bms-poster-ratio: 1/1.414;
}

.bms-events-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

.bms-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px;
}

.bms-event-card {
    display: flex;
    flex-direction: column;
}

.bms-event-poster {
    position: relative;
    aspect-ratio: var(--bms-poster-ratio);
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.bms-event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bms-event-card:hover .bms-event-poster img {
    transform: scale(1.05);
}

/* Badges */
.bms-event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.badge-featured { background: #d9381e; color: #fff; }
.badge-past { background: #111; color: #fff; opacity: 0.8; }

/* Hover Overlay */
.bms-event-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 24px;
    text-align: center;
    color: #fff;
}

.bms-event-card:hover .bms-event-overlay {
    opacity: 1;
}

.bms-event-meta {
    font-size: 13px;
    margin-bottom: 8px;
}

.bms-event-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 24px 0;
}

.facility-tag {
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
}

.bms-event-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.bms-event-actions .bms-btn {
    font-size: 12px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}
.bms-event-actions .bms-btn-outline { border: 1px solid #fff; color: #fff; }
.bms-event-actions .bms-btn-outline:hover { background: #fff; color: #111; }
.bms-event-actions .bms-btn-primary { background: #d9381e; color: #fff; border: none; }
.bms-event-actions .bms-btn-primary:hover { background: #a82713; }

/* Info Below Poster */
.bms-event-info {
    padding-top: 16px;
    text-align: center;
}

.bms-event-title {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #111;
}

.bms-event-datetime {
    font-size: 13px;
    color: #555;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bms-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    .bms-event-title {
        display: none; /* Let the artwork do the talking as requested */
    }
    .bms-event-datetime {
        font-size: 12px;
        padding-bottom: 12px;
        color: #d4cebe;
    }
    .bms-event-actions {
        flex-direction: column;
        width: 100%;
    }
}

.event-single .event-image img{
    aspect-ratio: var(--bms-poster-ratio);
    width:100%;
    height:auto;
    border-radius: .5rem;
}

.event-single .event-image {
    margin:20px 0;
}

.event-single{
    font-size: 16px;
    line-height: 1.8;
    color: #3a3a3a;
}

.event-single .article-content{
    padding:20px 0;
}

.event-single .article-content p:first-of-type{
    font-size:1.5rem;
    line-height:1.2;
}

.event-single .event-support{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
    padding: 1rem 0;
}

.event-single .event-support .event-details{
    flex:1 0 70%;
}

.event-single .bms-event-meta {
  display: flex;
  gap:.5rem;
}

.event-single .bms-event-actions{
    justify-content: center;
}

.event-single .bms-event-actions .bms-btn {
  display: inline-block;
  text-align: center;
}