.ta1-container-2ea10dff {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.ta1-event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    width: 100%;
    max-width: 250px;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.ta1-event-item:hover {
    transform: translateY(-2px);
}

.ta1-event-label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ta1-event-image img {
    width: 100px;
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}

/* Popup Styles */
.ta1-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    width: 280px;
    max-width: 90vw;
    text-align: center;
    font-size: 0.9em;
    z-index: 100;
    
    /* Animation setup */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    
    pointer-events: none;
}

.ta1-popup-content::before {
    display: none; 
}

/* 
 * 1) Hover behavior: show popup if the item is hovered AND no popup inside is actively pinned.
 * We'll use CSS for default hover, but we need to ensure pinned popups aren't affected by hover out.
 */
.ta1-event-item:not(.has-active-popup):hover .ta1-popup-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    /* Don't enable pointer events on hover, only on click/active */
}

/* 
 * 2) Click (Active) behavior 
 */
.ta1-popup-content.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto; /* Enable interaction when pinned */
    cursor: grab;
    z-index: 101; /* Bring pinned popup above others */
}

.ta1-popup-content.is-active:active {
    cursor: grabbing;
}

.ta1-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
}
.ta1-popup-close:hover {
    opacity: 1;
}
