.irl-f7880e16-wrapper {
    position: relative;
    width: 100%;
}

.irl-f7880e16-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #ccc;
    background: transparent;
}

.irl-f7880e16-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s ease;
    position: relative; /* Ensure the item can bound its children if needed */
}

.irl-f7880e16-title {
    flex: 0 0 25%;
    font-weight: 600;
}

.irl-f7880e16-cat {
    flex: 1;
}

.irl-f7880e16-action {
    flex: 0 0 auto;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    margin-right: 20px; /* Leave space for potential hover effects */
}

.irl-f7880e16-list li:hover .irl-f7880e16-action {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.irl-f7880e16-media-container {
    position: absolute;
    /* Default sizes, can be overridden by controls */
    width: 24vw;
    height: 24vw;
    right: 0; /* Snap to the far right */
    top: 0;
    border-radius: 12px;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none; /* CRUCIAL FIX */
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.irl-f7880e16-media-container.on {
    visibility: visible;
    opacity: 1;
}

.irl-f7880e16-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.irl-f7880e16-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .irl-f7880e16-cat {
        display: none;
    }
    
    .irl-f7880e16-action {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .irl-f7880e16-title {
        flex: 1;
    }
    
    .irl-f7880e16-media-container {
        /* Defaults for mobile */
        width: 40vw;
        height: 40vw;
        right: 0;
    }
}